website landing page

This commit is contained in:
2025-12-02 19:44:18 +01:00
parent fd3b4171aa
commit 895318ac40
33 changed files with 2226 additions and 842 deletions

View File

@@ -1,5 +1,9 @@
import { ReactNode } from 'react';
'use client';
import { useRef, ReactNode } from 'react';
import Container from '@/components/ui/Container';
import Heading from '@/components/ui/Heading';
import { useScrollProgress, useParallax } from '@/hooks/useScrollProgress';
interface AlternatingSectionProps {
heading: string;
@@ -7,6 +11,7 @@ interface AlternatingSectionProps {
mockup: ReactNode;
layout: 'text-left' | 'text-right';
backgroundImage?: string;
backgroundVideo?: string;
}
export default function AlternatingSection({
@@ -14,73 +19,88 @@ export default function AlternatingSection({
description,
mockup,
layout,
backgroundImage
backgroundImage,
backgroundVideo
}: AlternatingSectionProps) {
const sectionRef = useRef<HTMLElement>(null);
const bgParallax = useParallax(sectionRef, 0.2);
return (
<section className="relative overflow-hidden bg-deep-graphite px-6 py-24 sm:py-32 lg:px-8">
{backgroundImage && (
<div
className="absolute inset-0 bg-cover bg-center"
style={{
backgroundImage: `url(${backgroundImage})`,
maskImage: 'radial-gradient(ellipse at center, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.06) 40%, transparent 70%)',
WebkitMaskImage: 'radial-gradient(ellipse at center, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.06) 40%, transparent 70%)'
}}
/>
<section ref={sectionRef} className="relative overflow-hidden bg-deep-graphite px-[calc(1rem+var(--sal))] pr-[calc(1rem+var(--sar))] py-20 sm:py-24 md:py-32 md:px-[calc(2rem+var(--sal))] md:pr-[calc(2rem+var(--sar))] lg:px-8">
{backgroundVideo && (
<>
<video
autoPlay
loop
muted
playsInline
className="absolute inset-0 w-full h-full object-cover opacity-20 md:opacity-30"
style={{
maskImage: 'radial-gradient(ellipse at center, black 0%, rgba(0,0,0,0.8) 40%, transparent 70%)',
WebkitMaskImage: 'radial-gradient(ellipse at center, black 0%, rgba(0,0,0,0.8) 40%, transparent 70%)',
}}
>
<source src={backgroundVideo} type="video/mp4" />
</video>
{/* Racing red accent for sections with background videos */}
<div className="absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-red-500/30 to-transparent" />
</>
)}
{backgroundImage && !backgroundVideo && (
<>
<div
className="absolute inset-0 bg-cover bg-center"
style={{
backgroundImage: `url(${backgroundImage})`,
maskImage: 'radial-gradient(ellipse at center, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.1) 40%, transparent 70%)',
WebkitMaskImage: 'radial-gradient(ellipse at center, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.1) 40%, transparent 70%)',
transform: `translateY(${bgParallax * 0.3}px)`
}}
/>
{/* Racing red accent for sections with background images */}
<div className="absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-red-500/30 to-transparent" />
</>
)}
{/* Carbon fiber texture on sections without images or videos */}
{!backgroundImage && !backgroundVideo && (
<div className="absolute inset-0 carbon-fiber opacity-30" />
)}
{/* Checkered pattern accent */}
<div className="absolute inset-0 checkered-pattern opacity-10" />
<Container size="lg" className="relative z-10">
<div className="grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-16 items-center">
{layout === 'text-left' ? (
<>
{/* Text Content - Left */}
<div className="space-y-6">
<h2 className="text-3xl sm:text-4xl font-semibold text-white leading-tight">
{heading}
</h2>
<div className="text-lg text-slate-400 font-light leading-relaxed space-y-4">
{description}
</div>
</div>
<div className="grid grid-cols-1 lg:grid-cols-2 gap-8 md:gap-12 lg:gap-16 items-center">
{/* Text Content - Always first on mobile, respects layout on desktop */}
<div
className={`space-y-4 md:space-y-6 lg:space-y-8 ${layout === 'text-right' ? 'lg:order-2' : ''}`}
style={{
opacity: 1,
transform: 'translateX(0)'
}}
>
<Heading level={2} className="text-xl md:text-2xl lg:text-3xl xl:text-4xl bg-gradient-to-r from-red-600 via-white to-blue-600 bg-clip-text text-transparent font-medium drop-shadow-[0_0_15px_rgba(220,0,0,0.4)] static-racing-gradient" style={{ WebkitTextStroke: '0.5px rgba(220,0,0,0.2)' }}>
{heading}
</Heading>
<div className="text-sm md:text-base lg:text-lg text-slate-400 font-light leading-relaxed md:leading-loose space-y-3 md:space-y-5">
{description}
</div>
</div>
{/* Mockup - Right (fade right) */}
<div className="relative">
<div
className="w-full h-[400px] lg:h-[500px]"
style={{
maskImage: 'linear-gradient(to right, white 50%, rgba(255,255,255,0.8) 70%, rgba(255,255,255,0.4) 85%, transparent 100%)',
WebkitMaskImage: 'linear-gradient(to right, white 50%, rgba(255,255,255,0.8) 70%, rgba(255,255,255,0.4) 85%, transparent 100%)'
}}
>
{mockup}
</div>
</div>
</>
) : (
<>
{/* Mockup - Left (fade left) */}
<div className="relative order-2 lg:order-1">
<div
className="w-full h-[400px] lg:h-[500px]"
style={{
maskImage: 'linear-gradient(to left, white 50%, rgba(255,255,255,0.8) 70%, rgba(255,255,255,0.4) 85%, transparent 100%)',
WebkitMaskImage: 'linear-gradient(to left, white 50%, rgba(255,255,255,0.8) 70%, rgba(255,255,255,0.4) 85%, transparent 100%)'
}}
>
{mockup}
</div>
</div>
{/* Text Content - Right */}
<div className="space-y-6 order-1 lg:order-2">
<h2 className="text-3xl sm:text-4xl font-semibold text-white leading-tight">
{heading}
</h2>
<div className="text-lg text-slate-400 font-light leading-relaxed space-y-4">
{description}
</div>
</div>
</>
)}
{/* Mockup - Always second on mobile, respects layout on desktop */}
<div
className={`relative group ${layout === 'text-right' ? 'lg:order-1' : ''}`}
style={{
opacity: 1,
transform: 'translateX(0) scale(1)'
}}
>
<div className={`w-full min-h-[240px] md:h-[380px] lg:h-[440px] transition-transform duration-speed group-hover:scale-[1.02] ${layout === 'text-left' ? 'md:[mask-image:linear-gradient(to_right,white_50%,rgba(255,255,255,0.8)_70%,rgba(255,255,255,0.4)_85%,transparent_100%)] md:[-webkit-mask-image:linear-gradient(to_right,white_50%,rgba(255,255,255,0.8)_70%,rgba(255,255,255,0.4)_85%,transparent_100%)]' : 'md:[mask-image:linear-gradient(to_left,white_50%,rgba(255,255,255,0.8)_70%,rgba(255,255,255,0.4)_85%,transparent_100%)] md:[-webkit-mask-image:linear-gradient(to_left,white_50%,rgba(255,255,255,0.8)_70%,rgba(255,255,255,0.4)_85%,transparent_100%)]'}`}>
{mockup}
</div>
</div>
</div>
</Container>
</section>

View File

@@ -0,0 +1,165 @@
'use client';
import { useRef } from 'react';
import Button from '@/components/ui/Button';
import { useScrollProgress } from '@/hooks/useScrollProgress';
export default function DiscordCTA() {
const discordUrl = process.env.NEXT_PUBLIC_DISCORD_URL || '#';
return (
<section id="community" className="relative py-4 md:py-12 lg:py-16 bg-gradient-to-b from-deep-graphite to-iron-gray">
<div className="max-w-4xl mx-auto px-2 md:px-3 lg:px-4">
<div
className="relative rounded-xl bg-gradient-to-br from-iron-gray via-deep-graphite to-iron-gray p-3 md:p-6 lg:p-10 border border-charcoal-outline shadow-[0_0_80px_rgba(88,101,242,0.15)]"
style={{
opacity: 1,
transform: 'scale(1)'
}}
>
{/* Discord brand accent */}
<div className="absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-transparent via-[#5865F2]/60 to-transparent" />
<div className="text-center space-y-2 md:space-y-4 lg:space-y-6">
{/* Header */}
<div className="space-y-1.5 md:space-y-3 lg:space-y-4">
<div
className="inline-flex items-center justify-center w-10 h-10 md:w-14 md:h-14 lg:w-18 lg:h-18 rounded-full bg-[#5865F2]/20 border border-[#5865F2]/30 mb-1.5 md:mb-3"
style={{
opacity: 1,
transform: 'scale(1) rotate(0deg)'
}}
>
<svg className="w-6 h-6 md:w-8 md:h-8 text-[#5865F2]" viewBox="0 0 24 24" fill="currentColor">
<path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515a.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0a12.64 12.64 0 0 0-.617-1.25a.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057a19.9 19.9 0 0 0 5.993 3.03a.078.078 0 0 0 .084-.028a14.09 14.09 0 0 0 1.226-1.994a.076.076 0 0 0-.041-.106a13.107 13.107 0 0 1-1.872-.892a.077.077 0 0 1-.008-.128a10.2 10.2 0 0 0 .372-.292a.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127a12.299 12.299 0 0 1-1.873.892a.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028a19.839 19.839 0 0 0 6.002-3.03a.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.956-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.955-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.946 2.418-2.157 2.418z"/>
</svg>
</div>
<div
style={{
opacity: 1,
transform: 'translateY(0)'
}}
>
<h2 className="text-lg md:text-2xl lg:text-3xl font-semibold text-white">
Join us on Discord
</h2>
<div className="w-16 md:w-24 lg:w-32 h-0.5 md:h-1 bg-gradient-to-r from-[#5865F2] to-[#7289DA] mx-auto rounded-full" />
</div>
</div>
{/* Personal message */}
<div
className="max-w-2xl mx-auto space-y-1.5 md:space-y-3 lg:space-y-4"
style={{
opacity: 1,
transform: 'translateY(0)'
}}
>
<p className="text-xs md:text-sm lg:text-base text-gray-300 font-light leading-relaxed">
GridPilot is a <strong className="text-white">solo developer project</strong>, and I'm building it because I got tired of the chaos in league racing.
</p>
<p className="text-xs md:text-sm text-gray-400 font-light leading-relaxed">
This is <strong className="text-gray-300">early days</strong>, and I need your help. Join the Discord to:
</p>
</div>
{/* Benefits grid */}
<div
className="grid md:grid-cols-2 gap-1.5 md:gap-2 lg:gap-3 max-w-2xl mx-auto mt-2 md:mt-4 lg:mt-6"
style={{
opacity: 1,
transform: 'scale(1)'
}}
>
<div className="flex items-start gap-1.5 md:gap-2.5 text-left p-2 md:p-3.5 rounded-lg bg-iron-gray/50 border border-charcoal-outline hover:border-[#5865F2]/30 transition-colors">
<div className="flex-shrink-0 w-5 h-5 md:w-6 md:h-6 rounded-lg bg-[#5865F2]/20 border border-[#5865F2]/30 flex items-center justify-center mt-0.5">
<svg className="w-3 h-3 md:w-4 md:h-4 text-[#5865F2]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" />
</svg>
</div>
<div>
<h3 className="text-[10px] md:text-xs text-white font-medium mb-0.5">Share your pain points</h3>
<p className="text-[9px] md:text-xs text-gray-400 leading-relaxed">Tell me what frustrates you about league racing today</p>
</div>
</div>
<div className="flex items-start gap-1.5 md:gap-2.5 text-left p-2 md:p-3.5 rounded-lg bg-iron-gray/50 border border-charcoal-outline hover:border-[#5865F2]/30 transition-colors">
<div className="flex-shrink-0 w-5 h-5 md:w-6 md:h-6 rounded-lg bg-[#5865F2]/20 border border-[#5865F2]/30 flex items-center justify-center mt-0.5">
<svg className="w-3 h-3 md:w-4 md:h-4 text-[#5865F2]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" />
</svg>
</div>
<div>
<h3 className="text-[10px] md:text-xs text-white font-medium mb-0.5">Shape the product</h3>
<p className="text-[9px] md:text-xs text-gray-400 leading-relaxed">Your ideas will directly influence what gets built</p>
</div>
</div>
<div className="flex items-start gap-1.5 md:gap-2.5 text-left p-2 md:p-3.5 rounded-lg bg-iron-gray/50 border border-charcoal-outline hover:border-[#5865F2]/30 transition-colors">
<div className="flex-shrink-0 w-5 h-5 md:w-6 md:h-6 rounded-lg bg-[#5865F2]/20 border border-[#5865F2]/30 flex items-center justify-center mt-0.5">
<svg className="w-3 h-3 md:w-4 md:h-4 text-[#5865F2]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z" />
</svg>
</div>
<div>
<h3 className="text-[10px] md:text-xs text-white font-medium mb-0.5">Be part of the community</h3>
<p className="text-[9px] md:text-xs text-gray-400 leading-relaxed">Connect with other league racers who get it</p>
</div>
</div>
<div className="flex items-start gap-1.5 md:gap-2.5 text-left p-2 md:p-3.5 rounded-lg bg-iron-gray/50 border border-charcoal-outline hover:border-[#5865F2]/30 transition-colors">
<div className="flex-shrink-0 w-5 h-5 md:w-6 md:h-6 rounded-lg bg-[#5865F2]/20 border border-[#5865F2]/30 flex items-center justify-center mt-0.5">
<svg className="w-3 h-3 md:w-4 md:h-4 text-[#5865F2]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4" />
</svg>
</div>
<div>
<h3 className="text-[10px] md:text-xs text-white font-medium mb-0.5">Get early access</h3>
<p className="text-[9px] md:text-xs text-gray-400 leading-relaxed">Test features first and help iron out the rough edges</p>
</div>
</div>
</div>
{/* CTA Button */}
<div
className="pt-2 md:pt-4 lg:pt-6"
style={{
opacity: 1,
transform: 'translateY(0) scale(1)'
}}
>
<Button
as="a"
href={discordUrl}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-1.5 md:gap-2.5 px-3 py-2 md:px-5 md:py-3 text-sm md:text-base bg-[#5865F2] hover:bg-[#4752C4] shadow-[0_0_40px_rgba(88,101,242,0.3)] hover:shadow-[0_0_60px_rgba(88,101,242,0.5)] transition-all duration-300 hover:scale-105"
>
<svg className="w-4 h-4 md:w-5 md:h-5" viewBox="0 0 24 24" fill="currentColor">
<path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515a.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0a12.64 12.64 0 0 0-.617-1.25a.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057a19.9 19.9 0 0 0 5.993 3.03a.078.078 0 0 0 .084-.028a14.09 14.09 0 0 0 1.226-1.994a.076.076 0 0 0-.041-.106a13.107 13.107 0 0 1-1.872-.892a.077.077 0 0 1-.008-.128a10.2 10.2 0 0 0 .372-.292a.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127a12.299 12.299 0 0 1-1.873.892a.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028a19.839 19.839 0 0 0 6.002-3.03a.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.956-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.955-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.946 2.418-2.157 2.418z"/>
</svg>
Join the Discord
</Button>
{!process.env.NEXT_PUBLIC_DISCORD_URL && (
<p className="mt-4 text-xs text-gray-500">
Note: Configure NEXT_PUBLIC_DISCORD_URL in your environment variables
</p>
)}
</div>
{/* Footer note */}
<p
className="text-[9px] md:text-xs text-gray-500 font-light leading-relaxed max-w-xl mx-auto pt-2 md:pt-4"
style={{
opacity: 1
}}
>
This is a community effort. Every voice matters. Let's build something that actually works for league racing.
</p>
</div>
</div>
</div>
</section>
);
}

View File

@@ -44,16 +44,16 @@ function FAQItem({ faq, index }: { faq: typeof faqs[0]; index: number }) {
<div className="rounded-lg bg-iron-gray border border-charcoal-outline transition-all duration-150 hover:-translate-y-1 hover:shadow-lg hover:border-primary-blue/50">
<button
onClick={() => setIsOpen(!isOpen)}
className="w-full p-6 text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-blue rounded-lg"
className="w-full p-2 md:p-3 lg:p-4 text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-blue rounded-lg min-h-[44px]"
>
<div className="flex items-center justify-between gap-4">
<h3 className="text-lg font-semibold text-white group-hover:text-primary-blue transition-colors duration-150">
<div className="flex items-center justify-between gap-1.5 md:gap-2">
<h3 className="text-xs md:text-sm font-semibold text-white group-hover:text-primary-blue transition-colors duration-150">
{faq.question}
</h3>
<motion.svg
animate={{ rotate: isOpen ? 180 : 0 }}
transition={{ duration: 0.15, ease: 'easeInOut' }}
className="w-5 h-5 text-neon-aqua flex-shrink-0"
className="w-3.5 h-3.5 md:w-4 md:h-4 text-neon-aqua flex-shrink-0"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
@@ -74,8 +74,8 @@ function FAQItem({ faq, index }: { faq: typeof faqs[0]; index: number }) {
}}
className="overflow-hidden"
>
<div className="px-6 pb-6">
<p className="text-base text-gray-300 font-light">
<div className="px-2 pb-2 pt-1 md:px-3 md:pb-3">
<p className="text-[10px] md:text-xs text-gray-300 font-light leading-relaxed">
{faq.answer}
</p>
</div>
@@ -87,15 +87,27 @@ function FAQItem({ faq, index }: { faq: typeof faqs[0]; index: number }) {
export default function FAQ() {
return (
<section className="py-24 bg-deep-graphite">
<div className="max-w-3xl mx-auto px-6">
<div className="text-center mb-16">
<h2 className="text-4xl md:text-5xl font-semibold text-white mb-3">
<section className="relative py-3 md:py-12 lg:py-16 bg-deep-graphite overflow-hidden">
{/* Background image with mask */}
<div
className="absolute inset-0 bg-cover bg-center"
style={{
backgroundImage: 'url(/images/porsche.jpeg)',
maskImage: 'radial-gradient(ellipse at center, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.1) 40%, transparent 70%)',
WebkitMaskImage: 'radial-gradient(ellipse at center, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.1) 40%, transparent 70%)'
}}
/>
{/* Racing red accent */}
<div className="absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-red-500/30 to-transparent" />
<div className="max-w-3xl mx-auto px-4 md:px-6 relative z-10">
<div className="text-center mb-4 md:mb-8">
<h2 className="text-base md:text-xl lg:text-2xl font-semibold text-white mb-1">
Frequently Asked Questions
</h2>
<div className="w-32 h-1 bg-gradient-to-r from-primary-blue to-neon-aqua mx-auto rounded-full" />
<div className="w-24 md:w-32 h-1 bg-gradient-to-r from-primary-blue to-neon-aqua mx-auto rounded-full" />
</div>
<div className="space-y-4">
<div className="space-y-1.5 md:space-y-2">
{faqs.map((faq, index) => (
<FAQItem key={faq.question} faq={faq} index={index} />
))}

View File

@@ -1,3 +1,6 @@
'use client';
import { useRef, useState, useEffect } from 'react';
import Section from '@/components/ui/Section';
import Container from '@/components/ui/Container';
import Heading from '@/components/ui/Heading';
@@ -8,6 +11,7 @@ import TeamCompetitionMockup from '@/components/mockups/TeamCompetitionMockup';
import ProtestWorkflowMockup from '@/components/mockups/ProtestWorkflowMockup';
import LeagueDiscoveryMockup from '@/components/mockups/LeagueDiscoveryMockup';
import DriverProfileMockup from '@/components/mockups/DriverProfileMockup';
import { useScrollProgress } from '@/hooks/useScrollProgress';
const features = [
{
@@ -42,35 +46,59 @@ const features = [
}
];
function FeatureCard({ feature, index }: { feature: typeof features[0], index: number }) {
return (
<div
className="flex flex-col gap-6 sm:gap-6 group"
style={{
opacity: 1,
transform: 'translateY(0) scale(1)'
}}
>
<div className="aspect-video w-full relative">
<div className="absolute -inset-0.5 bg-gradient-to-r from-racing-red/20 via-primary-blue/20 to-racing-red/20 rounded-lg opacity-0 group-hover:opacity-100 transition-opacity duration-500 blur-sm" />
<div className="relative">
<MockupStack index={index}>
<feature.MockupComponent />
</MockupStack>
</div>
</div>
<div className="space-y-3">
<div className="flex items-center gap-2">
<Heading level={3} className="bg-gradient-to-r from-red-600 via-white to-blue-600 bg-clip-text text-transparent font-medium drop-shadow-[0_0_15px_rgba(220,0,0,0.4)] static-racing-gradient" style={{ WebkitTextStroke: '0.5px rgba(220,0,0,0.2)' }}>
{feature.title}
</Heading>
</div>
<p className="text-sm sm:text-base leading-7 sm:leading-7 text-gray-400 font-light">
{feature.description}
</p>
</div>
</div>
);
}
export default function FeatureGrid() {
return (
<Section variant="default">
<Container>
<Container className="relative z-10">
<Container size="sm" center>
<Heading level={2} className="text-white">
Built for League Racing
</Heading>
<p className="mt-4 text-lg text-gray-400">
Everything you need to run a professional iRacing league, nothing you don&apos;t
</p>
<div
style={{
opacity: 1,
transform: 'translateY(0)'
}}
>
<Heading level={2} className="bg-gradient-to-r from-red-600 via-white to-blue-600 bg-clip-text text-transparent font-semibold drop-shadow-[0_0_20px_rgba(220,0,0,0.5)] static-racing-gradient" style={{ WebkitTextStroke: '1px rgba(220,0,0,0.2)' }}>
Building for League Racing
</Heading>
<p className="mt-4 sm:mt-6 text-base sm:text-lg text-gray-400">
These features are in development. Join the community to help shape what gets built first
</p>
</div>
</Container>
<div className="mx-auto mt-16 grid max-w-2xl grid-cols-1 gap-16 sm:mt-20 lg:max-w-none lg:grid-cols-2 xl:grid-cols-3">
<div className="mx-auto mt-8 sm:mt-12 md:mt-16 grid max-w-2xl grid-cols-1 gap-10 sm:gap-12 md:gap-16 lg:max-w-none lg:grid-cols-2 xl:grid-cols-3">
{features.map((feature, index) => (
<div key={feature.title} className="flex flex-col gap-6">
<div className="aspect-video w-full">
<MockupStack index={index}>
<feature.MockupComponent />
</MockupStack>
</div>
<div>
<Heading level={3} className="text-white">
{feature.title}
</Heading>
<p className="mt-2 text-base leading-7 text-gray-400">
{feature.description}
</p>
</div>
</div>
<FeatureCard key={feature.title} feature={feature} index={index} />
))}
</div>
</Container>

View File

@@ -1,57 +1,73 @@
'use client';
import { useRef } from 'react';
import { useScrollProgress } from '@/hooks/useScrollProgress';
export default function Footer() {
return (
<footer className="relative bg-deep-graphite">
<div className="absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-primary-blue to-transparent" />
<div className="max-w-6xl mx-auto px-6 py-16">
<div className="grid grid-cols-1 md:grid-cols-3 gap-12 mb-12">
<div>
<h3 className="text-xl font-semibold text-white mb-2">GridPilot</h3>
<div className="w-16 h-0.5 bg-gradient-to-r from-primary-blue to-neon-aqua mb-4 rounded-full" />
<p className="text-sm text-gray-400 font-light">
Making league racing less chaotic
</p>
</div>
<div>
<h4 className="text-sm font-semibold text-white mb-4">Product</h4>
<ul className="space-y-3">
<li>
<span className="text-sm text-gray-400 font-light cursor-not-allowed opacity-50">
Roadmap <span className="text-xs">(coming soon)</span>
</span>
</li>
<li>
<span className="text-sm text-gray-400 font-light cursor-not-allowed opacity-50">
Docs <span className="text-xs">(coming soon)</span>
</span>
</li>
</ul>
</div>
<div>
<h4 className="text-sm font-semibold text-white mb-4">Legal</h4>
<ul className="space-y-3">
<li>
<span className="text-sm text-gray-400 font-light cursor-not-allowed opacity-50">
Privacy <span className="text-xs">(coming soon)</span>
</span>
</li>
<li>
<span className="text-sm text-gray-400 font-light cursor-not-allowed opacity-50">
Terms <span className="text-xs">(coming soon)</span>
</span>
</li>
</ul>
</div>
<div className="max-w-4xl mx-auto px-[calc(1.5rem+var(--sal))] pr-[calc(1.5rem+var(--sar))] py-2 md:py-8 lg:py-12 pb-[calc(0.5rem+var(--sab))] md:pb-[calc(1.5rem+var(--sab))]">
{/* Racing stripe accent */}
<div
className="flex gap-1 mb-2 md:mb-4 lg:mb-6 justify-center"
style={{
opacity: 1,
transform: 'scaleX(1)'
}}
>
<div className="w-12 md:w-20 lg:w-28 h-[2px] md:h-0.5 lg:h-1 bg-white rounded-full" />
<div className="w-12 md:w-20 lg:w-28 h-[2px] md:h-0.5 lg:h-1 bg-primary-blue rounded-full" />
<div className="w-12 md:w-20 lg:w-28 h-[2px] md:h-0.5 lg:h-1 bg-white rounded-full" />
</div>
<div className="pt-8 border-t border-charcoal-outline">
<div className="flex flex-col md:flex-row justify-between items-center gap-4">
<p className="text-sm text-gray-500 font-light">
© 2025 GridPilot. All rights reserved.
</p>
</div>
{/* Personal message */}
<div
className="text-center mb-3 md:mb-6 lg:mb-8"
style={{
opacity: 1,
transform: 'translateY(0)'
}}
>
<p className="text-[9px] md:text-xs lg:text-sm text-gray-300 mb-1 md:mb-2">
🏁 Built by a sim racer, for sim racers
</p>
<p className="text-[9px] md:text-xs text-gray-400 font-light max-w-2xl mx-auto">
Just a fellow racer tired of spreadsheets and chaos. GridPilot is my passion project to make league racing actually fun again.
</p>
</div>
{/* Community links */}
<div
className="flex justify-center gap-4 md:gap-6 lg:gap-8 mb-3 md:mb-6 lg:mb-8"
style={{
opacity: 1,
transform: 'scale(1)'
}}
>
<a
href="https://discord.gg/gridpilot"
className="text-[9px] md:text-xs text-primary-blue hover:text-neon-aqua transition-colors font-medium inline-flex items-center justify-center min-h-[44px] min-w-[44px] px-3 py-2 active:scale-95 transition-transform"
>
💬 Join Discord
</a>
</div>
{/* Development status */}
<div
className="text-center pt-2 md:pt-4 lg:pt-6 border-t border-charcoal-outline"
style={{
opacity: 1,
transform: 'translateY(0)'
}}
>
<p className="text-[9px] md:text-xs lg:text-sm text-gray-500 mb-1 md:mb-2">
Early development Feedback welcome
</p>
<p className="text-[9px] md:text-xs text-gray-600">
Questions? Find me on Discord
</p>
</div>
</div>
</footer>

View File

@@ -1,67 +1,139 @@
'use client';
import { useRef } from 'react';
import Button from '@/components/ui/Button';
import Container from '@/components/ui/Container';
import Heading from '@/components/ui/Heading';
import { useScrollProgress, useParallax } from '@/hooks/useScrollProgress';
const discordUrl = process.env.NEXT_PUBLIC_DISCORD_URL || '#';
if (!process.env.NEXT_PUBLIC_DISCORD_URL) {
console.warn('NEXT_PUBLIC_DISCORD_URL is not set. Discord button will use "#" as fallback.');
}
export default function Hero() {
const sectionRef = useRef<HTMLElement>(null);
const bgParallax = useParallax(sectionRef, 0.3);
return (
<section className="relative overflow-hidden bg-deep-graphite px-6 py-24 sm:py-32 lg:px-8">
{/* Background image layer */}
<section ref={sectionRef} className="relative overflow-hidden bg-deep-graphite px-[calc(1.5rem+var(--sal))] pr-[calc(1.5rem+var(--sar))] pt-[calc(3rem+var(--sat))] pb-16 sm:pt-[calc(4rem+var(--sat))] sm:pb-24 md:py-32 lg:px-8">
{/* Background image layer with parallax */}
<div
className="absolute inset-0 bg-cover bg-center"
style={{
backgroundImage: 'url(/images/porsche.jpeg)',
maskImage: 'radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.08) 40%, transparent 70%)',
WebkitMaskImage: 'radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.08) 40%, transparent 70%)'
backgroundImage: 'url(/images/header.jpeg)',
maskImage: 'radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.35) 40%, transparent 70%)',
WebkitMaskImage: 'radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.35) 40%, transparent 70%)',
transform: `translateY(${bgParallax * 0.5}px)`
}}
/>
{/* Subtle radial gradient overlay */}
<div className="absolute inset-0 bg-gradient-radial from-primary-blue/10 via-transparent to-transparent opacity-40 pointer-events-none" />
{/* Racing red accent gradient */}
<div className="absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-transparent via-red-600/40 to-transparent" />
{/* Optional motorsport grid pattern */}
<div className="absolute inset-0 opacity-[0.015]" style={{
backgroundImage: `linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px)`,
backgroundSize: '40px 40px'
}} />
{/* Racing stripes background */}
<div className="absolute inset-0 racing-stripes opacity-30" />
<Container size="sm" center className="relative z-10">
<Heading level={1} className="text-white leading-tight tracking-tight">
{/* Checkered pattern overlay */}
<div className="absolute inset-0 checkered-pattern opacity-20" />
{/* Speed lines - left side */}
<div className="absolute left-0 top-1/4 w-32 h-px bg-gradient-to-r from-transparent to-primary-blue/30 animate-speed-lines" style={{ animationDelay: '0s' }} />
<div className="absolute left-0 top-1/3 w-24 h-px bg-gradient-to-r from-transparent to-primary-blue/20 animate-speed-lines" style={{ animationDelay: '0.3s' }} />
<div className="absolute left-0 top-2/5 w-28 h-px bg-gradient-to-r from-transparent to-primary-blue/25 animate-speed-lines" style={{ animationDelay: '0.6s' }} />
{/* Carbon fiber accent - bottom */}
<div className="absolute bottom-0 left-0 right-0 h-32 carbon-fiber opacity-50" />
{/* Radial gradient overlay with racing red accent */}
<div className="absolute inset-0 bg-gradient-radial from-red-600/5 via-primary-blue/5 to-transparent opacity-60 pointer-events-none" />
<Container size="sm" center className="relative z-10 space-y-6 sm:space-y-8 md:space-y-12">
<Heading
level={1}
className="text-2xl sm:text-4xl md:text-5xl lg:text-6xl leading-tight tracking-tight font-semibold bg-gradient-to-r from-red-600 via-white to-blue-600 bg-clip-text text-transparent drop-shadow-[0_0_15px_rgba(220,0,0,0.4)] static-racing-gradient"
style={{
WebkitTextStroke: '0.5px rgba(220,0,0,0.2)',
opacity: 1,
transform: 'translateY(0)',
filter: 'blur(0)'
}}
>
League racing is incredible. What's missing is everything around it.
</Heading>
<div className="mt-8 text-lg leading-relaxed text-slate-400 font-light">
<p>
<div
className="text-sm sm:text-lg md:text-xl lg:text-2xl leading-relaxed text-slate-200 font-light space-y-4 sm:space-y-6"
style={{
opacity: 1,
transform: 'translateY(0)'
}}
>
<p className="text-left">
If you've been in any league, you know the feeling:
</p>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3 mt-6 max-w-2xl mx-auto">
<div className="flex items-center gap-3">
<span className="text-primary-blue text-xl"></span>
<span>Results scattered across Discord</span>
{/* Problem badges - mobile optimized */}
<div className="flex flex-col sm:flex-row sm:flex-wrap gap-2 sm:gap-3 items-stretch sm:justify-center sm:items-center max-w-2xl mx-auto">
<div className="flex items-center gap-2.5 px-3 py-2.5 sm:gap-2.5 sm:px-5 sm:py-2.5 bg-gradient-to-br from-slate-800/80 to-slate-900/80 border border-red-500/20 rounded-lg backdrop-blur-md active:scale-95 sm:hover:border-red-500/40 sm:hover:shadow-[0_0_15px_rgba(239,68,68,0.15)] transition-all duration-300">
<span className="text-red-500 text-sm sm:text-sm font-semibold flex-shrink-0">×</span>
<span className="text-slate-100 text-sm sm:text-base font-medium text-left">Results scattered across Discord</span>
</div>
<div className="flex items-center gap-3">
<span className="text-primary-blue text-xl"></span>
<span>No long-term identity</span>
<div className="flex items-center gap-2.5 px-3 py-2.5 sm:gap-2.5 sm:px-5 sm:py-2.5 bg-gradient-to-br from-slate-800/80 to-slate-900/80 border border-red-500/20 rounded-lg backdrop-blur-md active:scale-95 sm:hover:border-red-500/40 sm:hover:shadow-[0_0_15px_rgba(239,68,68,0.15)] transition-all duration-300">
<span className="text-red-500 text-sm sm:text-sm font-semibold flex-shrink-0">×</span>
<span className="text-slate-100 text-sm sm:text-base font-medium text-left">No long-term identity</span>
</div>
<div className="flex items-center gap-3">
<span className="text-primary-blue text-xl"></span>
<span>No career progression</span>
<div className="flex items-center gap-2.5 px-3 py-2.5 sm:gap-2.5 sm:px-5 sm:py-2.5 bg-gradient-to-br from-slate-800/80 to-slate-900/80 border border-red-500/20 rounded-lg backdrop-blur-md active:scale-95 sm:hover:border-red-500/40 sm:hover:shadow-[0_0_15px_rgba(239,68,68,0.15)] transition-all duration-300">
<span className="text-red-500 text-sm sm:text-sm font-semibold flex-shrink-0">×</span>
<span className="text-slate-100 text-sm sm:text-base font-medium text-left">No career progression</span>
</div>
<div className="flex items-center gap-3">
<span className="text-primary-blue text-xl"></span>
<span>Forgotten after each season</span>
<div className="flex items-center gap-2.5 px-3 py-2.5 sm:gap-2.5 sm:px-5 sm:py-2.5 bg-gradient-to-br from-slate-800/80 to-slate-900/80 border border-red-500/20 rounded-lg backdrop-blur-md active:scale-95 sm:hover:border-red-500/40 sm:hover:shadow-[0_0_15px_rgba(239,68,68,0.15)] transition-all duration-300">
<span className="text-red-500 text-sm sm:text-sm font-semibold flex-shrink-0">×</span>
<span className="text-slate-100 text-sm sm:text-base font-medium text-left">Forgotten after each season</span>
</div>
</div>
<p className="mt-8">
<p className="text-left">
The ecosystem isn't built for this.
</p>
<p className="mt-4">
<strong className="text-white">GridPilot gives your league racing a real home.</strong>
<p className="text-left">
<strong className="text-white font-semibold">GridPilot gives your league racing a real home.</strong>
</p>
</div>
<div className="mt-12 flex items-center justify-center">
<Button as="a" href="#early-access" className="shadow-glow hover:shadow-glow-strong transition-shadow duration-300">
Get Early Access
</Button>
<div
className="flex items-center justify-center"
style={{
opacity: 1,
transform: 'translateY(0) scale(1)'
}}
>
<a
href={discordUrl}
target="_blank"
rel="noopener noreferrer"
className="group relative inline-flex items-center justify-center gap-3 px-8 py-4 min-h-[44px] min-w-[44px] bg-[#5865F2] hover:bg-[#4752C4] text-white font-semibold text-base sm:text-lg rounded-lg transition-all duration-300 hover:scale-105 hover:-translate-y-0.5 shadow-[0_0_20px_rgba(88,101,242,0.3)] hover:shadow-[0_0_30px_rgba(88,101,242,0.6)] active:scale-95"
aria-label="Join our Discord community"
>
{/* Discord Logo SVG */}
<svg
className="w-7 h-7 transition-transform duration-300 group-hover:scale-110"
viewBox="0 0 71 55"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<g clipPath="url(#clip0)">
<path
d="M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z"
fill="currentColor"
/>
</g>
<defs>
<clipPath id="clip0">
<rect width="71" height="55" fill="white"/>
</clipPath>
</defs>
</svg>
<span>Join us on Discord</span>
</a>
</div>
</Container>
</section>