Spaces:
Running
Running
Download index.html from greatisiw92/k: direct link, hf CLI and curl.
- Browser
- Download file 13.9 kB
-
https://huggingface.co/spaces/greatisiw92/k/resolve/main/index.html
- Command line
-
hf download hf://spaces/greatisiw92/k/index.html
-
curl -L -o index.html https://huggingface.co/spaces/greatisiw92/k/resolve/main/index.html
13.9 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Modern Minimalist Dashboard</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet"> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| overflow-x: hidden; | |
| } | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| box-shadow: 4px 0 15px rgba(0, 0, 0, 0.03); | |
| } | |
| .sidebar-item { | |
| transition: all 0.2s ease; | |
| } | |
| .sidebar-item:hover { | |
| transform: translateX(4px); | |
| } | |
| .category-item { | |
| transition: all 0.2s ease; | |
| } | |
| .category-item:hover { | |
| background-color: rgba(0, 0, 0, 0.02); | |
| transform: scale(1.02); | |
| } | |
| .cart-item { | |
| transition: all 0.2s ease; | |
| } | |
| .cart-item:hover { | |
| background-color: rgba(0, 0, 0, 0.02); | |
| transform: scale(1.01); | |
| } | |
| .settings-panel { | |
| max-height: 0; | |
| overflow: hidden; | |
| transition: max-height 0.3s ease-out; | |
| } | |
| .settings-panel.open { | |
| max-height: 500px; | |
| } | |
| .toggle-switch { | |
| position: relative; | |
| display: inline-block; | |
| width: 50px; | |
| height: 24px; | |
| } | |
| .toggle-switch input { | |
| opacity: 0; | |
| width: 0; | |
| height: 0; | |
| } | |
| .slider { | |
| position: absolute; | |
| cursor: pointer; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background-color: #ccc; | |
| transition: .4s; | |
| border-radius: 24px; | |
| } | |
| .slider:before { | |
| position: absolute; | |
| content: ""; | |
| height: 16px; | |
| width: 16px; | |
| left: 4px; | |
| bottom: 4px; | |
| background-color: white; | |
| transition: .4s; | |
| border-radius: 50%; | |
| } | |
| input:checked + .slider { | |
| background-color: #3b82f6; | |
| } | |
| input:checked + .slider:before { | |
| transform: translateX(26px); | |
| } | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| transform: translateX(-100%); | |
| z-index: 50; | |
| } | |
| .sidebar.open { | |
| transform: translateX(0); | |
| } | |
| .sidebar-toggle { | |
| display: block; | |
| } | |
| .main-content { | |
| margin-left: 0; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-white flex h-screen"> | |
| <!-- Sidebar Toggle Button (Mobile Only) --> | |
| <button class="sidebar-toggle fixed top-4 left-4 z-50 p-2 bg-white rounded-full shadow-md md:hidden" onclick="toggleSidebar()"> | |
| <i class="fas fa-bars text-gray-600"></i> | |
| </button> | |
| <!-- Left Sidebar --> | |
| <div class="sidebar bg-gray-50 w-72 h-full fixed flex flex-col border-r border-gray-200"> | |
| <!-- Logo/Brand --> | |
| <div class="p-4 border-b border-gray-200 flex items-center justify-between"> | |
| <div class="flex items-center space-x-2"> | |
| <div class="w-8 h-8 bg-blue-500 rounded-full"></div> | |
| <span class="font-semibold text-gray-800">MinimalShop</span> | |
| </div> | |
| <button class="sidebar-close p-1 rounded-full hover:bg-gray-200 md:hidden" onclick="toggleSidebar()"> | |
| <i class="fas fa-times text-gray-500"></i> | |
| </button> | |
| </div> | |
| <!-- Cart Items Section --> | |
| <div class="p-4 border-b border-gray-200"> | |
| <div class="flex items-center justify-between mb-3"> | |
| <h3 class="font-medium text-gray-700">Cart Items</h3> | |
| <span class="bg-blue-100 text-blue-600 text-xs font-medium px-2 py-1 rounded-full">3 items</span> | |
| </div> | |
| <div class="cart-items-container max-h-48 overflow-y-auto pr-2"> | |
| <div class="cart-item bg-white rounded-lg p-3 mb-2 flex items-center shadow-sm"> | |
| <div class="w-10 h-10 bg-blue-100 rounded-md mr-3 flex items-center justify-center"> | |
| <i class="fas fa-headphones text-blue-500"></i> | |
| </div> | |
| <div class="flex-1"> | |
| <p class="text-sm font-medium text-gray-800">Wireless Headphones</p> | |
| <p class="text-xs text-gray-500">$129.99</p> | |
| </div> | |
| <button class="text-gray-400 hover:text-red-500"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="cart-item bg-white rounded-lg p-3 mb-2 flex items-center shadow-sm"> | |
| <div class="w-10 h-10 bg-purple-100 rounded-md mr-3 flex items-center justify-center"> | |
| <i class="fas fa-mobile-alt text-purple-500"></i> | |
| </div> | |
| <div class="flex-1"> | |
| <p class="text-sm font-medium text-gray-800">Smartphone Case</p> | |
| <p class="text-xs text-gray-500">$24.99</p> | |
| </div> | |
| <button class="text-gray-400 hover:text-red-500"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="cart-item bg-white rounded-lg p-3 mb-2 flex items-center shadow-sm"> | |
| <div class="w-10 h-10 bg-green-100 rounded-md mr-3 flex items-center justify-center"> | |
| <i class="fas fa-book text-green-500"></i> | |
| </div> | |
| <div class="flex-1"> | |
| <p class="text-sm font-medium text-gray-800">Design Handbook</p> | |
| <p class="text-xs text-gray-500">$39.99</p> | |
| </div> | |
| <button class="text-gray-400 hover:text-red-500"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <button class="w-full mt-3 bg-blue-500 hover:bg-blue-600 text-white py-2 rounded-lg text-sm font-medium transition-all"> | |
| Checkout ($194.97) | |
| </button> | |
| </div> | |
| <!-- Categories Section --> | |
| <div class="p-4 border-b border-gray-200"> | |
| <h3 class="font-medium text-gray-700 mb-3">Categories</h3> | |
| <div class="space-y-1"> | |
| <div class="category-item flex items-center p-2 rounded-lg cursor-pointer"> | |
| <div class="w-8 h-8 bg-blue-100 rounded-md mr-3 flex items-center justify-center"> | |
| <i class="fas fa-laptop text-blue-500 text-sm"></i> | |
| </div> | |
| <span class="text-sm text-gray-700">Electronics</span> | |
| </div> | |
| <div class="category-item flex items-center p-2 rounded-lg cursor-pointer"> | |
| <div class="w-8 h-8 bg-purple-100 rounded-md mr-3 flex items-center justify-center"> | |
| <i class="fas fa-tshirt text-purple-500 text-sm"></i> | |
| </div> | |
| <span class="text-sm text-gray-700">Clothing</span> | |
| </div> | |
| <div class="category-item flex items-center p-2 rounded-lg cursor-pointer"> | |
| <div class="w-8 h-8 bg-green-100 rounded-md mr-3 flex items-center justify-center"> | |
| <i class="fas fa-home text-green-500 text-sm"></i> | |
| </div> | |
| <span class="text-sm text-gray-700">Home & Garden</span> | |
| </div> | |
| <div class="category-item flex items-center p-2 rounded-lg cursor-pointer"> | |
| <div class="w-8 h-8 bg-yellow-100 rounded-md mr-3 flex items-center justify-center"> | |
| <i class="fas fa-book text-yellow-500 text-sm"></i> | |
| </div> | |
| <span class="text-sm text-gray-700">Books</span> | |
| </div> | |
| <div class="category-item flex items-center p-2 rounded-lg cursor-pointer"> | |
| <div class="w-8 h-8 bg-red-100 rounded-md mr-3 flex items-center justify-center"> | |
| <i class="fas fa-dumbbell text-red-500 text-sm"></i> | |
| </div> | |
| <span class="text-sm text-gray-700">Sports</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Settings Section --> | |
| <div class="p-4"> | |
| <div class="flex items-center justify-between cursor-pointer" onclick="toggleSettings()"> | |
| <h3 class="font-medium text-gray-700">Settings</h3> | |
| <i class="fas fa-chevron-down text-gray-400 text-xs transition-transform duration-300" id="settings-chevron"></i> | |
| </div> | |
| <div class="settings-panel mt-2" id="settings-panel"> | |
| <div class="space-y-4 pt-2"> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-sm text-gray-600">Dark Mode</span> | |
| <label class="toggle-switch"> | |
| <input type="checkbox"> | |
| <span class="slider"></span> | |
| </label> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-sm text-gray-600">Notifications</span> | |
| <label class="toggle-switch"> | |
| <input type="checkbox" checked> | |
| <span class="slider"></span> | |
| </label> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-sm text-gray-600">Sound Effects</span> | |
| <label class="toggle-switch"> | |
| <input type="checkbox" checked> | |
| <span class="slider"></span> | |
| </label> | |
| </div> | |
| <div class="pt-2"> | |
| <button class="w-full text-sm py-2 border border-gray-300 rounded-lg hover:bg-gray-100 transition-colors"> | |
| Account Settings | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- User Profile --> | |
| <div class="mt-auto p-4 border-t border-gray-200"> | |
| <div class="flex items-center"> | |
| <div class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center text-white font-medium"> | |
| JD | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-800">John Doe</p> | |
| <p class="text-xs text-gray-500">Premium Member</p> | |
| </div> | |
| <button class="ml-auto text-gray-400 hover:text-gray-600"> | |
| <i class="fas fa-sign-out-alt"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content Area --> | |
| <div class="main-content ml-72 flex-1 overflow-y-auto transition-all duration-300"> | |
| <div class="p-8"> | |
| <h1 class="text-3xl font-bold text-gray-800 mb-6">Welcome to MinimalShop</h1> | |
| <!-- Featured Products --> | |
| <div class="mb-8"> | |
| <h2 class="text-xl font-semibold text-gray-700 mb-4">Featured Products</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> | |
| <!-- Product 1 --> | |
| <div class="bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow"> | |
| <div class="h-48 bg-gradient-to-r from-blue-100 to-indigo-100 flex items-center justify-center"> | |
| <i class="fas fa-headphones text-5xl text-blue-500"></i> | |
| </div> | |
| <div class="p-4"> | |
| <h3 class="font-medium text-gray-800 mb-1">Premium Headphones</h3> | |
| <p class="text-sm text-gray-500 mb-3">Noise cancelling wireless headphones with 30h battery life</p> | |
| <div class="flex items-center justify-between"> | |
| <span class="font-semibold text-gray-800">$199.99</span> | |
| <button class="text-sm bg-blue-500 hover:bg-blue-600 text-white px-3 py-1 rounded-full transition-colors"> | |
| Add to Cart | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 2 --> | |
| <div class="bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow"> | |
| <div class="h-48 bg-gradient-to-r from-purple-100 to-pink-100 flex items-center justify-center"> | |
| <i class="fas fa-smartphone text-5xl text-purple-500"></ | |
| </html> |