Merge version_3 into main

Merge version_3 into main
This commit was merged in pull request #5.
This commit is contained in:
2026-06-11 10:43:09 +00:00
4 changed files with 204 additions and 11 deletions

100
src/app/archives/page.tsx Normal file
View File

@@ -0,0 +1,100 @@
"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';
export default function ArchivesPage() {
const navItems = [
{ name: "Home", id: "/" },
{ name: "Search", id: "/search" },
{ name: "Archives", id: "/archives" },
{ name: "About", id: "/#about" },
{ name: "Matches", id: "/#matches" },
{ name: "Stats", id: "/#stats" },
{ name: "Fans Say", id: "/#testimonials" },
{ name: "FAQ", id: "/#faq" },
{ name: "Contact", id: "/#contact" },
];
const footerColumns = [
{
title: "Navigate", items: [
{ label: "Home", href: "/" },
{ label: "Search", href: "/search" },
{ label: "Archives", href: "/archives" },
{ label: "Matches", href: "/#matches" },
{ label: "Stats", href: "/#stats" }
],
},
{
title: "Resources", items: [
{ label: "FAQ", href: "/#faq" },
{ label: "About Us", href: "/#about" },
{ label: "Contact", href: "/#contact" },
],
},
{
title: "Legal", items: [
{ label: "Privacy Policy", href: "/privacy" },
{ label: "Terms of Service", href: "/terms" },
],
},
];
return (
<ThemeProvider
defaultButtonVariant="elastic-effect"
defaultTextAnimation="entrance-slide"
borderRadius="rounded"
contentWidth="small"
sizing="largeSizeMediumTitles"
background="none"
cardStyle="outline"
primaryButtonStyle="diagonal-gradient"
secondaryButtonStyle="solid"
headingFontWeight="extrabold"
>
<ReactLenis root>
<div id="nav" data-section="nav">
<NavbarLayoutFloatingOverlay
navItems={navItems}
logoSrc="http://img.b2bpic.net/free-vector/hand-drawn-football-soccer-club-logo_23-2149313711.jpg"
logoAlt="World Cup Hub Logo"
brandName="World Cup Hub"
/>
</div>
<div id="archives-section" data-section="archives-section">
<MetricCardSeven
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={true}
metrics={[
{ id: "2022", value: "2022", title: "Qatar", items: ["Argentina wins", "Historic tournament", "Middle East debut"] },
{ id: "2018", value: "2018", title: "Russia", items: ["France lifts trophy", "VAR introduced", "Host nation excels"] },
{ id: "2014", value: "2014", title: "Brazil", items: ["Germany triumphs", "Brazil's home setback", "Goal-filled tournament"] },
{ id: "2010", value: "2010", title: "South Africa", items: ["Spain's first title", "Vuvuzelas debut", "African continent hosts"] },
{ id: "2006", value: "2006", title: "Germany", items: ["Italy takes cup", "Zidane's headbutt", "Tense final"] },
{ id: "2002", value: "2002", title: "Korea/Japan", items: ["Brazil's fifth star", "First Asian hosts", "Ronaldo's redemption"] },
{ id: "1998", value: "1998", title: "France", items: ["France wins at home", "Zidane's masterclass", "New format debut"] },
{ id: "1994", value: "1994", title: "USA", items: ["Brazil wins thriller", "First penalty shootout final", "High attendance"] }
]}
title="World Cup Archives by Year"
description="Explore historical FIFA World Cup tournaments, year by year. Dive into the past and relive the glory of each iconic event and its champions."
/>
</div>
<div id="footer" data-section="footer">
<FooterBaseReveal
logoText="World Cup Hub"
columns={footerColumns}
copyrightText="© 2024 World Cup Hub. All rights reserved."
/>
</div>
</ReactLenis>
</ThemeProvider>
);
}

View File

