Spaces:
Running
Running
undefined - Initial Deployment
Browse files- README.md +7 -5
- index.html +269 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: material-3-site
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: pink
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,269 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Material Design M3 SPA</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
|
| 9 |
+
<style>
|
| 10 |
+
.material-symbols-outlined {
|
| 11 |
+
font-variation-settings:
|
| 12 |
+
'FILL' 0,
|
| 13 |
+
'wght' 400,
|
| 14 |
+
'GRAD' 0,
|
| 15 |
+
'opsz' 24
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
/* Custom scrollbar */
|
| 19 |
+
::-webkit-scrollbar {
|
| 20 |
+
width: 8px;
|
| 21 |
+
}
|
| 22 |
+
::-webkit-scrollbar-track {
|
| 23 |
+
background: #f1f1f100;
|
| 24 |
+
border-radius: 10px;
|
| 25 |
+
transition: 300ms ease-in-out;
|
| 26 |
+
}
|
| 27 |
+
::-webkit-scrollbar-track:hover {
|
| 28 |
+
background: #f1f1f1
|
| 29 |
+
}
|
| 30 |
+
::-webkit-scrollbar-thumb {
|
| 31 |
+
background: #55555500;
|
| 32 |
+
border-radius: 10px;
|
| 33 |
+
}
|
| 34 |
+
::-webkit-scrollbar-thumb:hover {
|
| 35 |
+
background: #555555;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
/* Animation for floating action button */
|
| 39 |
+
@keyframes float {
|
| 40 |
+
0% { transform: translateY(0px); }
|
| 41 |
+
50% { transform: translateY(-10px); }
|
| 42 |
+
100% { transform: translateY(0px); }
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.floating-btn {
|
| 46 |
+
animation: float 3s ease-in-out infinite;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
/* Custom elevation */
|
| 50 |
+
.elevation-1 {
|
| 51 |
+
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
| 52 |
+
}
|
| 53 |
+
.elevation-2 {
|
| 54 |
+
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
| 55 |
+
}
|
| 56 |
+
.elevation-3 {
|
| 57 |
+
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
| 58 |
+
}
|
| 59 |
+
.elevation-4 {
|
| 60 |
+
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
| 61 |
+
}
|
| 62 |
+
.elevation-5 {
|
| 63 |
+
box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
| 64 |
+
}
|
| 65 |
+
</style>
|
| 66 |
+
</head>
|
| 67 |
+
<body class="bg-gray-50 font-sans text-gray-900 h-screen flex flex-col overflow-hidden">
|
| 68 |
+
<!-- Super big header/app bar -->
|
| 69 |
+
<header class="bg-primary-container text-on-primary-container elevation-4 ">
|
| 70 |
+
<div class="container mx-auto px-4 py-8">
|
| 71 |
+
<!-- Top row with navigation and actions -->
|
| 72 |
+
<div class="flex items-center justify-between mb-6">
|
| 73 |
+
<!-- Navigation icon -->
|
| 74 |
+
<button class="rounded-full p-2 hover:bg-primary-container-hover transition-colors">
|
| 75 |
+
<span class="material-symbols-outlined text-2xl">menu</span>
|
| 76 |
+
</button>
|
| 77 |
+
|
| 78 |
+
<!-- Title -->
|
| 79 |
+
<h1 class="text-3xl font-bold">Material M3</h1>
|
| 80 |
+
|
| 81 |
+
<!-- Action icons -->
|
| 82 |
+
<div class="flex items-center space-x-2">
|
| 83 |
+
<button class="rounded-full p-2 hover:bg-primary-container-hover transition-colors">
|
| 84 |
+
<span class="material-symbols-outlined text-2xl">search</span>
|
| 85 |
+
</button>
|
| 86 |
+
<button class="rounded-full p-2 hover:bg-primary-container-hover transition-colors">
|
| 87 |
+
<span class="material-symbols-outlined text-2xl">favorite</span>
|
| 88 |
+
</button>
|
| 89 |
+
<button class="rounded-full p-2 hover:bg-primary-container-hover transition-colors">
|
| 90 |
+
<span class="material-symbols-outlined text-2xl">account_circle</span>
|
| 91 |
+
</button>
|
| 92 |
+
</div>
|
| 93 |
+
</div>
|
| 94 |
+
|
| 95 |
+
<!-- Tabs -->
|
| 96 |
+
<div class="flex space-x-4 overflow-x-auto items-center content-center md:flex hidden">
|
| 97 |
+
<button class="px-4 py-2 rounded-full bg-primary text-on-primary font-medium flex flex">
|
| 98 |
+
<span class="material-symbols-outlined mr-2">home</span>
|
| 99 |
+
Home
|
| 100 |
+
</button>
|
| 101 |
+
<button class="px-4 py-2 rounded-full hover:bg-primary-container-hover transition-colors flex">
|
| 102 |
+
<span class="material-symbols-outlined mr-2">explore</span>
|
| 103 |
+
Explore
|
| 104 |
+
</button>
|
| 105 |
+
<button class="px-4 py-2 rounded-full hover:bg-primary-container-hover transition-colors flex">
|
| 106 |
+
<span class="material-symbols-outlined mr-2">collections</span>
|
| 107 |
+
Collections
|
| 108 |
+
</button>
|
| 109 |
+
<button class="px-4 py-2 rounded-full hover:bg-primary-container-hover transition-colors flex">
|
| 110 |
+
<span class="material-symbols-outlined mr-2">settings</span>
|
| 111 |
+
Settings
|
| 112 |
+
</button>
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
</header>
|
| 116 |
+
|
| 117 |
+
<!-- Main content -->
|
| 118 |
+
<main class=" container mx-auto px-4 py-6 h-[100%] overflow-y-auto">
|
| 119 |
+
<!-- Hero section -->
|
| 120 |
+
<section class="mb-8">
|
| 121 |
+
<div class="bg-surface-container rounded-2xl p-6 elevation-1">
|
| 122 |
+
<h2 class="text-2xl font-bold mb-4">Welcome to Material M3</h2>
|
| 123 |
+
<p class="text-gray-700 mb-4">Experience the latest Material Design 3 components and patterns in this beautiful SPA.</p>
|
| 124 |
+
<button class="px-6 py-2 bg-primary text-on-primary rounded-full font-medium hover:bg-primary-hover transition-colors">
|
| 125 |
+
Get Started
|
| 126 |
+
</button>
|
| 127 |
+
</div>
|
| 128 |
+
</section>
|
| 129 |
+
|
| 130 |
+
<!-- Cards grid -->
|
| 131 |
+
<section>
|
| 132 |
+
<h3 class="text-xl font-bold mb-4">Featured Content</h3>
|
| 133 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
| 134 |
+
<!-- Card 1 -->
|
| 135 |
+
<div class="bg-surface-container rounded-xl overflow-hidden elevation-1 hover:elevation-2 transition-shadow">
|
| 136 |
+
<div class="h-48 bg-gradient-to-r from-primary to-secondary"></div>
|
| 137 |
+
<div class="p-4">
|
| 138 |
+
<h4 class="font-bold text-lg mb-2">Material You</h4>
|
| 139 |
+
<p class="text-gray-700 mb-4">Personalized theming that adapts to your preferences.</p>
|
| 140 |
+
<button class="text-primary hover:text-primary-hover font-medium flex items-center">
|
| 141 |
+
Learn more
|
| 142 |
+
<span class="material-symbols-outlined ml-1">arrow_forward</span>
|
| 143 |
+
</button>
|
| 144 |
+
</div>
|
| 145 |
+
</div>
|
| 146 |
+
|
| 147 |
+
<!-- Card 2 -->
|
| 148 |
+
<div class="bg-surface-container rounded-xl overflow-hidden elevation-1 hover:elevation-2 transition-shadow">
|
| 149 |
+
<div class="h-48 bg-gradient-to-r from-tertiary to-primary"></div>
|
| 150 |
+
<div class="p-4">
|
| 151 |
+
<h4 class="font-bold text-lg mb-2">Dynamic Color</h4>
|
| 152 |
+
<p class="text-gray-700 mb-4">Colors that adapt to content and context.</p>
|
| 153 |
+
<button class="text-primary hover:text-primary-hover font-medium flex items-center">
|
| 154 |
+
Learn more
|
| 155 |
+
<span class="material-symbols-outlined ml-1">arrow_forward</span>
|
| 156 |
+
</button>
|
| 157 |
+
</div>
|
| 158 |
+
</div>
|
| 159 |
+
|
| 160 |
+
<!-- Card 3 -->
|
| 161 |
+
<div class="bg-surface-container rounded-xl overflow-hidden elevation-1 hover:elevation-2 transition-shadow">
|
| 162 |
+
<div class="h-48 bg-gradient-to-r from-secondary to-tertiary"></div>
|
| 163 |
+
<div class="p-4">
|
| 164 |
+
<h4 class="font-bold text-lg mb-2">Components</h4>
|
| 165 |
+
<p class="text-gray-700 mb-4">Beautiful, accessible components for every need.</p>
|
| 166 |
+
<button class="text-primary hover:text-primary-hover font-medium flex items-center">
|
| 167 |
+
Learn more
|
| 168 |
+
<span class="material-symbols-outlined ml-1">arrow_forward</span>
|
| 169 |
+
</button>
|
| 170 |
+
</div>
|
| 171 |
+
</div>
|
| 172 |
+
</div>
|
| 173 |
+
</section>
|
| 174 |
+
</main>
|
| 175 |
+
|
| 176 |
+
<!-- Floating action button -->
|
| 177 |
+
<button class="fixed bottom-6 right-6 bg-primary text-on-primary rounded-full p-4 elevation-4 hover:elevation-5 transition-all floating-btn">
|
| 178 |
+
<span class="material-symbols-outlined text-2xl">add</span>
|
| 179 |
+
</button>
|
| 180 |
+
|
| 181 |
+
<!-- Bottom navigation (for mobile) -->
|
| 182 |
+
<nav class="md:hidden bg-surface-container text-on-surface-container fixed bottom-0 left-0 right-0 elevation-3">
|
| 183 |
+
<div class="flex justify-around">
|
| 184 |
+
<button class="p-4 flex flex-col items-center">
|
| 185 |
+
<span class="material-symbols-outlined">home</span>
|
| 186 |
+
<span class="text-xs mt-1">Home</span>
|
| 187 |
+
</button>
|
| 188 |
+
<button class="p-4 flex flex-col items-center">
|
| 189 |
+
<span class="material-symbols-outlined">search</span>
|
| 190 |
+
<span class="text-xs mt-1">Search</span>
|
| 191 |
+
</button>
|
| 192 |
+
<button class="p-4 flex flex-col items-center">
|
| 193 |
+
<span class="material-symbols-outlined">favorite</span>
|
| 194 |
+
<span class="text-xs mt-1">Favorites</span>
|
| 195 |
+
</button>
|
| 196 |
+
<button class="p-4 flex flex-col items-center">
|
| 197 |
+
<span class="material-symbols-outlined">person</span>
|
| 198 |
+
<span class="text-xs mt-1">Profile</span>
|
| 199 |
+
</button>
|
| 200 |
+
</div>
|
| 201 |
+
</nav>
|
| 202 |
+
|
| 203 |
+
<script>
|
| 204 |
+
// Add Material Design color tokens to Tailwind
|
| 205 |
+
tailwind.config = {
|
| 206 |
+
theme: {
|
| 207 |
+
extend: {
|
| 208 |
+
colors: {
|
| 209 |
+
// Primary colors
|
| 210 |
+
'primary': '#6750A4',
|
| 211 |
+
'on-primary': '#FFFFFF',
|
| 212 |
+
'primary-container': '#EADDFF',
|
| 213 |
+
'on-primary-container': '#21005D',
|
| 214 |
+
'primary-hover': '#7C6DB4',
|
| 215 |
+
'primary-container-hover': '#E0D0FF',
|
| 216 |
+
|
| 217 |
+
// Secondary colors
|
| 218 |
+
'secondary': '#625B71',
|
| 219 |
+
'on-secondary': '#FFFFFF',
|
| 220 |
+
'secondary-container': '#E8DEF8',
|
| 221 |
+
'on-secondary-container': '#1D192B',
|
| 222 |
+
|
| 223 |
+
// Tertiary colors
|
| 224 |
+
'tertiary': '#7D5260',
|
| 225 |
+
'on-tertiary': '#FFFFFF',
|
| 226 |
+
'tertiary-container': '#FFD8E4',
|
| 227 |
+
'on-tertiary-container': '#31111D',
|
| 228 |
+
|
| 229 |
+
// Surface colors
|
| 230 |
+
'surface': '#FFFBFE',
|
| 231 |
+
'on-surface': '#1C1B1F',
|
| 232 |
+
'surface-container': '#F3EDF7',
|
| 233 |
+
'on-surface-container': '#1D1B20',
|
| 234 |
+
|
| 235 |
+
// Background colors
|
| 236 |
+
'background': '#FFFBFE',
|
| 237 |
+
'on-background': '#1C1B1F',
|
| 238 |
+
}
|
| 239 |
+
}
|
| 240 |
+
}
|
| 241 |
+
}
|
| 242 |
+
|
| 243 |
+
// Simple SPA navigation
|
| 244 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 245 |
+
// Get all tab buttons
|
| 246 |
+
const tabs = document.querySelectorAll('header button:not(.material-symbols-outlined)');
|
| 247 |
+
|
| 248 |
+
// Add click event to each tab
|
| 249 |
+
tabs.forEach(tab => {
|
| 250 |
+
tab.addEventListener('click', function() {
|
| 251 |
+
// Remove active class from all tabs
|
| 252 |
+
tabs.forEach(t => t.classList.remove('bg-primary', 'text-on-primary'));
|
| 253 |
+
tabs.forEach(t => t.classList.add('hover:bg-primary-container-hover'));
|
| 254 |
+
|
| 255 |
+
// Add active class to clicked tab
|
| 256 |
+
this.classList.add('bg-primary', 'text-on-primary');
|
| 257 |
+
this.classList.remove('hover:bg-primary-container-hover');
|
| 258 |
+
|
| 259 |
+
// Here you would typically load content for the selected tab
|
| 260 |
+
console.log(`Navigated to: ${this.textContent.trim()}`);
|
| 261 |
+
});
|
| 262 |
+
});
|
| 263 |
+
|
| 264 |
+
// Make the first tab active by default
|
| 265 |
+
tabs[0].click();
|
| 266 |
+
});
|
| 267 |
+
</script>
|
| 268 |
+
<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=Dh2025/material-3-site" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 269 |
+
</html>
|