Download index.html from GabHtml/sakurascript-visual-novel-engine: direct link, hf CLI and curl.
- Browser
- Download file 4.3 kB
-
https://huggingface.co/spaces/GabHtml/sakurascript-visual-novel-engine/resolve/main/index.html
- Command line
-
hf download hf://spaces/GabHtml/sakurascript-visual-novel-engine/index.html
-
curl -L -o index.html https://huggingface.co/spaces/GabHtml/sakurascript-visual-novel-engine/resolve/main/index.html
4.3 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>SakuraScript Engine 🌸</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <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> | |
| </head> | |
| <body class="bg-pink-50 text-gray-800 font-sans"> | |
| <div id="app" class="container mx-auto max-w-4xl h-screen flex flex-col"> | |
| <!-- Background Layer --> | |
| <div id="background-container" class="absolute inset-0 z-0 overflow-hidden"> | |
| <img id="background-image" class="w-full h-full object-cover transition-opacity duration-500" src="http://static.photos/nature/1200x630/42" alt="Scene Background"> | |
| </div> | |
| <!-- Character Layer --> | |
| <div id="character-container" class="relative z-10 flex-grow flex items-end justify-center"> | |
| <div id="character-left" class="w-1/2 h-full flex items-end justify-center"> | |
| <img id="char-left" class="max-h-full transition-all duration-300" style="opacity: 0;" src="" alt="Left Character"> | |
| </div> | |
| <div id="character-right" class="w-1/2 h-full flex items-end justify-center"> | |
| <img id="char-right" class="max-h-full transition-all duration-300" style="opacity: 0;" src="" alt="Right Character"> | |
| </div> | |
| </div> | |
| <!-- Text Box Layer --> | |
| <div id="textbox-container" class="relative z-20 bg-white bg-opacity-90 rounded-t-lg shadow-lg p-6 mb-4 transition-all duration-300"> | |
| <div id="nameplate" class="absolute -top-4 left-6 bg-pink-500 text-white px-4 py-1 rounded-full font-bold"></div> | |
| <div id="text-display" class="text-lg leading-relaxed min-h-24"></div> | |
| <div id="next-indicator" class="absolute bottom-2 right-4 text-pink-500 animate-bounce hidden"> | |
| <i data-feather="chevron-down"></i> | |
| </div> | |
| </div> | |
| <!-- Choice Box (Hidden by default) --> | |
| <div id="choice-container" class="hidden relative z-30 bg-white bg-opacity-90 rounded-lg shadow-lg p-6 mb-4"> | |
| <div class="text-center font-bold text-xl mb-4">Make your choice:</div> | |
| <div id="choices" class="space-y-2"></div> | |
| </div> | |
| <!-- Menu Button --> | |
| <button id="menu-button" class="absolute top-4 right-4 bg-white bg-opacity-80 rounded-full p-3 shadow-lg z-40 hover:bg-opacity-100 transition-all"> | |
| <i data-feather="menu"></i> | |
| </button> | |
| <!-- Menu Panel (Hidden by default) --> | |
| <div id="menu-panel" class="hidden absolute inset-0 bg-black bg-opacity-70 z-50 flex items-center justify-center"> | |
| <div class="bg-white rounded-lg p-6 w-80"> | |
| <h2 class="text-xl font-bold mb-4">Menu</h2> | |
| <div class="space-y-3"> | |
| <button id="save-btn" class="w-full bg-pink-100 hover:bg-pink-200 text-pink-700 py-2 rounded flex items-center justify-center"> | |
| <i data-feather="save" class="mr-2"></i> Save Game | |
| </button> | |
| <button id="load-btn" class="w-full bg-pink-100 hover:bg-pink-200 text-pink-700 py-2 rounded flex items-center justify-center"> | |
| <i data-feather="folder" class="mr-2"></i> Load Game | |
| </button> | |
| <button id="settings-btn" class="w-full bg-pink-100 hover:bg-pink-200 text-pink-700 py-2 rounded flex items-center justify-center"> | |
| <i data-feather="settings" class="mr-2"></i> Settings | |
| </button> | |
| <button id="close-menu" class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 py-2 rounded flex items-center justify-center"> | |
| <i data-feather="x" class="mr-2"></i> Close Menu | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script src="components/engine-ui.js"></script> | |
| <script src="script.js"></script> | |
| <script> | |
| feather.replace(); | |
| </script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |