Download templates/auth/verify_otp.html from deedrop1140/machinelearningalgorithms: direct link, hf CLI and curl.
- Browser
- Download file 1.81 kB
-
https://huggingface.co/spaces/deedrop1140/machinelearningalgorithms/resolve/main/templates/auth/verify_otp.html
- Command line
-
hf download hf://spaces/deedrop1140/machinelearningalgorithms/templates/auth/verify_otp.html
-
curl -L -o verify_otp.html https://huggingface.co/spaces/deedrop1140/machinelearningalgorithms/resolve/main/templates/auth/verify_otp.html
1.81 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Verify OTP</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| </head> | |
| <body class="min-h-screen bg-gradient-to-br from-orange-500 to-red-500 flex items-center justify-center"> | |
| <div class="bg-white w-full max-w-md rounded-2xl shadow-xl p-8 text-center"> | |
| <h2 class="text-3xl font-bold text-gray-800">Verify Email</h2> | |
| {% if error %} | |
| <script> | |
| </script> | |
| {% endif %} | |
| <p class="text-gray-500 mt-2">Enter the 6-digit OTP sent to your email</p> | |
| <form method="POST" class="mt-6 space-y-4"> | |
| <input type="text" name="otp" maxlength="6" placeholder="Enter OTP" | |
| required | |
| class="w-full text-center text-xl tracking-widest px-4 py-3 rounded-lg border focus:ring-2 focus:ring-orange-500 outline-none"> | |
| <button | |
| class="w-full bg-orange-600 hover:bg-orange-700 text-white py-3 rounded-lg font-semibold transition"> | |
| Verify OTP | |
| </button> | |
| </form> | |
| <a href="/auth/resend/{{ email }}" | |
| class="block mt-4 text-sm text-orange-600 hover:underline"> | |
| Resend OTP | |
| </a> | |
| </div> | |
| <div id="alertBox" | |
| class="hidden fixed top-5 right-5 max-w-sm px-5 py-4 rounded-lg shadow-lg text-white"> | |
| </div> | |
| <script> | |
| function showAlert(message, type = "error") { | |
| const alertBox = document.getElementById("alertBox"); | |
| alertBox.textContent = message; | |
| alertBox.className = | |
| "fixed top-5 right-5 max-w-sm px-5 py-4 rounded-lg shadow-lg text-white " + | |
| (type === "success" ? "bg-green-600" : "bg-red-600"); | |
| alertBox.classList.remove("hidden"); | |
| setTimeout(() => { | |
| alertBox.classList.add("hidden"); | |
| }, 3000); | |
| } | |
| </script> | |
| </body> | |
| </html> | |