Skip to content

Commit

Permalink
refactor: simplify landing page, missing imagery so improvised (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lombardoc4 committed Mar 19, 2024
1 parent 091cbb0 commit b8fc72a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 10 deletions.
6 changes: 6 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ body {
background: linear-gradient(to top, transparent, oklch(var(--b1)))
oklch(var(--b2));
}

@layer components {
.container {
padding-inline: 2rem;
}
}
40 changes: 30 additions & 10 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import Link from 'next/link';
import { BsPlusCircle } from 'react-icons/bs';

import { LandingNextEvent } from './(features)/LandingNextEvent';
import { MainFilters } from './ui/MainFilters';

export default function Home() {
return (
<main>
<main className='grid min-h-dvh'>
<Hero />

{/* Suspense */}
Expand All @@ -13,16 +15,34 @@ export default function Home() {
}

const Hero = () => (
<div className='hero my-16 lg:my-32'>
<div className='hero-content gap-8 lg:w-4/5 lg:justify-start'>
<div className='flex flex-col gap-8 '>
<h1 className='text-5xl font-bold lg:text-7xl'>Slick Telemetry</h1>
<MainFilters />
<p className='max-w-sm text-sm lg:max-w-md lg:text-base'>
We are Slick Telemetry, like-minded individuals and fans of Formula 1.
We are currently building an analysis platform for F1 Data Analysis!
<div className='hero min-h-[80dvh] lg:min-h-[60dvh]'>
<div className='container my-12 flex flex-col flex-wrap items-center gap-x-6 gap-y-4 md:flex-row'>
{/* Slick Telemetry */}
<div className='grid flex-1 text-center lg:gap-2'>
<h1 className='text-2xl font-bold lg:text-5xl'>Slick Telemetry</h1>
<p className='font-semi-boldl lg:text-2xl'>
Your home for Formula 1 insights
</p>
</div>

<BsPlusCircle className='h-8 w-8 lg:h-16 lg:w-16 ' />

{/* Formula */}
<div className='grid flex-1 gap-2 text-center'>
<h2 className='text-2xl font-bold lg:text-5xl'>Formula 1</h2>
<p className='font-semi-bold lg:text-2xl'>
The world largest science contest
</p>
</div>

{/* Call to Action */}
<div className='my-8 w-full text-center'>
<Link href='/telemetry'>
<button className='btn btn-primary lg:text-xl'>
Telemetry Time!
</button>
</Link>
</div>
</div>
</div>
);

0 comments on commit b8fc72a

Please sign in to comment.