Spaces:
Running
Running
| { | |
| "name": "Hugging Face Mobile", | |
| "short_name": "HuggingFace", | |
| "start_url": "index.html", | |
| "display": "standalone", | |
| "background_color": "#4f46e5", | |
| "theme_color": "#4f46e5", | |
| "icons": [ | |
| { | |
| "src": "https://huggingface.co/front/assets/huggingface_logo.svg", | |
| "sizes": "512x512", | |
| "type": "image/svg+xml", | |
| "purpose": "any maskable" | |
| } | |
| ] | |
| } | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
| <meta name="mobile-web-app-capable" content="yes"> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> | |
| <meta name="theme-color" content="#4f46e5"> | |
| <link rel="manifest" href="manifest.json"> | |
| <title>Hugging Face Mobile</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| /* Splash screen */ | |
| .splash { | |
| position: fixed; | |
| width: 100%; | |
| height: 100%; | |
| background: #4f46e5; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| z-index: 9999; | |
| } | |
| .splash img { | |
| width: 150px; | |
| height: 150px; | |
| } | |
| /* Custom scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: #f1f1f1; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: #888; | |
| border-radius: 3px; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: #555; | |
| } | |
| /* Animation for loading */ | |
| @keyframes pulse { | |
| 0%, 100% { | |
| opacity: 1; | |
| } | |
| 50% { | |
| opacity: 0.5; | |
| } | |
| } | |
| .animate-pulse { | |
| animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; | |
| } | |
| /* Custom transitions */ | |
| .transition-all { | |
| transition-property: all; | |
| transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); | |
| transition-duration: 200ms; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 text-gray-800 font-sans"> | |
| <!-- Splash Screen --> | |
| <div class="splash" id="splash"> | |
| <img src="https://huggingface.co/front/assets/huggingface_logo.svg" alt="Hugging Face Logo"> | |
| </div> | |
| <!-- App Container --> | |
| <div class="flex flex-col h-screen max-w-md mx-auto bg-white shadow-lg"> | |
| <!-- Header --> | |
| <header class="bg-white border-b border-gray-200 sticky top-0 z-10"> | |
| <div class="flex items-center justify-between p-4"> | |
| <div class="flex items-center space-x-2"> | |
| <img src="https://huggingface.co/front/assets/huggingface_logo.svg" alt="Hugging Face" class="h-8"> | |
| <span class="font-bold text-lg">Hugging Face</span> | |
| </div> | |
| <div class="flex items-center space-x-3"> | |
| <button class="text-gray-600 hover:text-gray-900"> | |
| <i class="fas fa-search"></i> | |
| </button> | |
| <button class="text-gray-600 hover:text-gray-900"> | |
| <i class="fas fa-user"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main class="flex-1 overflow-y-auto"> | |
| <!-- Hero Section --> | |
| <section class="bg-gradient-to-r from-purple-500 to-indigo-600 text-white p-6"> | |
| <h1 class="text-2xl font-bold mb-2">The AI community building the future.</h1> | |
| <p class="text-sm opacity-90 mb-4">Discover, explore, and collaborate on state-of-the-art ML models.</p> | |
| <div class="flex space-x-3"> | |
| <button class="bg-white text-indigo-600 px-4 py-2 rounded-full text-sm font-semibold flex items-center"> | |
| <i class="fas fa-rocket mr-2"></i> Get Started | |
| </button> | |
| <button class="border border-white text-white px-4 py-2 rounded-full text-sm font-semibold"> | |
| Learn More | |
| </button> | |
| </div> | |
| </section> | |
| <!-- Search Bar --> | |
| <div class="p-4 border-b border-gray-200 sticky top-16 bg-white z-10"> | |
| <div class="relative"> | |
| <input type="text" placeholder="Search models, datasets, spaces..." | |
| class="w-full pl-10 pr-4 py-2 border border-gray-300 rounded-full focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent"> | |
| <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <!-- Categories --> | |
| <div class="p-4 border-b border-gray-200 overflow-x-auto"> | |
| <div class="flex space-x-3 whitespace-nowrap"> | |
| <button class="bg-indigo-100 text-indigo-700 px-4 py-1 rounded-full text-sm font-medium">All</button> | |
| <button class="bg-gray-100 text-gray-700 px-4 py-1 rounded-full text-sm font-medium">Models</button> | |
| <button class="bg-gray-100 text-gray-700 px-4 py-1 rounded-full text-sm font-medium">Datasets</button> | |
| <button class="bg-gray-100 text-gray-700 px-4 py-1 rounded-full text-sm font-medium">Spaces</button> | |
| <button class="bg-gray-100 text-gray-700 px-4 py-1 rounded-full text-sm font-medium">Posts</button> | |
| </div> | |
| </div> | |
| <!-- Trending Models --> | |
| <section class="p-4"> | |
| <div class="flex justify-between items-center mb-3"> | |
| <h2 class="font-bold text-lg">Trending Models</h2> | |
| <button class="text-indigo-600 text-sm font-medium">See all</button> | |
| </div> | |
| <div class="grid grid-cols-2 gap-3"> | |
| <!-- Model Card 1 --> | |
| <div class="border border-gray-200 rounded-lg overflow-hidden hover:shadow-md transition-all"> | |
| <div class="p-3"> | |
| <div class="flex items-center mb-2"> | |
| <img src="https://huggingface.co/front/assets/huggingface_logo.svg" class="w-6 h-6 rounded-full mr-2"> | |
| <span class="text-sm font-medium truncate">OpenAI</span> | |
| </div> | |
| <h3 class="font-semibold text-sm mb-1">GPT-4</h3> | |
| <p class="text-xs text-gray-500 mb-2 line-clamp-2">The most advanced AI model from OpenAI with multimodal capabilities.</p> | |
| <div class="flex justify-between items-center text-xs text-gray-500"> | |
| <span><i class="fas fa-download mr-1"></i> 1.2M</span> | |
| <span><i class="fas fa-star mr-1"></i> 4.9</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Model Card 2 --> | |
| <div class="border border-gray-200 rounded-lg overflow-hidden hover:shadow-md transition-all"> | |
| <div class="p-3"> | |
| <div class="flex items-center mb-2"> | |
| <img src="https://huggingface.co/front/assets/huggingface_logo.svg" class="w-6 h-6 rounded-full mr-2"> | |
| <span class="text-sm font-medium truncate">Stability AI</span> | |
| </div> | |
| <h3 class="font-semibold text-sm mb-1">Stable Diffusion</h3> | |
| <p class="text-xs text-gray-500 mb-2 line-clamp-2">Text-to-image model that creates photorealistic images from text prompts.</p> | |
| <div class="flex justify-between items-center text-xs text-gray-500"> | |
| <span><i class="fas fa-download mr-1"></i> 890K</span> | |
| <span><i class="fas fa-star mr-1"></i> 4.8</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Recent Activity --> | |
| <section class="p-4 border-t border-gray-200"> | |
| <div class="flex justify-between items-center mb-3"> | |
| <h2 class="font-bold text-lg">Recent Activity</h2> | |
| <button class="text-indigo-600 text-sm font-medium">See all</button> | |
| </div> | |
| <div class="space-y-4"> | |
| <!-- Activity Item 1 --> | |
| <div class="flex items-start"> | |
| <img src="https://randomuser.me/api/portraits/women/32.jpg" class="w-10 h-10 rounded-full mr-3"> | |
| <div class="flex-1"> | |
| <div class="flex items-center mb-1"> | |
| <span class="font-medium text-sm mr-2">Sarah Johnson</span> | |
| <span class="text-xs text-gray-500">2h ago</span> | |
| </div> | |
| <p class="text-sm mb-1">Uploaded a new model: <span class="font-medium">BERT-finetuned-squad</span></p> | |
| <div class="flex space-x-2 text-xs text-gray-500"> | |
| <span><i class="fas fa-thumbs-up mr-1"></i> 24</span> | |
| <span><i class="fas fa-comment mr-1"></i> 5</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Activity Item 2 --> | |
| <div class="flex items-start"> | |
| <img src="https://randomuser.me/api/portraits/men/44.jpg" class="w-10 h-10 rounded-full mr-3"> | |
| <div class="flex-1"> | |
| <div class="flex items-center mb-1"> | |
| <span class="font-medium text-sm mr-2">Alex Chen</span> | |
| <span class="text-xs text-gray-500">5h ago</span> | |
| </div> | |
| <p class="text-sm mb-1">Created a new Space: <span class="font-medium">Real-time Object Detection</span></p> | |
| <div class="flex space-x-2 text-xs text-gray-500"> | |
| <span><i class="fas fa-thumbs-up mr-1"></i> 42</span> | |
| <span><i class="fas fa-comment mr-1"></i> 8</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Loading Indicator (hidden by default) --> | |
| <div id="loadingIndicator" class="p-4 hidden"> | |
| <div class="flex justify-center items-center space-x-2 text-gray-500"> | |
| <div class="animate-pulse h-4 w-4 bg-gray-400 rounded-full"></div> | |
| <div class="animate-pulse h-4 w-4 bg-gray-400 rounded-full delay-100"></div> | |
| <div class="animate-pulse h-4 w-4 bg-gray-400 rounded-full delay-200"></div> | |
| </div> | |
| </div> | |
| </main> | |
| <!-- Bottom Navigation --> | |
| <nav class="bg-white border-t border-gray-200 flex justify-around items-center p-3"> | |
| <a href="#" class="text-indigo-600 flex flex-col items-center"> | |
| <i class="fas fa-home text-lg"></i> | |
| <span class="text-xs mt-1">Home</span> | |
| </a> | |
| <a href="#" class="text-gray-600 hover:text-indigo-600 flex flex-col items-center"> | |
| <i class="fas fa-box-open text-lg"></i> | |
| <span class="text-xs mt-1">Models</span> | |
| </a> | |
| <a href="#" class="text-gray-600 hover:text-indigo-600 flex flex-col items-center"> | |
| <i class="fas fa-database text-lg"></i> | |
| <span class="text-xs mt-1">Datasets</span> | |
| </a> | |
| <a href="#" class="text-gray-600 hover:text-indigo-600 flex flex-col items-center"> | |
| <i class="fas fa-user text-lg"></i> | |
| <span class="text-xs mt-1">Profile</span> | |
| </a> | |
| </nav> | |
| </div> | |
| <script> | |
| // Hide splash screen when loaded | |
| window.addEventListener('load', function() { | |
| setTimeout(function() { | |
| document.getElementById('splash').style.display = 'none'; | |
| }, 2000); | |
| // Simulate loading content | |
| // Show loading indicator when clicking search | |
| const searchInput = document.querySelector('input[type="text"]'); | |
| searchInput.addEventListener('focus', function() { | |
| document.getElementById('loadingIndicator').classList.remove('hidden'); | |
| setTimeout(() => { | |
| document.getElementById('loadingIndicator').classList.add('hidden'); | |
| }, 1500); | |
| }); | |
| // Simple tab switching for categories | |
| const categoryButtons = document.querySelectorAll('.flex.space-x-3 button'); | |
| categoryButtons.forEach(button => { | |
| button.addEventListener('click', function() { | |
| categoryButtons.forEach(btn => { | |
| btn.classList.remove('bg-indigo-100', 'text-indigo-700'); | |
| btn.classList.add('bg-gray-100', 'text-gray-700'); | |
| }); | |
| this.classList.add('bg-indigo-100', 'text-indigo-700'); | |
| this.classList.remove('bg-gray-100', 'text-gray-700'); | |
| }); | |
| }); | |
| // Simulate model card click | |
| const modelCards = document.querySelectorAll('.grid.grid-cols-2 > div'); | |
| modelCards.forEach(card => { | |
| card.addEventListener('click', function() { | |
| alert('Model details would open here in the full app'); | |
| }); | |
| }); | |
| }); | |
| </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=Malasanas/huggingface-co" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |