8 Commits

Author SHA1 Message Date
c5949cc6a9 Merge version_2 into main
Merge version_2 into main
2026-04-04 21:17:20 +00:00
0751fa7b5c Update src/app/admin/page.tsx 2026-04-04 21:17:17 +00:00
5f489ed18e Merge version_2 into main
Merge version_2 into main
2026-04-04 21:16:54 +00:00
a0d89f6011 Update src/app/page.tsx 2026-04-04 21:16:51 +00:00
b32a105eee Add src/app/admin/page.tsx 2026-04-04 21:16:51 +00:00
3efe60b19b Merge version_1 into main
Merge version_1 into main
2026-04-04 21:14:16 +00:00
2a1d2c9f43 Merge version_1 into main
Merge version_1 into main
2026-04-04 21:13:52 +00:00
0b3d487fc0 Merge version_1 into main
Merge version_1 into main
2026-04-04 21:13:19 +00:00
2 changed files with 74 additions and 1 deletions

72
src/app/admin/page.tsx Normal file
View File

@@ -0,0 +1,72 @@
"use client";
import { useState } from "react";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import MetricCardThree from "@/components/sections/metrics/MetricCardThree";
import { BarChart3, TrendingUp, Users, DollarSign } from "lucide-react";
export default function AdminPage() {
const [isAuthenticated, setIsAuthenticated] = useState(false);
const [password, setPassword] = useState("");
if (!isAuthenticated) {
return (
<div className="flex min-h-screen items-center justify-center bg-gray-50">
<div className="w-full max-w-sm rounded-xl bg-white p-8 shadow-lg">
<h2 className="mb-6 text-center text-xl font-semibold">Admin Authentication</h2>
<input
type="password"
className="mb-4 w-full rounded border p-2"
placeholder="Enter Password"
value={password}
onChange={(e) => setPassword(e.target.value)}
/>
<button
className="w-full rounded bg-black py-2 text-white"
onClick={() => password === "24244" && setIsAuthenticated(true)}
>
Login
</button>
</div>
</div>
);
}
return (
<ThemeProvider
defaultButtonVariant="text-stagger"
defaultTextAnimation="entrance-slide"
borderRadius="rounded"
contentWidth="medium"
sizing="medium"
background="circleGradient"
cardStyle="glass-elevated"
primaryButtonStyle="gradient"
secondaryButtonStyle="glass"
headingFontWeight="normal"
>
<NavbarLayoutFloatingOverlay
navItems={[{ name: "Dashboard", id: "dashboard" }]}
brandName="Admin Panel"
/>
<main className="pt-24">
<div id="dashboard" className="container mx-auto px-4">
<MetricCardThree
title="Performance Dashboard"
description="Real-time sales and growth analytics."
animationType="slide-up"
metrics={[
{ id: "s1", title: "Total Sales", value: "$45,231", icon: DollarSign },
{ id: "s2", title: "New Users", value: "1,240", icon: Users },
{ id: "s3", title: "Growth Rate", value: "12.5%", icon: TrendingUp },
{ id: "s4", title: "Conversion", value: "3.2%", icon: BarChart3 }
]}
textboxLayout="default"
useInvertedBackground={false}
/>
</div>
</main>
</ThemeProvider>
);
}

View File

@@ -36,7 +36,8 @@ export default function LandingPage() {
{ name: "Features", id: "features" },
{ name: "Results", id: "results" },
{ name: "FAQ", id: "faq" },
{ name: "Contact", id: "contact" }
{ name: "Contact", id: "contact" },
{ name: "Admin", id: "/admin" }
]}
brandName="BoostPulse"
/>