Spaces:
Running
Running
Download index.html from em0-313/secureright: direct link, hf CLI and curl.
- Browser
- Download file 16.9 kB
-
https://huggingface.co/spaces/em0-313/secureright/resolve/main/index.html
- Command line
-
hf download hf://spaces/em0-313/secureright/index.html
-
curl -L -o index.html https://huggingface.co/spaces/em0-313/secureright/resolve/main/index.html
16.9 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>SecureRight - Password Manager</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link href="https://fonts.googleapis.com/css2?family=Verdana:wght@400;700&display=swap" rel="stylesheet"> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js"></script> | |
| <style> | |
| body { | |
| font-family: 'Verdana', sans-serif; | |
| background-color: #1a202c; | |
| color: #ffffff; | |
| } | |
| .password-strength { | |
| height: 5px; | |
| transition: all 0.3s; | |
| } | |
| .encryption-animation { | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { opacity: 0.7; } | |
| 50% { opacity: 1; } | |
| 100% { opacity: 0.7; } | |
| } | |
| .notification { | |
| position: fixed; | |
| top: 20px; | |
| right: 20px; | |
| background-color: #38a169; | |
| color: white; | |
| padding: 12px 24px; | |
| border-radius: 8px; | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| transform: translateY(-100px); | |
| opacity: 0; | |
| transition: all 0.3s ease; | |
| z-index: 1000; | |
| } | |
| .notification.show { | |
| transform: translateY(0); | |
| opacity: 1; | |
| } | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #2b6cb0 0%, #4c51bf 100%); | |
| } | |
| .account-card { | |
| background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%); | |
| border-radius: 12px; | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); | |
| } | |
| .tab-button { | |
| transition: all 0.3s ease; | |
| } | |
| .tab-button.active { | |
| border-bottom: 3px solid #4299e1; | |
| color: #4299e1; | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen"> | |
| <!-- Registration Modal --> | |
| <div id="registerModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"> | |
| <div class="bg-gray-800 rounded-xl p-8 w-full max-w-md mx-4"> | |
| <div class="text-center mb-6"> | |
| <i class="fas fa-lock text-5xl text-blue-400 mb-4"></i> | |
| <h2 class="text-2xl font-bold">Create Your SecureRight Account</h2> | |
| <p class="text-gray-400 mt-2">Set up your account to start securing your passwords</p> | |
| </div> | |
| <div class="space-y-4"> | |
| <div> | |
| <label class="block mb-2 text-sm font-medium">Username</label> | |
| <div class="relative"> | |
| <input type="text" id="registerUsernameInput" placeholder="Choose a username" class="w-full bg-gray-700 text-white px-4 py-3 rounded-lg pl-12"> | |
| <i class="fas fa-user absolute left-4 top-3.5 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div> | |
| <label class="block mb-2 text-sm font-medium">Master Key</label> | |
| <div class="relative"> | |
| <input type="password" id="registerKeyInput" placeholder="Enter a strong master key" class="w-full bg-gray-700 text-white px-4 py-3 rounded-lg pl-12"> | |
| <i class="fas fa-key absolute left-4 top-3.5 text-gray-400"></i> | |
| </div> | |
| <p class="text-xs text-gray-400 mt-1">Minimum 8 characters, include numbers and symbols</p> | |
| </div> | |
| <div> | |
| <label class="block mb-2 text-sm font-medium">Confirm Master Key</label> | |
| <div class="relative"> | |
| <input type="password" id="confirmKeyInput" placeholder="Confirm your master key" class="w-full bg-gray-700 text-white px-4 py-3 rounded-lg pl-12"> | |
| <i class="fas fa-key absolute left-4 top-3.5 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div class="flex items-center mt-2"> | |
| <input type="checkbox" id="termsCheckbox" class="mr-2"> | |
| <label for="termsCheckbox" class="text-sm text-gray-300">I agree to the <a href="#" class="text-blue-400 hover:underline">Terms of Service</a> and <a href="#" class="text-blue-400 hover:underline">Privacy Policy</a></label> | |
| </div> | |
| </div> | |
| <div class="mt-6"> | |
| <button id="completeRegistrationBtn" class="w-full gradient-bg hover:opacity-90 text-white font-bold py-3 px-4 rounded-lg transition duration-200"> | |
| Complete Registration | |
| </button> | |
| </div> | |
| <div class="text-center mt-4 text-sm text-gray-400"> | |
| Already have an account? <button id="showLoginBtn" class="text-blue-400 hover:underline">Login</button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Login Modal --> | |
| <div id="loginModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> | |
| <div class="bg-gray-800 rounded-xl p-8 w-full max-w-md mx-4"> | |
| <div class="text-center mb-6"> | |
| <i class="fas fa-lock text-5xl text-blue-400 mb-4"></i> | |
| <h2 class="text-2xl font-bold">Welcome Back to SecureRight</h2> | |
| <p class="text-gray-400 mt-2">Enter your credentials to access your passwords</p> | |
| </div> | |
| <div class="space-y-4"> | |
| <div> | |
| <label class="block mb-2 text-sm font-medium">Username</label> | |
| <div class="relative"> | |
| <input type="text" id="loginUsernameInput" placeholder="Enter your username" class="w-full bg-gray-700 text-white px-4 py-3 rounded-lg pl-12"> | |
| <i class="fas fa-user absolute left-4 top-3.5 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div> | |
| <label class="block mb-2 text-sm font-medium">Master Key</label> | |
| <div class="relative"> | |
| <input type="password" id="loginKeyInput" placeholder="Enter your master key" class="w-full bg-gray-700 text-white px-4 py-3 rounded-lg pl-12"> | |
| <i class="fas fa-key absolute left-4 top-3.5 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div class="flex justify-between items-center mt-2"> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="rememberKey" class="mr-2"> | |
| <label for="rememberKey" class="text-sm text-gray-300">Remember me</label> | |
| </div> | |
| <button id="forgotKeyBtn" class="text-sm text-blue-400 hover:underline">Forgot key?</button> | |
| </div> | |
| </div> | |
| <div class="mt-6"> | |
| <button id="loginBtn" class="w-full gradient-bg hover:opacity-90 text-white font-bold py-3 px-4 rounded-lg transition duration-200"> | |
| Login | |
| </button> | |
| </div> | |
| <div class="text-center mt-4 text-sm text-gray-400"> | |
| Don't have an account? <button id="showRegisterBtn" class="text-blue-400 hover:underline">Register</button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main App (hidden until authenticated) --> | |
| <div id="appContainer" class="container mx-auto px-4 py-8 hidden"> | |
| <!-- Header --> | |
| <header class="flex flex-col md:flex-row justify-between items-center mb-10"> | |
| <div class="flex items-center mb-4 md:mb-0"> | |
| <i class="fas fa-lock text-3xl text-blue-400 mr-3"></i> | |
| <h1 class="text-3xl font-bold">SecureRight</h1> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button id="accountBtn" class="bg-gray-700 hover:bg-gray-600 px-4 py-2 rounded-lg flex items-center"> | |
| <i class="fas fa-user-circle mr-2"></i> Account | |
| </button> | |
| <button id="exportBtn" class="bg-green-600 hover:bg-green-700 px-4 py-2 rounded-lg flex items-center"> | |
| <i class="fas fa-file-export mr-2"></i> Export | |
| </button> | |
| <button id="importBtn" class="bg-purple-600 hover:bg-purple-700 px-4 py-2 rounded-lg flex items-center"> | |
| <i class="fas fa-file-import mr-2"></i> Import | |
| </button> | |
| <button id="logoutBtn" class="bg-red-600 hover:bg-red-700 px-4 py-2 rounded-lg flex items-center"> | |
| <i class="fas fa-sign-out-alt mr-2"></i> Logout | |
| </button> | |
| </div> | |
| </header> | |
| <!-- Tab Navigation --> | |
| <div class="flex border-b border-gray-700 mb-8"> | |
| <button id="passwordsTab" class="tab-button active px-4 py-2 font-medium">Passwords</button> | |
| <button id="accountTab" class="tab-button px-4 py-2 font-medium">Account</button> | |
| <button id="securityTab" class="tab-button px-4 py-2 font-medium">Security</button> | |
| </div> | |
| <!-- Main Content --> | |
| <div id="passwordsContent" class="content-section"> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-8"> | |
| <!-- Password Generator --> | |
| <div class="bg-gray-800 rounded-xl p-6 shadow-lg lg:col-span-1"> | |
| <h2 class="text-xl font-bold mb-4 flex items-center"> | |
| <i class="fas fa-cogs mr-2 text-blue-400"></i> Password Generator | |
| </h2> | |
| <div class="mb-4"> | |
| <label class="block mb-2">Password Length: <span id="lengthValue">12</span></label> | |
| <input type="range" id="lengthSlider" min="6" max="32" value="12" class="w-full"> | |
| </div> | |
| <div class="space-y-3 mb-6"> | |
| <label class="flex items-center"> | |
| <input type="checkbox" id="uppercase" checked class="mr-2"> Uppercase Letters (A-Z) | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="checkbox" id="lowercase" checked class="mr-2"> Lowercase Letters (a-z) | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="checkbox" id="numbers" checked class="mr-2"> Numbers (0-9) | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="checkbox" id="symbols" checked class="mr-2"> Symbols (!@#$%^&*) | |
| </label> | |
| </div> | |
| <div class="mb-4"> | |
| <div class="flex items-center mb-2"> | |
| <input type="text" id="generatedPassword" readonly class="w-full bg-gray-700 text-white px-3 py-2 rounded-l"> | |
| <button id="copyPassword" class="bg-blue-600 hover:bg-blue-700 px-3 py-2 rounded-r"> | |
| <i class="fas fa-copy"></i> | |
| </button> | |
| </div> | |
| <div class="flex mt-1"> | |
| <div id="strengthIndicator" class="password-strength w-0 rounded-full"></div> | |
| </div> | |
| <p id="strengthText" class="text-xs mt-1 text-right"></p> | |
| </div> | |
| <button id="generateBtn" class="w-full gradient-bg hover:opacity-90 py-2 rounded-lg flex items-center justify-center font-bold"> | |
| <i class="fas fa-sync-alt mr-2"></i> Generate Password | |
| </button> | |
| </div> | |
| <!-- Password List --> | |
| <div class="bg-gray-800 rounded-xl p-6 shadow-lg lg:col-span-2"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-xl font-bold flex items-center"> | |
| <i class="fas fa-list mr-2 text-blue-400"></i> Saved Passwords | |
| </h2> | |
| <button id="addPasswordBtn" class="gradient-bg hover:opacity-90 px-4 py-2 rounded-lg flex items-center font-bold"> | |
| <i class="fas fa-plus mr-2"></i> Add Password | |
| </button> | |
| </div> | |
| <!-- Search and Filter --> | |
| <div class="mb-6"> | |
| <div class="relative"> | |
| <input type="text" id="searchInput" placeholder="Search passwords..." class="w-full bg-gray-700 text-white px-4 py-2 rounded-lg pl-10"> | |
| <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <!-- Password Table --> | |
| <div class="overflow-x-auto"> | |
| <table class="w-full"> | |
| <thead> | |
| <tr class="border-b border-gray-700"> | |
| <th class="text-left py-3 px-4">Website/App</th> | |
| <th class="text-left py-3 px-4">Username</th> | |
| <th class="text-left py-3 px-4">Password</th> | |
| <th class="text-left py-3 px-4">Actions</th> | |
| </tr> | |
| </thead> | |
| <tbody id="passwordTableBody"> | |
| <!-- Passwords will be added here dynamically --> | |
| </tbody> | |
| </table> | |
| <p id="noPasswordsMessage" class="text-center py-8 text-gray-400">No passwords saved yet. Add your first password!</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Account Content (hidden by default) --> | |
| <div id="accountContent" class="content-section hidden"> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-8"> | |
| <!-- Account Info --> | |
| <div class="lg:col-span-2 account-card p-6"> | |
| <h2 class="text-xl font-bold mb-6 flex items-center"> | |
| <i class="fas fa-user-circle mr-2 text-blue-400"></i> Account Information | |
| </h2> | |
| <div class="space-y-6"> | |
| <div> | |
| <label class="block mb-2 text-sm font-medium">Username</label> | |
| <div class="flex items-center"> | |
| <input type="text" id="accountUsername" class="w-full bg-gray-700 text-white px-4 py-3 rounded-lg" disabled> | |
| <button id="editUsernameBtn" class="ml-2 bg-blue-600 hover:bg-blue-700 px-4 py-3 rounded-lg"> | |
| <i class="fas fa-edit"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div> | |
| <label class="block mb-2 text-sm font-medium">Email Address</label> | |
| <div class="flex items-center"> | |
| <input type="email" id="accountEmail" placeholder="Add your email" class="w-full bg-gray-700 text-white px-4 py-3 rounded-lg"> | |
| <button id="saveEmailBtn" class="ml-2 bg-blue-600 hover:bg-blue-700 px-4 py-3 rounded-lg"> | |
| <i class="fas fa-save"></i> | |
| </button> | |
| </div> | |
| <p class="text-xs text-gray-400 mt-1">Adding an email helps with account recovery</p> | |
| </div> | |
| <div> | |
| <label class="block mb-2 text-sm font-medium">Account Created</label> | |
| <div class="bg-gray-700 text-white px-4 py-3 rounded-lg"> | |
| <span id="accountCreatedDate">Loading...</span> | |
| </div> | |
| </div> | |
| <div> | |
| <label class="block mb-2 text-sm font-medium">Last Login</label> | |
| <div class="bg-gray-700 text-white px-4 py-3 rounded-lg"> | |
| <span id="lastLoginDate">Loading...</span> | |
| </div> | |
| </div> | |
| </ | |
| </html> |