Merge version_3 into main #4
@@ -3,72 +3,55 @@
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import ReactLenis from "lenis/react";
|
||||
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
|
||||
import { useState } from 'react';
|
||||
import ContactCTA from '@/components/sections/contact/ContactCTA';
|
||||
import FooterBase from '@/components/sections/footer/FooterBase';
|
||||
|
||||
export default function AdminDashboardPage() {
|
||||
const [orders, setOrders] = useState([
|
||||
{ id: '1', product: 'Berber Rug', customer: 'Amira M.', city: 'Casablanca', status: 'pending' },
|
||||
{ id: '2', product: 'Ceramic Tagine', customer: 'Youssef K.', city: 'Marrakech', status: 'confirmed' },
|
||||
{ id: '3', product: 'Brass Lantern', customer: 'Sarah D.', city: 'Rabat', status: 'delivered' },
|
||||
]);
|
||||
|
||||
const updateStatus = (id: string, newStatus: string) => {
|
||||
setOrders(orders.map(o => o.id === id ? { ...o, status: newStatus } : o));
|
||||
};
|
||||
|
||||
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"
|
||||
defaultButtonVariant="shift-hover"
|
||||
defaultTextAnimation="reveal-blur"
|
||||
borderRadius="rounded"
|
||||
contentWidth="mediumLarge"
|
||||
sizing="mediumLargeSizeLargeTitles"
|
||||
background="floatingGradient"
|
||||
cardStyle="layered-gradient"
|
||||
primaryButtonStyle="radial-glow"
|
||||
secondaryButtonStyle="glass"
|
||||
headingFontWeight="bold"
|
||||
>
|
||||
<ReactLenis root>
|
||||
<NavbarStyleApple
|
||||
navItems={[{ name: "Home", id: "/" }, { name: "Dashboard", id: "/admin/dashboard" }]}
|
||||
brandName="RoseSouk Admin"
|
||||
/>
|
||||
<main className="pt-32 pb-20 px-8 container mx-auto">
|
||||
<h1 className="text-4xl font-bold mb-8">Order Management</h1>
|
||||
<div className="overflow-x-auto">
|
||||
<table className="w-full text-left border-collapse">
|
||||
<thead>
|
||||
<tr className="border-b">
|
||||
<th className="p-4">Product</th>
|
||||
<th className="p-4">Customer</th>
|
||||
<th className="p-4">City</th>
|
||||
<th className="p-4">Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{orders.map(order => (
|
||||
<tr key={order.id} className="border-b">
|
||||
<td className="p-4">{order.product}</td>
|
||||
<td className="p-4">{order.customer}</td>
|
||||
<td className="p-4">{order.city}</td>
|
||||
<td className="p-4">
|
||||
<select
|
||||
value={order.status}
|
||||
onChange={(e) => updateStatus(order.id, e.target.value)}
|
||||
className="p-2 border rounded bg-transparent"
|
||||
>
|
||||
<option value="pending">Pending</option>
|
||||
<option value="confirmed">Confirmed</option>
|
||||
<option value="delivered">Delivered</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</main>
|
||||
<div id="nav" data-section="nav">
|
||||
<NavbarStyleApple
|
||||
navItems={[
|
||||
{ name: "Home", id: "/" },
|
||||
{ name: "Dashboard", id: "/admin/dashboard" }
|
||||
]}
|
||||
brandName="RoseSouk Admin"
|
||||
/>
|
||||
</div>
|
||||
<div className="min-h-[60vh] flex flex-col items-center justify-center p-12">
|
||||
<h1 className="text-4xl font-bold mb-6">Admin Dashboard</h1>
|
||||
<p className="text-lg text-muted-foreground">Welcome to the site-wide management console.</p>
|
||||
</div>
|
||||
<div id="contact" data-section="contact">
|
||||
<ContactCTA
|
||||
useInvertedBackground={false}
|
||||
background={{ variant: "plain" }}
|
||||
tag="Support"
|
||||
title="Need Help?"
|
||||
description="Contact the development team for any technical issues regarding the admin interface."
|
||||
buttons={[{ text: "System Support", href: "#" }]}
|
||||
/>
|
||||
</div>
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterBase
|
||||
columns={[
|
||||
{ title: "Navigation", items: [{ label: "Home", href: "/" }] }
|
||||
]}
|
||||
logoText="RoseSouk"
|
||||
/>
|
||||
</div>
|
||||
</ReactLenis>
|
||||
</ThemeProvider>
|
||||
);
|
||||
|
||||
@@ -63,12 +63,12 @@ export default function LandingPage() {
|
||||
gridVariant="uniform-all-items-equal"
|
||||
useInvertedBackground={false}
|
||||
products={[
|
||||
{ id: "p1", brand: "Souk", name: "Berber Rug", price: "$150", rating: 5, reviewCount: "24", imageSrc: "http://img.b2bpic.net/free-photo/luxury-vintage-broadcast-radio-receiver-flowers_23-2148695306.jpg" },
|
||||
{ id: "p2", brand: "Souk", name: "Ceramic Tagine", price: "$45", rating: 4, reviewCount: "18", imageSrc: "http://img.b2bpic.net/free-photo/view-essentials-pottery-studio_23-2150164937.jpg" },
|
||||
{ id: "p3", brand: "Souk", name: "Brass Lantern", price: "$85", rating: 5, reviewCount: "42", imageSrc: "http://img.b2bpic.net/free-photo/old-metal-lamp-candlestick-hangs-flea-market_169016-10818.jpg" },
|
||||
{ id: "p4", brand: "Souk", name: "Leather Babouche", price: "$30", rating: 4, reviewCount: "31", imageSrc: "http://img.b2bpic.net/free-photo/concentrated-shoemaker-workshop-making-shoes_171337-12254.jpg" },
|
||||
{ id: "p5", brand: "Souk", name: "Organic Argan Oil", price: "$25", rating: 5, reviewCount: "55", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-still-life-with-herbal-medicine_23-2149292038.jpg" },
|
||||
{ id: "p6", brand: "Souk", name: "Raffia Tote", price: "$40", rating: 4, reviewCount: "12", imageSrc: "http://img.b2bpic.net/free-photo/mediterranean-aesthetics-bag-still-life_23-2151141477.jpg" },
|
||||
{ id: "p1", brand: "Souk | Marrakesh, Morocco", name: "Berber Rug", price: "$150", rating: 5, reviewCount: "24", imageSrc: "http://img.b2bpic.net/free-photo/luxury-vintage-broadcast-radio-receiver-flowers_23-2148695306.jpg" },
|
||||
{ id: "p2", brand: "Souk | Fez, Morocco", name: "Ceramic Tagine", price: "$45", rating: 4, reviewCount: "18", imageSrc: "http://img.b2bpic.net/free-photo/view-essentials-pottery-studio_23-2150164937.jpg" },
|
||||
{ id: "p3", brand: "Souk | Casablanca, Morocco", name: "Brass Lantern", price: "$85", rating: 5, reviewCount: "42", imageSrc: "http://img.b2bpic.net/free-photo/old-metal-lamp-candlestick-hangs-flea-market_169016-10818.jpg" },
|
||||
{ id: "p4", brand: "Souk | Marrakesh, Morocco", name: "Leather Babouche", price: "$30", rating: 4, reviewCount: "31", imageSrc: "http://img.b2bpic.net/free-photo/concentrated-shoemaker-workshop-making-shoes_171337-12254.jpg" },
|
||||
{ id: "p5", brand: "Souk | Agadir, Morocco", name: "Organic Argan Oil", price: "$25", rating: 5, reviewCount: "55", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-still-life-with-herbal-medicine_23-2149292038.jpg" },
|
||||
{ id: "p6", brand: "Souk | Essaouira, Morocco", name: "Raffia Tote", price: "$40", rating: 4, reviewCount: "12", imageSrc: "http://img.b2bpic.net/free-photo/mediterranean-aesthetics-bag-still-life_23-2151141477.jpg" },
|
||||
]}
|
||||
title="Marketplace"
|
||||
description="Our handpicked collection of traditional crafts."
|
||||
|
||||
Reference in New Issue
Block a user