Download index.html from Callyn/instagram: direct link, hf CLI and curl.
- Browser
- Download file 9.92 kB
-
https://huggingface.co/spaces/Callyn/instagram/resolve/main/index.html
- Command line
-
hf download hf://spaces/Callyn/instagram/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Callyn/instagram/resolve/main/index.html
9.92 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Instagram</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap'); | |
| body { | |
| font-family: 'Roboto', sans-serif; | |
| background-color: #fafafa; | |
| } | |
| .instagram-gradient { | |
| background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); | |
| } | |
| .story-ring { | |
| background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); | |
| padding: 2px; | |
| border-radius: 50%; | |
| } | |
| .post-shadow { | |
| box-shadow: 0 1px 3px rgba(0,0,0,0.1); | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen"> | |
| <!-- Header --> | |
| <header class="sticky top-0 z-50 bg-white border-b border-gray-200"> | |
| <div class="max-w-5xl mx-auto px-4"> | |
| <div class="flex justify-between items-center h-14"> | |
| <!-- Logo --> | |
| <div class="flex items-center"> | |
| <h1 class="text-xl font-semibold italic">Instagram</h1> | |
| </div> | |
| <!-- Search --> | |
| <div class="hidden md:block relative mx-4 flex-1 max-w-xs"> | |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
| <i data-feather="search" class="text-gray-400"></i> | |
| </div> | |
| <input type="text" class="block w-full pl-10 pr-3 py-1.5 bg-gray-50 rounded-md text-sm focus:outline-none focus:ring-1 focus:ring-gray-300" placeholder="Search"> | |
| </div> | |
| <!-- Navigation --> | |
| <nav class="flex items-center space-x-4"> | |
| <a href="#" class="p-2"> | |
| <i data-feather="home" class="w-6 h-6"></i> | |
| </a> | |
| <a href="#" class="p-2"> | |
| <i data-feather="message-square" class="w-6 h-6"></i> | |
| </a> | |
| <a href="#" class="p-2"> | |
| <i data-feather="plus-square" class="w-6 h-6"></i> | |
| </a> | |
| <a href="#" class="p-2"> | |
| <i data-feather="compass" class="w-6 h-6"></i> | |
| </a> | |
| <a href="#" class="p-2"> | |
| <i data-feather="heart" class="w-6 h-6"></i> | |
| </a> | |
| <a href="#" class="p-2"> | |
| <div class="w-6 h-6 rounded-full bg-gray-200 overflow-hidden"> | |
| <img src="http://static.photos/people/200x200/1" alt="Profile" class="w-full h-full object-cover"> | |
| </div> | |
| </a> | |
| </nav> | |
| </div> | |
| </div> | |
| </header> | |
| <main class="max-w-5xl mx-auto pb-16"> | |
| <!-- Stories --> | |
| <div class="bg-white border-b border-gray-200 px-4 py-4 overflow-x-auto"> | |
| <div class="flex space-x-4"> | |
| <!-- Your Story --> | |
| <div class="flex flex-col items-center space-y-1 flex-shrink-0"> | |
| <div class="story-ring"> | |
| <div class="bg-white p-0.5 rounded-full"> | |
| <div class="w-16 h-16 rounded-full overflow-hidden"> | |
| <img src="http://static.photos/people/200x200/1" alt="Your Story" class="w-full h-full object-cover"> | |
| </div> | |
| </div> | |
| </div> | |
| <span class="text-xs truncate w-16 text-center">Your Story</span> | |
| </div> | |
| <!-- Other Stories --> | |
| <template x-for="i in 10" :key="i"> | |
| <div class="flex flex-col items-center space-y-1 flex-shrink-0"> | |
| <div class="story-ring"> | |
| <div class="bg-white p-0.5 rounded-full"> | |
| <div class="w-16 h-16 rounded-full overflow-hidden"> | |
| <img :src="`http://static.photos/people/200x200/${i+1}`" :alt="`Story ${i}`" class="w-full h-full object-cover"> | |
| </div> | |
| </div> | |
| </div> | |
| <span class="text-xs truncate w-16 text-center" x-text="`user_${i}`"></span> | |
| </div> | |
| </template> | |
| </div> | |
| </div> | |
| <!-- Posts --> | |
| <div class="space-y-6 mt-4"> | |
| <template x-for="i in 5" :key="i"> | |
| <div class="bg-white post-shadow rounded"> | |
| <!-- Post Header --> | |
| <div class="flex items-center justify-between p-3"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-8 h-8 rounded-full overflow-hidden"> | |
| <img :src="`http://static.photos/people/200x200/${i+2}`" :alt="`User ${i}`" class="w-full h-full object-cover"> | |
| </div> | |
| <span class="font-semibold text-sm" x-text="`user_${i}`"></span> | |
| </div> | |
| <button> | |
| <i data-feather="more-vertical" class="w-5 h-5"></i> | |
| </button> | |
| </div> | |
| <!-- Post Image --> | |
| <div class="w-full aspect-square bg-gray-100"> | |
| <img :src="`http://static.photos/travel/1200x630/${i}`" :alt="`Post ${i}`" class="w-full h-full object-cover"> | |
| </div> | |
| <!-- Post Actions --> | |
| <div class="p-3"> | |
| <div class="flex justify-between mb-2"> | |
| <div class="flex space-x-4"> | |
| <button> | |
| <i data-feather="heart" class="w-6 h-6"></i> | |
| </button> | |
| <button> | |
| <i data-feather="message-square" class="w-6 h-6"></i> | |
| </button> | |
| <button> | |
| <i data-feather="send" class="w-6 h-6"></i> | |
| </button> | |
| </div> | |
| <button> | |
| <i data-feather="bookmark" class="w-6 h-6"></i> | |
| </button> | |
| </div> | |
| <!-- Likes --> | |
| <div class="mb-1"> | |
| <span class="font-semibold text-sm">1,234 likes</span> | |
| </div> | |
| <!-- Caption --> | |
| <div class="mb-1"> | |
| <span class="font-semibold text-sm" x-text="`user_${i}`"></span> | |
| <span class="text-sm"> This is a sample caption for post number <span x-text="i"></span>.</span> | |
| </div> | |
| <!-- Comments --> | |
| <div class="text-gray-500 text-sm mb-1"> | |
| <span>View all 42 comments</span> | |
| </div> | |
| <!-- Time --> | |
| <div class="text-gray-400 text-xs"> | |
| <span>2 HOURS AGO</span> | |
| </div> | |
| </div> | |
| </div> | |
| </template> | |
| </div> | |
| </main> | |
| <!-- Bottom Navigation (Mobile) --> | |
| <nav class="md:hidden fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200"> | |
| <div class="flex justify-around items-center h-14"> | |
| <a href="#" class="p-2"> | |
| <i data-feather="home" class="w-6 h-6"></i> | |
| </a> | |
| <a href="#" class="p-2"> | |
| <i data-feather="search" class="w-6 h-6"></i> | |
| </a> | |
| <a href="#" class="p-2"> | |
| <i data-feather="plus-square" class="w-6 h-6"></i> | |
| </a> | |
| <a href="#" class="p-2"> | |
| <i data-feather="heart" class="w-6 h-6"></i> | |
| </a> | |
| <a href="#" class="p-2"> | |
| <div class="w-6 h-6 rounded-full bg-gray-200 overflow-hidden"> | |
| <img src="http://static.photos/people/200x200/1" alt="Profile" class="w-full h-full object-cover"> | |
| </div> | |
| </a> | |
| </div> | |
| </nav> | |
| <script> | |
| feather.replace(); | |
| document.addEventListener('alpine:init', () => { | |
| Alpine.data('instagram', () => ({ | |
| posts: Array(5).fill().map((_, i) => ({ | |
| id: i, | |
| username: `user_${i}`, | |
| image: `http://static.photos/travel/1200x630/${i}`, | |
| avatar: `http://static.photos/people/200x200/${i+2}`, | |
| likes: Math.floor(Math.random() * 10000), | |
| comments: Math.floor(Math.random() * 100), | |
| caption: `This is a sample caption for post number ${i}.`, | |
| time: `${Math.floor(Math.random() * 24)} HOURS AGO` | |
| })) | |
| })); | |
| }); | |
| </script> | |
| <script src="//unpkg.com/alpinejs" defer></script> | |
| </body> | |
| </html> | |