Spaces:
Running
Running
Download index.html from iamnaughty/mapx-first-ever-code: direct link, hf CLI and curl.
- Browser
- Download file 17.5 kB
-
https://huggingface.co/spaces/iamnaughty/mapx-first-ever-code/resolve/main/index.html
- Command line
-
hf download hf://spaces/iamnaughty/mapx-first-ever-code/index.html
-
curl -L -o index.html https://huggingface.co/spaces/iamnaughty/mapx-first-ever-code/resolve/main/index.html
17.5 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>iPhone Mockup</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> | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| .phone { | |
| position: relative; | |
| width: 375px; | |
| height: 812px; | |
| border-radius: 60px; | |
| background-color: #000; | |
| padding: 20px; | |
| box-shadow: 0 0 0 14px #1f1f1f, 0 60px 140px rgba(0, 0, 0, 0.25); | |
| overflow: hidden; | |
| } | |
| .screen { | |
| width: 100%; | |
| height: 100%; | |
| background-color: #000; | |
| border-radius: 40px; | |
| overflow: hidden; | |
| position: relative; | |
| } | |
| .notch { | |
| position: absolute; | |
| top: 0; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| width: 150px; | |
| height: 35px; | |
| background-color: #000; | |
| border-bottom-left-radius: 18px; | |
| border-bottom-right-radius: 18px; | |
| z-index: 10; | |
| } | |
| .time { | |
| position: absolute; | |
| top: 8px; | |
| left: 30px; | |
| color: white; | |
| font-size: 15px; | |
| font-weight: bold; | |
| z-index: 11; | |
| } | |
| .status-icons { | |
| position: absolute; | |
| top: 8px; | |
| right: 30px; | |
| color: white; | |
| font-size: 15px; | |
| z-index: 11; | |
| display: flex; | |
| gap: 8px; | |
| } | |
| .home-indicator { | |
| position: absolute; | |
| bottom: 10px; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| width: 130px; | |
| height: 5px; | |
| background-color: white; | |
| border-radius: 5px; | |
| opacity: 0.6; | |
| } | |
| .wallpaper { | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); | |
| position: relative; | |
| } | |
| .app-grid { | |
| display: grid; | |
| grid-template-columns: repeat(4, 1fr); | |
| gap: 25px; | |
| padding: 60px 25px 25px; | |
| } | |
| .app-icon { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| color: white; | |
| text-shadow: 0 1px 3px rgba(0,0,0,0.5); | |
| cursor: pointer; | |
| transition: transform 0.1s; | |
| } | |
| .app-icon:active { | |
| transform: scale(0.9); | |
| } | |
| .app-icon i { | |
| font-size: 28px; | |
| margin-bottom: 5px; | |
| background-color: rgba(255,255,255,0.2); | |
| width: 60px; | |
| height: 60px; | |
| border-radius: 15px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .app-icon span { | |
| font-size: 12px; | |
| } | |
| .dock { | |
| position: absolute; | |
| bottom: 90px; | |
| left: 25px; | |
| right: 25px; | |
| background-color: rgba(255,255,255,0.2); | |
| border-radius: 30px; | |
| padding: 15px 0; | |
| display: flex; | |
| justify-content: space-around; | |
| backdrop-filter: blur(20px); | |
| } | |
| .page-indicator { | |
| position: absolute; | |
| bottom: 70px; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| display: flex; | |
| gap: 6px; | |
| } | |
| .page-dot { | |
| width: 6px; | |
| height: 6px; | |
| border-radius: 50%; | |
| background-color: rgba(255,255,255,0.5); | |
| } | |
| .page-dot.active { | |
| background-color: white; | |
| } | |
| .control-center { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-color: rgba(0,0,0,0.8); | |
| backdrop-filter: blur(20px); | |
| z-index: 20; | |
| display: none; | |
| flex-direction: column; | |
| padding: 60px 20px; | |
| animation: fadeIn 0.3s; | |
| } | |
| .cc-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| color: white; | |
| margin-bottom: 30px; | |
| } | |
| .cc-grid { | |
| display: grid; | |
| grid-template-columns: repeat(4, 1fr); | |
| gap: 20px; | |
| } | |
| .cc-item { | |
| background-color: rgba(255,255,255,0.1); | |
| border-radius: 15px; | |
| height: 80px; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| color: white; | |
| cursor: pointer; | |
| } | |
| .cc-item i { | |
| font-size: 28px; | |
| margin-bottom: 5px; | |
| } | |
| .cc-item span { | |
| font-size: 12px; | |
| } | |
| .brightness-slider { | |
| margin-top: 30px; | |
| width: 100%; | |
| } | |
| .app-screen { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-color: white; | |
| z-index: 15; | |
| display: none; | |
| flex-direction: column; | |
| animation: fadeIn 0.3s; | |
| } | |
| .app-header { | |
| padding: 15px; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| background-color: #f8f8f8; | |
| border-bottom: 1px solid #e0e0e0; | |
| } | |
| .app-content { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 15px; | |
| } | |
| .notification { | |
| background-color: white; | |
| border-radius: 10px; | |
| padding: 12px; | |
| margin-bottom: 10px; | |
| box-shadow: 0 2px 5px rgba(0,0,0,0.1); | |
| } | |
| .notification-header { | |
| display: flex; | |
| justify-content: space-between; | |
| margin-bottom: 5px; | |
| font-size: 12px; | |
| color: #888; | |
| } | |
| .notification-content { | |
| font-size: 14px; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-200 flex items-center justify-center min-h-screen p-10"> | |
| <div class="phone"> | |
| <div class="screen"> | |
| <div class="notch"></div> | |
| <div class="time" id="time">9:41</div> | |
| <div class="status-icons"> | |
| <i class="fas fa-signal"></i> | |
| <i class="fas fa-wifi"></i> | |
| <i class="fas fa-battery-full"></i> | |
| </div> | |
| <div class="wallpaper"> | |
| <div class="app-grid"> | |
| <div class="app-icon" onclick="openApp('photos')"> | |
| <i class="fas fa-images"></i> | |
| <span>Photos</span> | |
| </div> | |
| <div class="app-icon" onclick="openApp('camera')"> | |
| <i class="fas fa-camera"></i> | |
| <span>Camera</span> | |
| </div> | |
| <div class="app-icon" onclick="openApp('messages')"> | |
| <i class="fas fa-comment"></i> | |
| <span>Messages</span> | |
| </div> | |
| <div class="app-icon" onclick="openApp('maps')"> | |
| <i class="fas fa-map"></i> | |
| <span>Maps</span> | |
| </div> | |
| <div class="app-icon" onclick="openApp('weather')"> | |
| <i class="fas fa-cloud-sun"></i> | |
| <span>Weather</span> | |
| </div> | |
| <div class="app-icon" onclick="openApp('calendar')"> | |
| <i class="fas fa-calendar"></i> | |
| <span>Calendar</span> | |
| </div> | |
| <div class="app-icon" onclick="openApp('notes')"> | |
| <i class="fas fa-sticky-note"></i> | |
| <span>Notes</span> | |
| </div> | |
| <div class="app-icon" onclick="openApp('reminders')"> | |
| <i class="fas fa-bell"></i> | |
| <span>Reminders</span> | |
| </div> | |
| <div class="app-icon" onclick="openApp('settings')"> | |
| <i class="fas fa-cog"></i> | |
| <span>Settings</span> | |
| </div> | |
| <div class="app-icon" onclick="openApp('appstore')"> | |
| <i class="fas fa-store"></i> | |
| <span>App Store</span> | |
| </div> | |
| <div class="app-icon" onclick="openApp('wallet')"> | |
| <i class="fas fa-wallet"></i> | |
| <span>Wallet</span> | |
| </div> | |
| <div class="app-icon" onclick="openControlCenter()"> | |
| <i class="fas fa-sliders-h"></i> | |
| <span>Control</span> | |
| </div> | |
| </div> | |
| <div class="dock"> | |
| <div class="app-icon"> | |
| <i class="fas fa-phone"></i> | |
| </div> | |
| <div class="app-icon"> | |
| <i class="fas fa-safari"></i> | |
| </div> | |
| <div class="app-icon"> | |
| <i class="fas fa-envelope"></i> | |
| </div> | |
| <div class="app-icon"> | |
| <i class="fas fa-music"></i> | |
| </div> | |
| </div> | |
| <div class="page-indicator"> | |
| <div class="page-dot active"></div> | |
| <div class="page-dot"></div> | |
| <div class="page-dot"></div> | |
| </div> | |
| </div> | |
| <div class="home-indicator"></div> | |
| <div class="control-center" id="controlCenter"> | |
| <div class="cc-header"> | |
| <div>Control Center</div> | |
| <div onclick="closeControlCenter()"><i class="fas fa-times"></i></div> | |
| </div> | |
| <div class="cc-grid"> | |
| <div class="cc-item"> | |
| <i class="fas fa-wifi"></i> | |
| <span>Wi-Fi</span> | |
| </div> | |
| <div class="cc-item"> | |
| <i class="fas fa-bluetooth-b"></i> | |
| <span>Bluetooth</span> | |
| </div> | |
| <div class="cc-item"> | |
| <i class="fas fa-moon"></i> | |
| <span>Focus</span> | |
| </div> | |
| <div class="cc-item"> | |
| <i class="fas fa-air-freshener"></i> | |
| <span>AirDrop</span> | |
| </div> | |
| <div class="cc-item"> | |
| <i class="fas fa-mobile-alt"></i> | |
| <span>Cellular</span> | |
| </div> | |
| <div class="cc-item"> | |
| <i class="fas fa-volume-up"></i> | |
| <span>Sound</span> | |
| </div> | |
| <div class="cc-item"> | |
| <i class="fas fa-stopwatch"></i> | |
| <span>Stopwatch</span> | |
| </div> | |
| <div class="cc-item"> | |
| <i class="fas fa-camera"></i> | |
| <span>Camera</span> | |
| </div> | |
| </div> | |
| <div class="brightness-slider"> | |
| <div class="flex items-center justify-between text-white mb-2"> | |
| <i class="fas fa-sun"></i> | |
| <span>Brightness</span> | |
| <i class="fas fa-sun"></i> | |
| </div> | |
| <input type="range" min="0" max="100" value="50" class="w-full h-2 bg-gray-600 rounded-lg appearance-none cursor-pointer"> | |
| </div> | |
| </div> | |
| <div class="app-screen" id="photosApp"> | |
| <div class="app-header"> | |
| <div>Photos</div> | |
| <div onclick="closeApp('photos')"><i class="fas fa-times"></i></div> | |
| </div> | |
| <div class="app-content"> | |
| <div class="grid grid-cols-3 gap-2"> | |
| <div class="bg-blue-200 aspect-square"></div> | |
| <div class="bg-green-200 aspect-square"></div> | |
| <div class="bg-yellow-200 aspect-square"></div> | |
| <div class="bg-red-200 aspect-square"></div> | |
| <div class="bg-purple-200 aspect-square"></div> | |
| <div class="bg-pink-200 aspect-square"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="app-screen" id="messagesApp"> | |
| <div class="app-header"> | |
| <div>Messages</div> | |
| <div onclick="closeApp('messages')"><i class="fas fa-times"></i></div> | |
| </div> | |
| <div class="app-content"> | |
| <div class="notification"> | |
| <div class="notification-header"> | |
| <span>John Doe</span> | |
| <span>10:30 AM</span> | |
| </div> | |
| <div class="notification-content"> | |
| Hey, how are you doing? | |
| </div> | |
| </div> | |
| <div class="notification"> | |
| <div class="notification-header"> | |
| <span>Jane Smith</span> | |
| <span>Yesterday</span> | |
| </div> | |
| <div class="notification-content"> | |
| Don't forget about our meeting tomorrow! | |
| </div> | |
| </div> | |
| <div class="notification"> | |
| <div class="notification-header"> | |
| <span>Mom</span> | |
| <span>Monday</span> | |
| </div> | |
| <div class="notification-content"> | |
| Call me when you get a chance | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Update time | |
| function updateTime() { | |
| const now = new Date(); | |
| let hours = now.getHours(); | |
| let minutes = now.getMinutes(); | |
| minutes = minutes < 10 ? '0' + minutes : minutes; | |
| document.getElementById('time').textContent = `${hours}:${minutes}`; | |
| } | |
| setInterval(updateTime, 1000); | |
| updateTime(); | |
| // Control Center functions | |
| function openControlCenter() { | |
| document.getElementById('controlCenter').style.display = 'flex'; | |
| } | |
| function closeControlCenter() { | |
| document.getElementById('controlCenter').style.display = 'none'; | |
| } | |
| // App functions | |
| function openApp(appName) { | |
| document.getElementById(appName + 'App').style.display = 'flex'; | |
| } | |
| function closeApp(appName) { | |
| document.getElementById(appName + 'App').style.display = 'none'; | |
| } | |
| // Simulate touch on app icons | |
| document.querySelectorAll('.app-icon').forEach(icon => { | |
| icon.addEventListener('mousedown', function() { | |
| this.style.transform = 'scale(0.9)'; | |
| }); | |
| icon.addEventListener('mouseup', function() { | |
| this.style.transform = 'scale(1)'; | |
| }); | |
| icon.addEventListener('mouseleave', function() { | |
| this.style.transform = 'scale(1)'; | |
| }); | |
| }); | |
| </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=iamnaughty/mapx-first-ever-code" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |