/** @type {import('tailwindcss').Config} */ module.exports = { darkMode: ['class'], content: ['./src/**/*.{html,js,ts,jsx,tsx}'], theme: { container: { center: true, }, extend: { colors: { background: 'hsl(var(--background))', foreground: 'hsl(var(--foreground))', card: { DEFAULT: 'hsl(var(--card))', foreground: 'hsl(var(--card-foreground))', }, popover: { DEFAULT: 'hsl(var(--popover))', foreground: 'hsl(var(--popover-foreground))', }, primary: { DEFAULT: 'hsl(var(--primary))', foreground: 'hsl(var(--primary-foreground))', }, secondary: { DEFAULT: 'hsl(var(--secondary))', foreground: 'hsl(var(--secondary-foreground))', }, muted: { DEFAULT: 'hsl(var(--muted))', foreground: 'hsl(var(--muted-foreground))', }, accent: { DEFAULT: 'hsl(var(--accent))', foreground: 'hsl(var(--accent-foreground))', }, destructive: { DEFAULT: 'hsl(var(--destructive))', foreground: 'hsl(var(--destructive-foreground))', }, border: 'hsl(var(--border))', input: 'hsl(var(--input))', ring: 'hsl(var(--ring))', chart: { 1: 'hsl(var(--chart-1))', 2: 'hsl(var(--chart-2))', 3: 'hsl(var(--chart-3))', 4: 'hsl(var(--chart-4))', 5: 'hsl(var(--chart-5))', }, sidebar: { DEFAULT: 'hsl(var(--sidebar-background))', foreground: 'hsl(var(--sidebar-foreground))', primary: 'hsl(var(--sidebar-primary))', 'primary-foreground': 'hsl(var(--sidebar-primary-foreground))', accent: 'hsl(var(--sidebar-accent))', 'accent-foreground': 'hsl(var(--sidebar-accent-foreground))', border: 'hsl(var(--sidebar-border))', ring: 'hsl(var(--sidebar-ring))', }, }, borderRadius: { lg: 'var(--radius)', md: 'calc(var(--radius) - 2px)', sm: 'calc(var(--radius) - 4px)', }, keyframes: { 'accordion-down': { from: { height: '0', }, to: { height: 'var(--radix-accordion-content-height)', }, }, 'accordion-up': { from: { height: 'var(--radix-accordion-content-height)', }, to: { height: '0', }, }, }, animation: { 'accordion-down': 'accordion-down 0.2s ease-out', 'accordion-up': 'accordion-up 0.2s ease-out', }, }, }, plugins: [require('tailwindcss-animate')], } - Follow Up Deployment
8e5def3 verified Download index.html from aking96/aimsc: direct link, hf CLI and curl.
- Browser
- Download file 40.6 kB
-
https://huggingface.co/spaces/aking96/aimsc/resolve/main/index.html
- Command line
-
hf download hf://spaces/aking96/aimsc/index.html
-
curl -L -o index.html https://huggingface.co/spaces/aking96/aimsc/resolve/main/index.html
40.6 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Modern Dashboard</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script> | |
| tailwind.config = { | |
| darkMode: ['class'], | |
| theme: { | |
| container: { | |
| center: true, | |
| }, | |
| extend: { | |
| colors: { | |
| background: 'hsl(0, 0%, 100%)', | |
| foreground: 'hsl(222.2, 84%, 4.9%)', | |
| card: { | |
| DEFAULT: 'hsl(0, 0%, 100%)', | |
| foreground: 'hsl(222.2, 84%, 4.9%)', | |
| }, | |
| popover: { | |
| DEFAULT: 'hsl(0, 0%, 100%)', | |
| foreground: 'hsl(222.2, 84%, 4.9%)', | |
| }, | |
| primary: { | |
| DEFAULT: 'hsl(221.2, 83.2%, 53.3%)', | |
| foreground: 'hsl(210, 40%, 98%)', | |
| }, | |
| secondary: { | |
| DEFAULT: 'hsl(210, 40%, 96.1%)', | |
| foreground: 'hsl(222.2, 47.4%, 11.2%)', | |
| }, | |
| muted: { | |
| DEFAULT: 'hsl(210, 40%, 96.1%)', | |
| foreground: 'hsl(215.4, 16.3%, 46.9%)', | |
| }, | |
| accent: { | |
| DEFAULT: 'hsl(210, 40%, 96.1%)', | |
| foreground: 'hsl(222.2, 47.4%, 11.2%)', | |
| }, | |
| destructive: { | |
| DEFAULT: 'hsl(0, 84.2%, 60.2%)', | |
| foreground: 'hsl(210, 40%, 98%)', | |
| }, | |
| border: 'hsl(214.3, 31.8%, 91.4%)', | |
| input: 'hsl(214.3, 31.8%, 91.4%)', | |
| ring: 'hsl(221.2, 83.2%, 53.3%)', | |
| chart: { | |
| 1: 'hsl(221.2, 83.2%, 53.3%)', | |
| 2: 'hsl(142.1, 76.2%, 36.3%)', | |
| 3: 'hsl(346.8, 77.2%, 49.8%)', | |
| 4: 'hsl(258.3, 89.5%, 66.3%)', | |
| 5: 'hsl(47.9, 95.8%, 61.8%)', | |
| }, | |
| sidebar: { | |
| DEFAULT: 'hsl(210, 40%, 98%)', | |
| foreground: 'hsl(222.2, 47.4%, 11.2%)', | |
| primary: 'hsl(221.2, 83.2%, 53.3%)', | |
| 'primary-foreground': 'hsl(210, 40%, 98%)', | |
| accent: 'hsl(210, 40%, 96.1%)', | |
| 'accent-foreground': 'hsl(222.2, 47.4%, 11.2%)', | |
| border: 'hsl(214.3, 31.8%, 91.4%)', | |
| ring: 'hsl(221.2, 83.2%, 53.3%)', | |
| }, | |
| }, | |
| borderRadius: { | |
| lg: '0.5rem', | |
| md: 'calc(0.5rem - 2px)', | |
| sm: 'calc(0.5rem - 4px)', | |
| }, | |
| keyframes: { | |
| 'accordion-down': { | |
| from: { height: '0' }, | |
| to: { height: 'var(--radix-accordion-content-height)' }, | |
| }, | |
| 'accordion-up': { | |
| from: { height: 'var(--radix-accordion-content-height)' }, | |
| to: { height: '0' }, | |
| }, | |
| }, | |
| animation: { | |
| 'accordion-down': 'accordion-down 0.2s ease-out', | |
| 'accordion-up': 'accordion-up 0.2s ease-out', | |
| }, | |
| }, | |
| }, | |
| plugins: [], | |
| } | |
| </script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| } | |
| .chart-bar { | |
| transition: height 0.5s ease; | |
| } | |
| .sidebar-item:hover .sidebar-icon { | |
| transform: translateX(3px); | |
| } | |
| .sidebar-icon { | |
| transition: transform 0.2s ease; | |
| } | |
| .dark .dark\:bg-background { | |
| background-color: hsl(222.2, 84%, 4.9%); | |
| } | |
| .dark .dark\:text-foreground { | |
| color: hsl(210, 40%, 98%); | |
| } | |
| .dark .dark\:bg-card { | |
| background-color: hsl(222.2, 47.4%, 11.2%); | |
| } | |
| .dark .dark\:text-card-foreground { | |
| color: hsl(210, 40%, 98%); | |
| } | |
| .dark .dark\:border-border { | |
| border-color: hsl(217.2, 32.6%, 17.5%); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-background text-foreground min-h-screen flex"> | |
| <!-- Sidebar --> | |
| <div class="sidebar-background hidden md:flex flex-col w-64 border-r border-sidebar-border bg-sidebar text-sidebar-foreground"> | |
| <div class="p-4 flex items-center justify-between border-b border-sidebar-border"> | |
| <div class="flex items-center space-x-2"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-sidebar-primary"> | |
| <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path> | |
| <polyline points="9 22 9 12 15 12 15 22"></polyline> | |
| </svg> | |
| <span class="font-semibold text-lg">Dashboard</span> | |
| </div> | |
| <button class="p-1 rounded-full hover:bg-sidebar-accent"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <circle cx="12" cy="12" r="1"></circle> | |
| <circle cx="12" cy="5" r="1"></circle> | |
| <circle cx="12" cy="19" r="1"></circle> | |
| </svg> | |
| </button> | |
| </div> | |
| <nav class="flex-1 p-4 space-y-1"> | |
| <a href="#" class="sidebar-item flex items-center space-x-3 px-3 py-2 rounded-lg bg-sidebar-primary text-sidebar-primary-foreground"> | |
| <span class="sidebar-icon"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path> | |
| <polyline points="9 22 9 12 15 12 15 22"></polyline> | |
| </svg> | |
| </span> | |
| <span>Overview</span> | |
| </a> | |
| <a href="#" class="sidebar-item flex items-center space-x-3 px-3 py-2 rounded-lg hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"> | |
| <span class="sidebar-icon"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <rect x="2" y="4" width="20" height="16" rx="2"></rect> | |
| <path d="M2 10h20M7 14h3m4 0h1"></path> | |
| </svg> | |
| </span> | |
| <span>Analytics</span> | |
| </a> | |
| <a href="#" class="sidebar-item flex items-center space-x-3 px-3 py-2 rounded-lg hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"> | |
| <span class="sidebar-icon"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path> | |
| </svg> | |
| </span> | |
| <span>Products</span> | |
| </a> | |
| <a href="#" class="sidebar-item flex items-center space-x-3 px-3 py-2 rounded-lg hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"> | |
| <span class="sidebar-icon"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path> | |
| <circle cx="9" cy="7" r="4"></circle> | |
| <path d="M23 21v-2a4 4 0 0 0-3-3.87"></path> | |
| <path d="M16 3.13a4 4 0 0 1 0 7.75"></path> | |
| </svg> | |
| </span> | |
| <span>Customers</span> | |
| </a> | |
| <a href="#" class="sidebar-item flex items-center space-x-3 px-3 py-2 rounded-lg hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"> | |
| <span class="sidebar-icon"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <path d="M22 12h-4l-3 9L9 3l-3 9H2"></path> | |
| </svg> | |
| </span> | |
| <span>Reports</span> | |
| </a> | |
| <a href="#" class="sidebar-item flex items-center space-x-3 px-3 py-2 rounded-lg hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"> | |
| <span class="sidebar-icon"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <circle cx="12" cy="12" r="3"></circle> | |
| <path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path> | |
| </svg> | |
| </span> | |
| <span>Settings</span> | |
| </a> | |
| </nav> | |
| <div class="p-4 border-t border-sidebar-border"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-10 h-10 rounded-full bg-sidebar-primary flex items-center justify-center text-sidebar-primary-foreground"> | |
| <span>JD</span> | |
| </div> | |
| <div class="flex-1"> | |
| <div class="font-medium">John Doe</div> | |
| <div class="text-sm text-muted-foreground">Admin</div> | |
| </div> | |
| <button class="p-1 rounded-full hover:bg-sidebar-accent"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path> | |
| <path d="M13.73 21a2 2 0 0 1-3.46 0"></path> | |
| </svg> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex-1 flex flex-col overflow-hidden"> | |
| <!-- Mobile Header --> | |
| <header class="md:hidden flex items-center justify-between p-4 border-b border-border bg-card"> | |
| <button class="p-2 rounded-md hover:bg-accent"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <line x1="3" y1="12" x2="21" y2="12"></line> | |
| <line x1="3" y1="6" x2="21" y2="6"></line> | |
| <line x1="3" y1="18" x2="21" y2="18"></line> | |
| </svg> | |
| </button> | |
| <div class="font-semibold">Dashboard</div> | |
| <div class="w-8"></div> | |
| </header> | |
| <!-- Desktop Header --> | |
| <header class="hidden md:flex items-center justify-between p-4 border-b border-border bg-card"> | |
| <h1 class="text-2xl font-semibold">Dashboard Overview</h1> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="absolute left-3 top-2.5 text-muted-foreground"> | |
| <circle cx="11" cy="11" r="8"></circle> | |
| <line x1="21" y1="21" x2="16.65" y2="16.65"></line> | |
| </svg> | |
| </div> | |
| <button class="p-2 rounded-full hover:bg-accent"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path> | |
| <path d="M13.73 21a2 2 0 0 1-3.46 0"></path> | |
| </svg> | |
| </button> | |
| <button class="p-2 rounded-full hover:bg-accent"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path> | |
| </svg> | |
| </button> | |
| </div> | |
| </header> | |
| <!-- Main Content Area --> | |
| <main class="flex-1 overflow-y-auto p-4 md:p-6 bg-background"> | |
| <!-- Stats Cards --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6"> | |
| <div class="bg-card border border-border rounded-lg p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm text-muted-foreground">Total Revenue</p> | |
| <h3 class="text-2xl font-semibold">$45,231</h3> | |
| <p class="text-sm text-green-500 mt-1">+20.1% from last month</p> | |
| </div> | |
| <div class="p-3 rounded-lg bg-primary/10 text-primary"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <path d="M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path> | |
| </svg> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-card border border-border rounded-lg p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm text-muted-foreground">Subscriptions</p> | |
| <h3 class="text-2xl font-semibold">+2,350</h3> | |
| <p class="text-sm text-green-500 mt-1">+15.8% from last month</p> | |
| </div> | |
| <div class="p-3 rounded-lg bg-primary/10 text-primary"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path> | |
| <circle cx="9" cy="7" r="4"></circle> | |
| <path d="M23 21v-2a4 4 0 0 0-3-3.87"></path> | |
| <path d="M16 3.13a4 4 0 0 1 0 7.75"></path> | |
| </svg> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-card border border-border rounded-lg p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm text-muted-foreground">Sales</p> | |
| <h3 class="text-2xl font-semibold">+12,234</h3> | |
| <p class="text-sm text-green-500 mt-1">+8.5% from last month</p> | |
| </div> | |
| <div class="p-3 rounded-lg bg-primary/10 text-primary"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <rect x="2" y="3" width="20" height="14" rx="2"></rect> | |
| <line x1="8" y1="21" x2="16" y2="21"></line> | |
| <line x1="12" y1="17" x2="12" y2="21"></line> | |
| </svg> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-card border border-border rounded-lg p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm text-muted-foreground">Active Now</p> | |
| <h3 class="text-2xl font-semibold">+573</h3> | |
| <p class="text-sm text-red-500 mt-1">-2.3% from last hour</p> | |
| </div> | |
| <div class="p-3 rounded-lg bg-primary/10 text-primary"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <path d="M22 12h-4l-3 9L9 3l-3 9H2"></path> | |
| </svg> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts Section --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> | |
| <!-- Main Chart --> | |
| <div class="bg-card border border-border rounded-lg p-6 lg:col-span-2"> | |
| <div class="flex items-center justify-between mb-6"> | |
| <h2 class="text-lg font-semibold">Revenue Overview</h2> | |
| <div class="flex items-center space-x-2"> | |
| <button class="px-3 py-1 text-xs rounded-full bg-accent text-accent-foreground">Month</button> | |
| <button class="px-3 py-1 text-xs rounded-full hover:bg-accent">Quarter</button> | |
| <button class="px-3 py-1 text-xs rounded-full hover:bg-accent">Year</button> | |
| </div> | |
| </div> | |
| <div class="h-64"> | |
| <div class="flex items-end h-48 space-x-1"> | |
| <div class="flex-1 flex flex-col items-center"> | |
| <div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 80%"></div> | |
| <span class="text-xs text-muted-foreground mt-1">Jan</span> | |
| </div> | |
| <div class="flex-1 flex flex-col items-center"> | |
| <div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 65%"></div> | |
| <span class="text-xs text-muted-foreground mt-1">Feb</span> | |
| </div> | |
| <div class="flex-1 flex flex-col items-center"> | |
| <div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 72%"></div> | |
| <span class="text-xs text-muted-foreground mt-1">Mar</span> | |
| </div> | |
| <div class="flex-1 flex flex-col items-center"> | |
| <div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 88%"></div> | |
| <span class="text-xs text-muted-foreground mt-1">Apr</span> | |
| </div> | |
| <div class="flex-1 flex flex-col items-center"> | |
| <div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 95%"></div> | |
| <span class="text-xs text-muted-foreground mt-1">May</span> | |
| </div> | |
| <div class="flex-1 flex flex-col items-center"> | |
| <div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 75%"></div> | |
| <span class="text-xs text-muted-foreground mt-1">Jun</span> | |
| </div> | |
| <div class="flex-1 flex flex-col items-center"> | |
| <div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 82%"></div> | |
| <span class="text-xs text-muted-foreground mt-1">Jul</span> | |
| </div> | |
| <div class="flex-1 flex flex-col items-center"> | |
| <div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 90%"></div> | |
| <span class="text-xs text-muted-foreground mt-1">Aug</span> | |
| </div> | |
| <div class="flex-1 flex flex-col items-center"> | |
| <div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 70%"></div> | |
| <span class="text-xs text-muted-foreground mt-1">Sep</span> | |
| </div> | |
| <div class="flex-1 flex flex-col items-center"> | |
| <div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 85%"></div> | |
| <span class="text-xs text-muted-foreground mt-1">Oct</span> | |
| </div> | |
| <div class="flex-1 flex flex-col items-center"> | |
| <div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 92%"></div> | |
| <span class="text-xs text-muted-foreground mt-1">Nov</span> | |
| </div> | |
| <div class="flex-1 flex flex-col items-center"> | |
| <div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 98%"></div> | |
| <span class="text-xs text-muted-foreground mt-1">Dec</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Pie Chart --> | |
| <div class="bg-card border border-border rounded-lg p-6"> | |
| <h2 class="text-lg font-semibold mb-6">Sales by Category</h2> | |
| <div class="flex justify-center"> | |
| <div class="relative w-40 h-40"> | |
| <svg viewBox="0 0 100 100" class="w-full h-full"> | |
| <circle cx="50" cy="50" r="45" fill="none" stroke="hsl(214.3, 31.8%, 91.4%)" stroke-width="10"></circle> | |
| <circle cx="50" cy="50" r="45" fill="none" stroke="hsl(var(--chart-1))" stroke-width="10" stroke-dasharray="70 100" stroke-dashoffset="25" transform="rotate(-90 50 50)"></circle> | |
| <circle cx="50" cy="50" r="45" fill="none" stroke="hsl(var(--chart-2))" stroke-width="10" stroke-dasharray="30 100" stroke-dashoffset="95" transform="rotate(-90 50 50)"></circle> | |
| <circle cx="50" cy="50" r="45" fill="none" stroke="hsl(var(--chart-3))" stroke-width="10" stroke-dasharray="20 100" stroke-dashoffset="125" transform="rotate(-90 50 50)"></circle> | |
| <circle cx="50" cy="50" r="45" fill="none" stroke="hsl(var(--chart-4))" stroke-width="10" stroke-dasharray="15 100" stroke-dashoffset="145" transform="rotate(-90 50 50)"></circle> | |
| <circle cx="50" cy="50" r="45" fill="none" stroke="hsl(var(--chart-5))" stroke-width="10" stroke-dasharray="15 100" stroke-dashoffset="160" transform="rotate(-90 50 50)"></circle> | |
| </svg> | |
| <div class="absolute inset-0 flex items-center justify-center"> | |
| <div class="text-center"> | |
| <div class="text-2xl font-semibold">1,234</div> | |
| <div class="text-xs text-muted-foreground">Total Sales</div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-6 space-y-3"> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 rounded-full bg-chart-1 mr-2"></div> | |
| <span class="text-sm">Electronics</span> | |
| </div> | |
| <span class="text-sm font-medium">56%</span> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 rounded-full bg-chart-2 mr-2"></div> | |
| <span class="text-sm">Clothing</span> | |
| </div> | |
| <span class="text-sm font-medium">24%</span> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 rounded-full bg-chart-3 mr-2"></div> | |
| <span class="text-sm">Home</span> | |
| </div> | |
| <span class="text-sm font-medium">16%</span> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 rounded-full bg-chart-4 mr-2"></div> | |
| <span class="text-sm">Beauty</span> | |
| </div> | |
| <span class="text-sm font-medium">12%</span> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 rounded-full bg-chart-5 mr-2"></div> | |
| <span class="text-sm">Other</span> | |
| </div> | |
| <span class="text-sm font-medium">8%</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recent Sales Table --> | |
| <div class="bg-card border border-border rounded-lg p-6"> | |
| <div class="flex items-center justify-between mb-6"> | |
| <h2 class="text-lg font-semibold">Recent Sales</h2> | |
| <button class="px-3 py-1 text-sm rounded-md border border-border hover:bg-accent">View All</button> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="w-full"> | |
| <thead> | |
| <tr class="text-left text-sm text-muted-foreground border-b border-border"> | |
| <th class="pb-3 px-4">Customer</th> | |
| <th class="pb-3 px-4">Email</th> | |
| <th class="pb-3 px-4">Amount</th> | |
| <th class="pb-3 px-4">Date</th> | |
| <th class="pb-3 px-4">Status</th> | |
| <th class="pb-3 px-4"></th> | |
| </tr> | |
| </thead> | |
| <tbody class="divide-y divide-border"> | |
| <tr> | |
| <td class="py-4 px-4"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center mr-3"> | |
| <span>JD</span> | |
| </div> | |
| <span>John Doe</span> | |
| </div> | |
| </td> | |
| <td class="py-4 px-4 text-sm text-muted-foreground">john@example.com</td> | |
| <td class="py-4 px-4 font-medium">$249.99</td> | |
| <td class="py-4 px-4 text-sm text-muted-foreground">2023-12-15</td> | |
| <td class="py-4 px-4"> | |
| <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Completed</span> | |
| </td> | |
| <td class="py-4 px-4"> | |
| <button class="p-1 rounded-md hover:bg-accent"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <circle cx="12" cy="12" r="1"></circle> | |
| <circle cx="12" cy="5" r="1"></circle> | |
| <circle cx="12" cy="19" r="1"></circle> | |
| </svg> | |
| </button> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="py-4 px-4"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center mr-3"> | |
| <span>AS</span> | |
| </div> | |
| <span>Alice Smith</span> | |
| </div> | |
| </td> | |
| <td class="py-4 px-4 text-sm text-muted-foreground">alice@example.com</td> | |
| <td class="py-4 px-4 font-medium">$149.99</td> | |
| <td class="py-4 px-4 text-sm text-muted-foreground">2023-12-14</td> | |
| <td class="py-4 px-4"> | |
| <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Completed</span> | |
| </td> | |
| <td class="py-4 px-4"> | |
| <button class="p-1 rounded-md hover:bg-accent"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <circle cx="12" cy="12" r="1"></circle> | |
| <circle cx="12" cy="5" r="1"></circle> | |
| <circle cx="12" cy="19" r="1"></circle> | |
| </svg> | |
| </button> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="py-4 px-4"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center mr-3"> | |
| <span>BJ</span> | |
| </div> | |
| <span>Bob Johnson</span> | |
| </div> | |
| </td> | |
| <td class="py-4 px-4 text-sm text-muted-foreground">bob@example.com</td> | |
| <td class="py-4 px-4 font-medium">$349.99</td> | |
| <td class="py-4 px-4 text-sm text-muted-foreground">2023-12-13</td> | |
| <td class="py-4 px-4"> | |
| <span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Pending</span> | |
| </td> | |
| <td class="py-4 px-4"> | |
| <button class="p-1 rounded-md hover:bg-accent"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <circle cx="12" cy="12" r="1"></circle> | |
| <circle cx="12" cy="5" r="1"></circle> | |
| <circle cx="12" cy="19" r="1"></circle> | |
| </svg> | |
| </button> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="py-4 px-4"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center mr-3"> | |
| <span>SB</span> | |
| </div> | |
| <span>Sara Brown</span> | |
| </div> | |
| </td> | |
| <td class="py-4 px-4 text-sm text-muted-foreground">sara@example.com</td> | |
| <td class="py-4 px-4 font-medium">$199.99</td> | |
| <td class="py-4 px-4 text-sm text-muted-foreground">2023-12-12</td> | |
| <td class="py-4 px-4"> | |
| <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Completed</span> | |
| </td> | |
| <td class="py-4 px-4"> | |
| <button class="p-1 rounded-md hover:bg-accent"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <circle cx="12" cy="12" r="1"></circle> | |
| <circle cx="12" cy="5" r="1"></circle> | |
| <circle cx="12" cy="19" r="1"></circle> | |
| </svg> | |
| </button> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="py-4 px-4"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center mr-3"> | |
| <span>MW</span> | |
| </div> | |
| <span>Mike Wilson</span> | |
| </div> | |
| </td> | |
| <td class="py-4 px-4 text-sm text-muted-foreground">mike@example.com</td> | |
| <td class="py-4 px-4 font-medium">$299.99</td> | |
| <td class="py-4 px-4 text-sm text-muted-foreground">2023-12-11</td> | |
| <td class="py-4 px-4"> | |
| <span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">Failed</span> | |
| </td> | |
| <td class="py-4 px-4"> | |
| <button class="p-1 rounded-md hover:bg-accent"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <circle cx="12" cy="12" r="1"></circle> | |
| <circle cx="12" cy="5" r="1"></circle> | |
| <circle cx="12" cy="19" r="1"></circle> | |
| </svg> | |
| </button> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| <script> | |
| // Toggle dark mode | |
| function toggleDarkMode() { | |
| document.documentElement.classList.toggle('dark'); | |
| } | |
| // Mobile menu toggle | |
| document.querySelector('[aria-label="Toggle mobile menu"]').addEventListener('click', function() { | |
| document.querySelector('.sidebar-background').classList.toggle('hidden'); | |
| }); | |
| // Chart animation | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const bars = document.querySelectorAll('.chart-bar'); | |
| bars.forEach(bar => { | |
| const height = bar.style.height; | |
| bar.style.height = '0'; | |
| setTimeout(() => { | |
| bar.style.height = height; | |
| }, 100); | |
| }); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=aking96/aimsc" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |