|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + |
| 4 | +<head> |
| 5 | + <meta charset="UTF-8"> |
| 6 | + <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 8 | + <title>marcelotk15 - Password Genereator</title> |
| 9 | + |
| 10 | + <script src="https://cdn.tailwindcss.com"></script> |
| 11 | + <script src="script.js" defer></script> |
| 12 | + |
| 13 | + <style>@import url(https://cdnjs.cloudflare.com/ajax/libs/MaterialDesign-Webfont/5.3.45/css/materialdesignicons.min.css);</style> |
| 14 | +</head> |
| 15 | + |
| 16 | +<body> |
| 17 | + <section class="grid w-full h-screen content-center bg-slate-900"> |
| 18 | + <div class="w-full max-w-[500px] mx-auto rounded-lg bg-slate-800 shadow p-5 text-gray-300"> |
| 19 | + <div class="relative mb-2"> |
| 20 | + <input |
| 21 | + type="text" |
| 22 | + id="password" |
| 23 | + class="w-full pl-3 pr-10 py-2 border-2 rounded-md focus:outline-none transition-colors bg-gray-700 border-gray-600 placeholder-gray-400 text-white focus:ring-blue-500 focus:border-blue-500" |
| 24 | + placeholder='Password Generated' |
| 25 | + disabled |
| 26 | + > |
| 27 | + |
| 28 | + <button |
| 29 | + class="block w-7 h-7 text-center text-xl leading-0 absolute top-2 right-2 text-gray-400 focus:outline-none hover:text-indigo-500 transition-colors" |
| 30 | + onclick="App.handleCopyPassword()" |
| 31 | + > |
| 32 | + <i class="mdi mdi-content-copy"></i> |
| 33 | + </button> |
| 34 | + </div> |
| 35 | + |
| 36 | + <hr class="my-5 border border-gray-200"> |
| 37 | + |
| 38 | + <div class="mb-2"> |
| 39 | + <label class="block text-xs font-semibold text-gray-500 mb-2">PASSWORD LENGTH</label> |
| 40 | + |
| 41 | + <input |
| 42 | + class="w-full px-3 py-2 mb-1 border-2 rounded-md stransition-colors bg-gray-700 border-gray-600 placeholder-gray-400 text-white focus:ring-blue-500 focus:border-blue-500" |
| 43 | + placeholder="Length" |
| 44 | + type="number" |
| 45 | + min="6" |
| 46 | + max="30" |
| 47 | + step="1" /> |
| 48 | + |
| 49 | + <input |
| 50 | + class="w-full bg-gray-700 border-gray-600 placeholder-gray-400 text-white focus:ring-blue-500 focus:border-blue-500" |
| 51 | + type="range" |
| 52 | + min="6" |
| 53 | + max="30" |
| 54 | + step="1" /> |
| 55 | + </div> |
| 56 | + |
| 57 | + <div class='grid grid-cols-2'> |
| 58 | + <div class='px-2'> |
| 59 | + <label html='charsLower' class='flex items-start'> |
| 60 | + <input |
| 61 | + class='rounded focus:ring-2 bg-gray-700 border-gray-600 placeholder-gray-400 text-white focus:ring-blue-500 focus:border-blue-500 ring-offset-gray-800' |
| 62 | + id='charsLower' |
| 63 | + type='checkbox' |
| 64 | + checked |
| 65 | + onchange="App.generatePassword()" /> |
| 66 | + |
| 67 | + <span class='ml-2 text-sm font-medium'>LOWERCASE</span> |
| 68 | + </label> |
| 69 | + </div> |
| 70 | + |
| 71 | + <div class='px-2'> |
| 72 | + <label html='charsUpper'> |
| 73 | + <input |
| 74 | + type='checkbox' |
| 75 | + class='rounded focus:ring-2 bg-gray-700 border-gray-600 placeholder-gray-400 text-white focus:ring-blue-500 focus:border-blue-500 ring-offset-gray-800' |
| 76 | + id='charsUpper' |
| 77 | + checked |
| 78 | + onchange="App.generatePassword()" /> |
| 79 | + |
| 80 | + <span class='ml-2 text-sm font-medium'>UPPERCASE</span> |
| 81 | + </label> |
| 82 | + </div> |
| 83 | + |
| 84 | + <div class='px-2'> |
| 85 | + <label html='charsNumeric'> |
| 86 | + <input |
| 87 | + type='checkbox' |
| 88 | + class='rounded focus:ring-2 bg-gray-700 border-gray-600 placeholder-gray-400 text-white focus:ring-blue-500 focus:border-blue-500 ring-offset-gray-800' |
| 89 | + id='charsNumeric' |
| 90 | + checked |
| 91 | + onchange="App.generatePassword()" /> |
| 92 | + |
| 93 | + <span class='ml-2 text-sm font-medium'>NUMBERS</span> |
| 94 | + </label> |
| 95 | + </div> |
| 96 | + |
| 97 | + <div class='px-2'> |
| 98 | + <label html='charsSymbols'> |
| 99 | + <input |
| 100 | + type='checkbox' |
| 101 | + class='rounded focus:ring-2 bg-gray-700 border-gray-600 placeholder-gray-400 text-white focus:ring-blue-500 focus:border-blue-500 ring-offset-gray-800' |
| 102 | + id='charsSymbols' |
| 103 | + checked |
| 104 | + onchange="App.generatePassword()" /> |
| 105 | + |
| 106 | + <span class='ml-2 text-sm font-medium'>SYMBOLS</span> |
| 107 | + </label> |
| 108 | + </div> |
| 109 | + </div> |
| 110 | + </div> |
| 111 | + </section> |
| 112 | +</body> |
| 113 | +</html> |
0 commit comments