Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions frontend/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { Providers } from "./providers";
import type { Metadata } from 'next';
import { Geist, Geist_Mono } from 'next/font/google';
import './globals.css';
import { Providers } from './providers';
import Navbar from '@/components/navbar';

const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
variable: '--font-geist-sans',
subsets: ['latin'],
});

const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
variable: '--font-geist-mono',
subsets: ['latin'],
});

export const metadata: Metadata = {
title: "Assets Up",
description: "Modern Assets and Inventory Management Platform",
title: 'Assets Up',
description: 'Modern Assets and Inventory Management Platform',
};

export default function RootLayout({
Expand All @@ -28,8 +29,9 @@ export default function RootLayout({
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<Navbar />
<Providers>{children}</Providers>
</body>
</html>
);
}
}
43 changes: 43 additions & 0 deletions frontend/components/CountdownTimer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { useEffect, useState } from 'react';

interface Countdown {
days: number;
hours: number;
minutes: number;
seconds: number;
}

const CountdownTimer = ({ targetDate }: { targetDate: string }) => {
const calculateTimeLeft = (): Countdown => {
const difference = +new Date(targetDate) - +new Date();
const timeLeft: Countdown = {
days: Math.floor(difference / (1000 * 60 * 60 * 24)),
hours: Math.floor((difference / (1000 * 60 * 60)) % 24),
minutes: Math.floor((difference / 1000 / 60) % 60),
seconds: Math.floor((difference / 1000) % 60),
};
return timeLeft;
};

const [timeLeft, setTimeLeft] = useState<Countdown>(calculateTimeLeft());

useEffect(() => {
const timer = setInterval(() => {
setTimeLeft(calculateTimeLeft());
}, 1000);
return () => clearInterval(timer);
}, [targetDate]);

return (
<div className="bg-white/10 backdrop-blur-md p-6 rounded-xl shadow-md text-center text-white space-x-4 flex justify-center glass">
{Object.entries(timeLeft).map(([unit, value]) => (
<div key={unit} className="flex flex-col items-center">
<span className="text-3xl font-bold">{value}</span>
<span className="text-sm uppercase tracking-wide">{unit}</span>
</div>
))}
</div>
);
};

export default CountdownTimer;
26 changes: 26 additions & 0 deletions frontend/components/Hero.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import CountdownTimer from './CountdownTimer';

const Hero = () => {
return (
<section className="relative flex flex-col items-center justify-center text-center px-6 py-24 min-h-screen bg-gradient-to-br from-blue-700 via-teal-600 to-indigo-800 text-white overflow-hidden">
<div className="absolute top-0 left-0 w-72 h-72 bg-blue-400 opacity-30 rounded-full blur-3xl animate-pulse -z-10"></div>
<div className="absolute bottom-0 right-0 w-72 h-72 bg-teal-400 opacity-30 rounded-full blur-3xl animate-pulse -z-10"></div>

<h1 className="text-5xl md:text-6xl font-extrabold mb-6 bg-clip-text text-transparent bg-gradient-to-r from-white via-blue-300 to-teal-200">
Something Awesome is Coming
</h1>

<p className="text-lg md:text-xl max-w-xl mb-8 text-gray-200">
We're working hard to bring you something amazing. Stay tuned!
</p>

<CountdownTimer targetDate="2025-12-31T23:59:59" />

<button className="mt-10 px-6 py-3 bg-primary hover:bg-blue-600 text-white font-semibold rounded-full transition-all duration-300 shadow-lg">
Notify Me
</button>
</section>
);
};

export default Hero;
14 changes: 14 additions & 0 deletions frontend/components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Building2 } from 'lucide-react';

const Navbar = () => {
return (
<nav className="w-full px-6 py-4 flex items-center justify-between bg-transparent">
<div className="flex items-center space-x-2">
<Building2 className="text-primary" />
<span className="text-lg font-bold text-white">Our Project</span>
</div>
</nav>
);
};

export default Navbar;