Update src/app/page.tsx
This commit is contained in:
@@ -1,5 +1,62 @@
|
|||||||
import { redirect } from 'next/navigation';
|
'use client';
|
||||||
|
import { ThemeProvider } from 'next-themes';
|
||||||
|
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
|
||||||
|
import HeroCentered from '@/components/sections/hero/HeroCentered';
|
||||||
|
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
redirect('/components');
|
const navItems = [
|
||||||
|
{ name: "Home", id: "/" },
|
||||||
|
{ name: "Cart", id: "/cart" },
|
||||||
|
{ name: "Checkout", id: "/checkout" },
|
||||||
|
{ name: "Order Conf", id: "/order-confirmation" }
|
||||||
|
];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<ThemeProvider
|
||||||
|
attribute="class"
|
||||||
|
defaultButtonVariant="hover-magnetic"
|
||||||
|
defaultTextAnimation="entrance-slide"
|
||||||
|
borderRadius="rounded"
|
||||||
|
contentWidth="medium"
|
||||||
|
sizing="medium"
|
||||||
|
background="none"
|
||||||
|
cardStyle="solid"
|
||||||
|
primaryButtonStyle="gradient"
|
||||||
|
secondaryButtonStyle="glass"
|
||||||
|
headingFontWeight="bold"
|
||||||
|
>
|
||||||
|
<NavbarStyleCentered navItems={navItems} brandName="Webild" logoSrc="https://via.placeholder.com/40" />
|
||||||
|
<main className="flex min-h-screen flex-col items-center justify-between">
|
||||||
|
<HeroCentered
|
||||||
|
id="hero"
|
||||||
|
title="Welcome to Our Store!"
|
||||||
|
description="Explore our amazing products and enjoy a seamless shopping experience from cart to checkout."
|
||||||
|
background={{ variant: 'radial-gradient' }}
|
||||||
|
avatars={[{ src: 'https://via.placeholder.com/150', alt: 'User 1' }, { src: 'https://via.placeholder.com/150', alt: 'User 2' }]}
|
||||||
|
avatarText="Join thousands of happy shoppers!"
|
||||||
|
buttons={[{ text: 'Start Shopping', href: '/' }]}
|
||||||
|
buttonAnimation='slide-up'
|
||||||
|
/>
|
||||||
|
</main>
|
||||||
|
<FooterBaseReveal
|
||||||
|
logoText="Webild"
|
||||||
|
columns={[
|
||||||
|
{
|
||||||
|
title: "Company", items: [
|
||||||
|
{ label: "About Us", href: "/" },
|
||||||
|
{ label: "Contact", href: "/" },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Legal", items: [
|
||||||
|
{ label: "Privacy Policy", href: "/" },
|
||||||
|
{ label: "Terms of Service", href: "/" },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
copyrightText="© 2023 Webild. All rights reserved."
|
||||||
|
/>
|
||||||
|
</ThemeProvider>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user