Spaces:
Paused
Paused
| <html> | |
| <head> | |
| <title>HEALTH FOLDER</title> | |
| <meta name="viewport" content="width=device-width"> | |
| <link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.png') }}"> | |
| <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap" rel="stylesheet"> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"> | |
| <style> | |
| body { | |
| margin: 20; | |
| padding: 0; | |
| background-position: top; | |
| background-color: #fff; | |
| font-family: 'Roboto', sans-serif; | |
| } | |
| h1 { | |
| margin-bottom: 0.25rem; /* Adjust the margin-bottom value as desired */ | |
| } | |
| h2 { | |
| margin-top: 0.25rem; /* Adjust the margin-top value as desired */ | |
| margin-bottom: 0.7rem; /* Adjust the margin-top value as desired */ | |
| } | |
| .form_container { | |
| display: grid; | |
| grid-template-columns: repeat(2, 1fr); /* Two equal columns */ | |
| gap: 5px; /* Gap between columns */ | |
| justify-items: top; /* Center items horizontally within each column */ | |
| align-items: top; /* Align items to the top of each column */ | |
| padding: 5px; /* Add padding as desired */ | |
| background-color: hsla(244, 16%, 92%, 0.6); /* Added background color */ | |
| font-family: 'Roboto', sans-serif; | |
| } | |
| ul { | |
| list-style-type: none; /* Remove default list styles */ | |
| padding: 0; | |
| margin: 0; | |
| } | |
| li { | |
| margin-bottom: 0rem; /* Add margin between list items */ | |
| background-color: #f9f9f9; /* default color*/ | |
| } | |
| li:nth-child(4n+1) { | |
| background-color: turquoise; /* Light grey background color for even list items */ | |
| } | |
| li:nth-child(4n) { | |
| background-color: turquoise; /* Light grey background color for even list items */ | |
| } | |
| .directory:before { | |
| content: "\1F5C4"; /* Unicode character for 🗄️ */ | |
| font-size: 20px; /* Adjust the font size as desired */ | |
| margin-right: 5px; /* Add spacing between the icon and text */ | |
| font-family: 'Roboto', sans-serif; | |
| } | |
| .file:before { | |
| content: "\1F4C3"; /* Unicode character for 📃 */ | |
| font-size: 20px; /* Adjust the font size as desired */ | |
| margin-right: 5px; /* Add spacing between the icon and text */ | |
| font-family: 'Roboto', sans-serif; | |
| } | |
| .text { | |
| margin-top: 0rem; /* Add margin as desired */ | |
| font-family: 'Roboto', sans-serif; | |
| } | |
| .done-button { | |
| position: fixed; | |
| top: 10px; | |
| left: 10px; | |
| background-color: #F28C28; | |
| color: #fff; | |
| width: 35px; | |
| height: 35px; | |
| padding: 0; | |
| border: none; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: all 0.3s ease; | |
| } | |
| .done-button:hover { | |
| background-color: #E67E22; | |
| transform: scale(1.1); | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); | |
| } | |
| .done-button i { | |
| font-size: 20px; | |
| color: black; | |
| } | |
| /* Body loaded state */ | |
| body.loaded { | |
| opacity: 1; | |
| } | |
| /* Loading spinner styles */ | |
| .loader { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0, 0, 63, 0.95); | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| z-index: 9999; | |
| transition: opacity 0.3s ease-out; | |
| } | |
| .loader.hidden { | |
| opacity: 0; | |
| pointer-events: none; | |
| } | |
| .spinner { | |
| width: 50px; | |
| height: 50px; | |
| border: 3px solid rgba(255, 255, 255, 0.3); | |
| border-top: 3px solid #9FE2BF; | |
| border-radius: 50%; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div id="loader" class="loader"> <div class="spinner"></div></div> | |
| <button class="done-button" onclick="window.close()" title="Close"><i class="fas fa-times"></i></button> | |
| <div class="text"> | |
| <h1 style="font-family: 'Roboto', sans-serif; font-size: 45px; font-weight: bold; font-style: bold; color: black; text-align: center;">𓊈𒆜FILES𒆜𓊉</h1> | |
| <h2 style="font-family: 'Roboto', sans-serif; font-size: 30px; font-weight: regular; color: black; text-align: center;">DARNA.HI | |
| </h2> | |
| </div> | |
| <div> | |
| <ul class="form_container"> | |
| {% for file in files %} | |
| <li> | |
| <a href="{{ file.path }}"> | |
| <div> | |
| {% if file.is_folder %} | |
| <text class="directory" filename="🗄️"> | |
| {% else %} | |
| <text class="file" filename='fle.png'> | |
| {% endif %} | |
| {{ file.filename }}</div> | |
| </a> | |
| </li> | |
| {% endfor %} | |
| </ul> | |
| </div> | |
| <script> | |
| // Initialize loader | |
| window.addEventListener('load', function() { | |
| document.body.classList.add('loaded'); | |
| // Hide loader if it exists | |
| const loader = document.getElementById('loader'); | |
| if (loader) { | |
| setTimeout(() => { | |
| loader.classList.add('hidden'); | |
| }, 150); | |
| } | |
| }); | |
| </script> | |
| </body> | |
| </html> | |