Spaces:
Running
Running
| <html lang="en" class="light"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>LightSwitch Explorer</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script> | |
| tailwind.config = { | |
| darkMode: 'class', | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: { | |
| 500: '#3B82F6', | |
| }, | |
| secondary: { | |
| 500: '#6366F1', | |
| } | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body class="bg-gray-50 dark:bg-gray-900 transition-colors duration-300 min-h-screen"> | |
| <custom-header></custom-header> | |
| <main class="container mx-auto px-4 py-8"> | |
| <section class="bg-white dark:bg-gray-800 rounded-xl shadow-lg p-6 mb-8 transition-all hover:shadow-xl"> | |
| <h1 class="text-3xl font-bold text-primary-500 dark:text-secondary-500 mb-4">Welcome to LightSwitch Explorer</h1> | |
| <p class="text-gray-600 dark:text-gray-300 mb-6">A playground to explore beautiful UI components with light/dark mode support.</p> | |
| <div class="grid md:grid-cols-3 gap-6"> | |
| <div class="bg-gray-100 dark:bg-gray-700 p-4 rounded-lg"> | |
| <i data-feather="box" class="text-primary-500 dark:text-secondary-500 w-8 h-8 mb-2"></i> | |
| <h3 class="font-semibold text-lg mb-2">UI Components</h3> | |
| <p class="text-sm text-gray-600 dark:text-gray-400">Explore our collection of beautifully designed components.</p> | |
| </div> | |
| <div class="bg-gray-100 dark:bg-gray-700 p-4 rounded-lg"> | |
| <i data-feather="toggle-right" class="text-primary-500 dark:text-secondary-500 w-8 h-8 mb-2"></i> | |
| <h3 class="font-semibold text-lg mb-2">Dark Mode</h3> | |
| <p class="text-sm text-gray-600 dark:text-gray-400">Toggle between light and dark themes with ease.</p> | |
| </div> | |
| <div class="bg-gray-100 dark:bg-gray-700 p-4 rounded-lg"> | |
| <i data-feather="smartphone" class="text-primary-500 dark:text-secondary-500 w-8 h-8 mb-2"></i> | |
| <h3 class="font-semibold text-lg mb-2">Responsive</h3> | |
| <p class="text-sm text-gray-600 dark:text-gray-400">Looks great on all device sizes.</p> | |
| </div> | |
| </div> | |
| </section> | |
| <section class="bg-gradient-to-r from-primary-500 to-secondary-500 rounded-xl shadow-lg p-8 text-white"> | |
| <h2 class="text-2xl font-bold mb-4">Try Our Theme Switcher</h2> | |
| <p class="mb-6 opacity-90">Click the moon/sun icon in the header to toggle between light and dark modes.</p> | |
| <button class="bg-white text-primary-500 px-4 py-2 rounded-lg font-medium hover:bg-opacity-90 transition"> | |
| Explore More | |
| </button> | |
| </section> | |
| </main> | |
| <custom-footer></custom-footer> | |
| <script src="components/header.js"></script> | |
| <script src="components/footer.js"></script> | |
| <script src="script.js"></script> | |
| <script> | |
| feather.replace(); | |
| </script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |