Add src/app/admin/page.tsx
This commit is contained in:
117
src/app/admin/page.tsx
Normal file
117
src/app/admin/page.tsx
Normal file
@@ -0,0 +1,117 @@
|
||||
"use client";
|
||||
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import ReactLenis from "lenis/react";
|
||||
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
|
||||
import FooterBase from '@/components/sections/footer/FooterBase';
|
||||
import HeroSplit from '@/components/sections/hero/HeroSplit';
|
||||
import { LayoutDashboard } from "lucide-react";
|
||||
|
||||
export default function AdminPage() {
|
||||
const navItems = [
|
||||
{ name: "Home", id: "/" },
|
||||
{ name: "Categories", id: "/#categories" },
|
||||
{ name: "Products", id: "/#products" },
|
||||
{ name: "Reviews", id: "/#reviews" },
|
||||
{ name: "About", id: "/#about" },
|
||||
{ name: "Contact", id: "/#contact" },
|
||||
{ name: "Admin Panel", id: "/admin" },
|
||||
];
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="hover-magnetic"
|
||||
defaultTextAnimation="entrance-slide"
|
||||
borderRadius="pill"
|
||||
contentWidth="medium"
|
||||
sizing="largeSmall"
|
||||
background="grid"
|
||||
cardStyle="outline"
|
||||
primaryButtonStyle="radial-glow"
|
||||
secondaryButtonStyle="layered"
|
||||
headingFontWeight="bold"
|
||||
>
|
||||
<ReactLenis root>
|
||||
<div id="nav" data-section="nav">
|
||||
<NavbarStyleApple navItems={navItems} brandName="Neha Jewelrys" />
|
||||
</div>
|
||||
|
||||
<div id="admin-dashboard" data-section="admin-dashboard">
|
||||
<HeroSplit
|
||||
background={{ variant: "plain" }}
|
||||
tag="Admin Panel"
|
||||
tagIcon={LayoutDashboard}
|
||||
title="Welcome to Your Admin Dashboard"
|
||||
description="Manage your store efficiently with powerful analytics, inventory control, order processing, and content management."
|
||||
buttons={[
|
||||
{ text: "View Sales Reports", href: "#sales" },
|
||||
{ text: "Manage Products", href: "#products-admin" },
|
||||
{ text: "Manage Orders", href: "#orders-admin" },
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/data-analysis-financial-business-report-chart-graph-with-grid-blurred-background_460848-15822.jpg"
|
||||
imageAlt="Admin dashboard analytics"
|
||||
mediaAnimation="slide-up"
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Placeholder sections for various admin features */}
|
||||
<div id="sales" data-section="sales" className="min-h-[50vh] flex items-center justify-center bg-background-accent text-foreground">
|
||||
<h2 className="text-4xl font-bold">Dashboard Analytics & Sales Reports</h2>
|
||||
</div>
|
||||
<div id="inventory" data-section="inventory" className="min-h-[50vh] flex items-center justify-center bg-card text-foreground">
|
||||
<h2 className="text-4xl font-bold">Inventory Management</h2>
|
||||
</div>
|
||||
<div id="orders-admin" data-section="orders-admin" className="min-h-[50vh] flex items-center justify-center bg-background-accent text-foreground">
|
||||
<h2 className="text-4xl font-bold">Order Management System</h2>
|
||||
</div>
|
||||
<div id="customers" data-section="customers" className="min-h-[50vh] flex items-center justify-center bg-card text-foreground">
|
||||
<h2 className="text-4xl font-bold">Customer Management</h2>
|
||||
</div>
|
||||
<div id="products-admin" data-section="products-admin" className="min-h-[50vh] flex items-center justify-center bg-background-accent text-foreground">
|
||||
<h2 className="text-4xl font-bold">Product Management</h2>
|
||||
</div>
|
||||
<div id="categories-admin" data-section="categories-admin" className="min-h-[50vh] flex items-center justify-center bg-card text-foreground">
|
||||
<h2 className="text-4xl font-bold">Category Management</h2>
|
||||
</div>
|
||||
<div id="cms" data-section="cms" className="min-h-[50vh] flex items-center justify-center bg-background-accent text-foreground">
|
||||
<h2 className="text-4xl font-bold">Homepage CMS</h2>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterBase
|
||||
columns={[
|
||||
{
|
||||
title: "Shop", items: [
|
||||
{ label: "Earrings", href: "#" },
|
||||
{ label: "Necklaces", href: "#" },
|
||||
{ label: "Bangles", href: "#" },
|
||||
{ label: "Bridal", href: "#" },
|
||||
{ label: "Custom Orders", href: "#" },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Company", items: [
|
||||
{ label: "About Us", href: "/#about" },
|
||||
{ label: "Customer Reviews", href: "/#reviews" },
|
||||
{ label: "Contact Us", href: "/#contact" },
|
||||
{ label: "WhatsApp", href: "https://wa.me/YOURPHONENUMBER" },
|
||||
{ label: "Admin Panel", href: "/admin" },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Legal", items: [
|
||||
{ label: "Privacy Policy", href: "#" },
|
||||
{ label: "Terms of Service", href: "#" },
|
||||
{ label: "Refund Policy", href: "#" },
|
||||
],
|
||||
},
|
||||
]}
|
||||
logoText="Neha Jewelrys"
|
||||
copyrightText="© 2024 Neha Jewelrys. All rights reserved."
|
||||
/>
|
||||
</div>
|
||||
</ReactLenis>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user