Spaces:
Running
Running
Add 3 files
Browse filesFiles changed (3)
- README.md+7-5
- index.html+312-19
- prompts.txtAdded+3
12345678910---title: Securerightemoji: 👁colorFrom: indigocolorTo: pinksdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference123456789101112---title: securerightemoji: 🐳colorFrom: bluecolorTo: redsdk: staticpinned: falsetags:- deepsite---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312<!DOCTYPE html><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>
123i need to have a register button where users can register with their master key. i need to have a register button where users can register with their master key. the account page should also have an area for user name as well README.md+7-5
index.html+312-19
prompts.txtAdded+3