Update src/components/Layout.tsx
This commit is contained in:
@@ -7,74 +7,42 @@ import { StyleProvider } from "@/components/ui/StyleProvider";
|
||||
|
||||
export default function Layout() {
|
||||
const navItems = [
|
||||
{
|
||||
"name": "Competition",
|
||||
"href": "#hero"
|
||||
},
|
||||
{
|
||||
"name": "Rules",
|
||||
"href": "#about"
|
||||
},
|
||||
{
|
||||
"name": "How to Win",
|
||||
"href": "#features"
|
||||
},
|
||||
{
|
||||
"name": "FAQ",
|
||||
"href": "#faq"
|
||||
},
|
||||
{
|
||||
"name": "Testimonial",
|
||||
"href": "#testimonial"
|
||||
},
|
||||
{
|
||||
"name": "Metrics",
|
||||
"href": "#metrics"
|
||||
},
|
||||
{
|
||||
"name": "Social Proof",
|
||||
"href": "#social-proof"
|
||||
}
|
||||
];
|
||||
{ name: "Competition", href: "#hero" },
|
||||
{ name: "Rules", href: "#about" },
|
||||
{ name: "How to Win", href: "#features" },
|
||||
{ name: "FAQ", href: "#faq" },
|
||||
{ name: "Testimonial", href: "#testimonial" },
|
||||
{ name: "Metrics", href: "#metrics" },
|
||||
{ name: "Social Proof", href: "#social-proof" }
|
||||
];
|
||||
|
||||
return (
|
||||
<StyleProvider buttonVariant="magnetic" siteBackground="aurora" heroBackground="radialGradient">
|
||||
<SiteBackgroundSlot />
|
||||
<SectionErrorBoundary name="navbar">
|
||||
<NavbarFloatingLogo
|
||||
logo="Lulu Transport"
|
||||
logoImageSrc="https://images.unsplash.com/photo-1580674285054-bed31e145f59?auto=format&fit=crop&q=80&w=100&h=100"
|
||||
ctaButton={{
|
||||
text: "Leaderboard",
|
||||
href: "#metrics",
|
||||
}}
|
||||
navItems={navItems} />
|
||||
logo="Lulu Transport"
|
||||
logoImageSrc="http://img.b2bpic.net/free-photo/train-station-city-life-with-car-icon_53876-120988.jpg"
|
||||
ctaButton={{ text: "Leaderboard", href: "#metrics" }}
|
||||
navItems={navItems}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
<main className="flex-grow">
|
||||
<Outlet />
|
||||
</main>
|
||||
<SectionErrorBoundary name="footer">
|
||||
<FooterBrand
|
||||
brand="Lulu Transport LLC"
|
||||
columns={[
|
||||
{
|
||||
items: [
|
||||
brand="Lulu Transport LLC"
|
||||
columns={[
|
||||
{
|
||||
label: "Competition Rules",
|
||||
href: "#about",
|
||||
},
|
||||
{
|
||||
label: "Leaderboard",
|
||||
href: "#metrics",
|
||||
},
|
||||
{
|
||||
label: "Privacy Policy",
|
||||
href: "#",
|
||||
},
|
||||
],
|
||||
},
|
||||
]}
|
||||
/>
|
||||
items: [
|
||||
{ label: "Competition Rules", href: "#about" },
|
||||
{ label: "Leaderboard", href: "#metrics" },
|
||||
{ label: "Privacy Policy", href: "#" }
|
||||
]
|
||||
}
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</StyleProvider>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user