Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: simplify landing page, missing imagery so improvised #30

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
);
Loading