71 lines
2.4 KiB
TypeScript
71 lines
2.4 KiB
TypeScript
"use client";
|
|
|
|
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
|
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
|
|
import Link from "next/link";
|
|
|
|
interface FooterProps {
|
|
brandName?: string;
|
|
navItems: Array<{ name: string; href: string; }>;
|
|
}
|
|
|
|
const Footer: React.FC<FooterProps> = ({ brandName = "Nexsoft Australia", navItems }) => {
|
|
return (
|
|
<footer className="w-full py-8 bg-card text-foreground border-t border-accent mt-16">
|
|
<div className="mx-auto px-4 md:px-6 max-w-7xl flex flex-col md:flex-row justify-between items-center gap-4">
|
|
<div className="text-lg font-bold">
|
|
{brandName}
|
|
</div>
|
|
<nav className="flex flex-wrap justify-center gap-6">
|
|
{navItems.map((item) => (
|
|
<Link key={item.href} href={item.href} className="text-foreground hover:text-primary-cta">
|
|
{item.name}
|
|
</Link>
|
|
))}
|
|
</nav>
|
|
<div className="text-sm text-foreground/80">
|
|
© {new Date().getFullYear()} {brandName}. All rights reserved.
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
);
|
|
};
|
|
|
|
export default function HomePage() {
|
|
const navItems = [
|
|
{name: "Home", id: "home", href: "/"},
|
|
{name: "Contact us", id: "contact", href: "/contact"}
|
|
];
|
|
|
|
const navbarProps = {
|
|
brandName: "Nexsoft Australia", navItems: navItems,
|
|
button: {text: "Get a Quote", href: "/contact"}
|
|
};
|
|
|
|
return (
|
|
<ThemeProvider
|
|
defaultButtonVariant="hover-magnetic"
|
|
defaultTextAnimation="background-highlight"
|
|
borderRadius="soft"
|
|
contentWidth="medium"
|
|
sizing="largeSmall"
|
|
background="blurBottom"
|
|
cardStyle="gradient-radial"
|
|
primaryButtonStyle="primary-glow"
|
|
secondaryButtonStyle="radial-glow"
|
|
headingFontWeight="normal"
|
|
>
|
|
<div id="nav" data-section="nav">
|
|
<NavbarLayoutFloatingOverlay {...navbarProps} />
|
|
</div>
|
|
{/*
|
|
Due to an empty sectionRegistry, no sections can be rendered on this page.
|
|
This site will only display the Navbar and Footer.
|
|
*/}
|
|
<main className="min-h-[calc(100vh-16rem)] flex items-center justify-center">
|
|
<h1 className="text-3xl md:text-5xl font-bold text-center">Welcome to Nexsoft Australia</h1>
|
|
</main>
|
|
<Footer brandName="Nexsoft Australia" navItems={navItems} />
|
|
</ThemeProvider>
|
|
);
|
|
} |