@@ -23,7 +23,7 @@ export default function LandingPage() {
contentWidth="small"
sizing="largeSizeMediumTitles"
background="none"
cardStyle="outline"
cardStyle="solid"
primaryButtonStyle="diagonal-gradient"
secondaryButtonStyle="solid"
headingFontWeight="extrabold"
@@ -279,4 +279,4 @@ export default function LandingPage() {
</ReactLenis>
</ThemeProvider>
);
}
}

93
src/app/search/page.tsx Normal file
View File

@@ -0,0 +1,93 @@
"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import ContactCenter from '@/components/sections/contact/ContactCenter';
export default function SearchPage() {
const navItems = [
{ name: "Home", id: "/" },
{ name: "Search", id: "/search" },
{ name: "Archives", id: "/archives" },
{ name: "About", id: "/#about" },
{ name: "Matches", id: "/#matches" },
{ name: "Stats", id: "/#stats" },
{ name: "Fans Say", id: "/#testimonials" },
{ name: "FAQ", id: "/#faq" },
{ name: "Contact", id: "/#contact" },
];
const footerColumns = [
{
title: "Navigate", items: [
{ label: "Home", href: "/" },
{ label: "Search", href: "/search" },
{ label: "Archives", href: "/archives" },
{ label: "Matches", href: "/#matches" },
{ label: "Stats", href: "/#stats" }
],
},
{
title: "Resources", items: [
{ label: "FAQ", href: "/#faq" },
{ label: "About Us", href: "/#about" },
{ label: "Contact", href: "/#contact" },
],
},
{
title: "Legal", items: [
{ label: "Privacy Policy", href: "/privacy" },
{ label: "Terms of Service", href: "/terms" },
],
},
];
return (
<ThemeProvider
defaultButtonVariant="elastic-effect"
defaultTextAnimation="entrance-slide"
borderRadius="rounded"
contentWidth="small"
sizing="largeSizeMediumTitles"
background="none"
cardStyle="outline"
primaryButtonStyle="diagonal-gradient"
secondaryButtonStyle="solid"
headingFontWeight="extrabold"
>
<ReactLenis root>
<div id="nav" data-section="nav">
<NavbarLayoutFloatingOverlay
navItems={navItems}
logoSrc="http://img.b2bpic.net/free-vector/hand-drawn-football-soccer-club-logo_23-2149313711.jpg"
logoAlt="World Cup Hub Logo"
brandName="World Cup Hub"
/>
</div>
<div id="search-section" data-section="search-section">
<ContactCenter
useInvertedBackground={false}
background={{ variant: "radial-gradient" }}
tag="Find Anything"
title="Search World Cup Data"
description="Enter keywords to find matches, teams, players, or historical tournaments instantly."
inputPlaceholder="Search for teams, players, matches, or years..."
buttonText="Search"
onSubmit={() => console.log('Search initiated')}
/>
</div>
<div id="footer" data-section="footer">
<FooterBaseReveal
logoText="World Cup Hub"
columns={footerColumns}
copyrightText="© 2024 World Cup Hub. All rights reserved."
/>
</div>
</ReactLenis>
</ThemeProvider>
);
}

View File

@@ -10,15 +10,15 @@
--accent: #ffffff;
--background-accent: #ffffff; */
--background: #0a0a0a;
--card: #1a1a1a;
--foreground: #f5f5f5;
--primary-cta: #ffdf7d;
--primary-cta-text: #0a0a0a;
--secondary-cta: #1a1a1a;
--secondary-cta-text: #ffffff;
--accent: #b8860b;
--background-accent: #8b6914;
--background: #020617;
--card: #0f172a;
--foreground: #e2e8f0;
--primary-cta: #c4d8f9;
--primary-cta-text: #020617;
--secondary-cta: #041633;
--secondary-cta-text: #e2e8f0;
--accent: #2d30f3;
--background-accent: #1d4ed8;
/* text sizing - set by ThemeProvider */
/* --text-2xs: clamp(0.465rem, 0.62vw, 0.62rem);