Add src/app/search/page.tsx

This commit is contained in:
2026-03-06 18:48:05 +00:00
parent 3263ea8ab2
commit 371ea6c8bc

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

@@ -0,0 +1,175 @@
"use client";
import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import TextSplitAbout from "@/components/sections/about/TextSplitAbout";
import FaqSplitMedia from "@/components/sections/faq/FaqSplitMedia";
import ContactCTA from "@/components/sections/contact/ContactCTA";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import { Zap, Search } from "lucide-react";
export default function SearchPage() {
const navItems = [
{ name: "Search", id: "search" },
{ name: "Browse", id: "browse" },
{ name: "Compare", id: "compare" },
{ name: "Timeline", id: "timeline" },
{ name: "About", id: "about" },
];
const footerColumns = [
{
items: [
{ label: "Search Database", href: "/" },
{ label: "Browse Vehicles", href: "/search" },
{ label: "Compare Cars", href: "/" },
{ label: "Timeline Explorer", href: "/" },
],
},
{
items: [
{ label: "Brand Directory", href: "/" },
{ label: "Model Guide", href: "/" },
{ label: "Specifications", href: "/" },
{ label: "Production Data", href: "/" },
],
},
{
items: [
{ label: "About Us", href: "/" },
{ label: "Help & Support", href: "/" },
{ label: "Contact", href: "/" },
{ label: "Contribute Data", href: "/" },
],
},
{
items: [
{ label: "Privacy Policy", href: "/" },
{ label: "Terms of Service", href: "/" },
{ label: "Data Attribution", href: "/" },
{ label: "Sitemap", href: "/" },
],
},
];
return (
<ThemeProvider
defaultButtonVariant="shift-hover"
defaultTextAnimation="entrance-slide"
borderRadius="pill"
contentWidth="compact"
sizing="largeSmallSizeMediumTitles"
background="aurora"
cardStyle="solid"
primaryButtonStyle="gradient"
secondaryButtonStyle="solid"
headingFontWeight="extrabold"
>
<div id="nav" data-section="nav">
<NavbarStyleFullscreen
navItems={navItems}
brandName="AutoArchive"
bottomLeftText="Explore Automotive History"
bottomRightText="1886 to Present"
/>
</div>
<div id="search-intro" data-section="search-intro">
<TextSplitAbout
title="Search Our Complete Database"
description={[
"Use our powerful search engine to explore over 50,000 vehicle models from across the entire history of automobiles. Filter by brand, year, specifications, and more.",
"Whether you're looking for a specific model, exploring a brand's history, or discovering vehicles by era, our advanced search tools make it easy to find exactly what you're looking for.",
"Every vehicle in our database includes detailed specifications, production timelines, engine options, performance data, and historical information to give you complete automotive knowledge.",
]}
showBorder={false}
useInvertedBackground={false}
buttons={[
{
text: "Back to Home",
href: "/",
},
{
text: "Browse by Brand",
href: "/search",
},
]}
buttonAnimation="entrance-slide"
/>
</div>
<div id="search-help" data-section="search-help">
<FaqSplitMedia
title="How to Search AutoArchive"
description="Learn how to use our search filters and tools to find vehicles quickly and efficiently"
tag="Search Tips"
tagAnimation="entrance-slide"
textboxLayout="default"
useInvertedBackground={false}
mediaAnimation="entrance-slide"
faqsAnimation="entrance-slide"
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AaEFWytZ9QS584IizrKmiAvruy/a-modern-sleek-automotive-database-inter-1772822811540-4e4a72cf.png?_wi=2"
imageAlt="AutoArchive Search Interface"
mediaPosition="right"
faqs={[
{
id: "1",
title: "How do I search by brand and model?",
content:
"Use the brand filter to select a manufacturer, then choose from available models. Each model shows all generations and variants with their production years and specifications.",
},
{
id: "2",
title: "Can I search by year or era?",
content:
"Yes, you can filter vehicles by production year or select entire eras (Golden Age 1900-1920s, Classics 1930-1950s, etc.). This makes it easy to explore vehicles from specific time periods.",
},
{
id: "3",
title: "What search filters are available?",
content:
"You can filter by brand, model, year, country of origin, engine type, body style, horsepower range, drivetrain, transmission type, and more. Combine multiple filters for precise results.",
},
{
id: "4",
title: "How do I find specifications?",
content:
"Click on any vehicle to view its dedicated detail page featuring complete technical specifications, engine options, performance metrics, production data, and historical information.",
},
]}
/>
</div>
<div id="search-cta" data-section="search-cta">
<ContactCTA
tag="Ready to Search?"
tagIcon={Search}
tagAnimation="entrance-slide"
title="Start Exploring the Database"
description="Access our complete automotive encyclopedia. Search through 2,000+ manufacturers and 50,000+ models. Find specifications, compare vehicles, and discover automotive history."
buttons={[
{
text: "Go to Search",
href: "/search",
},
{
text: "Return to Home",
href: "/",
},
]}
buttonAnimation="entrance-slide"
background={{ variant: "aurora" }}
useInvertedBackground={false}
/>
</div>
<div id="footer" data-section="footer">
<FooterLogoEmphasis
logoText="AutoArchive"
columns={footerColumns}
/>
</div>
</ThemeProvider>
);
}