|
1 | | -<html> |
| 1 | +<html lang="en"> |
2 | 2 | <head> |
3 | 3 | <title>Verification</title> |
4 | 4 | <meta |
5 | 5 | name="viewport" |
6 | 6 | content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> |
7 | 7 | <script src="<%= captcha_provider_script %>" async defer></script> |
8 | | - <link rel="stylesheet" href="../style.css" /> |
| 8 | + <script src="https://cdn.tailwindcss.com"></script> |
| 9 | + <script> |
| 10 | + tailwind.config = { |
| 11 | + // Use system dark mode |
| 12 | + darkMode: 'media', |
| 13 | + }; |
| 14 | + </script> |
9 | 15 | </head> |
10 | 16 |
|
11 | | - <body> |
12 | | - <div class="main"> |
13 | | - <h1>Verification</h1> |
14 | | - <h4> |
15 | | - Please solve the <%= captcha_provider %> following below to make sure you are not a |
16 | | - robot. |
| 17 | + <body class="dark:bg-black"> |
| 18 | + <div class="h-screen flex flex-col items-center p-3"> |
| 19 | + <h1 class="mt-5 text-3xl font-bold dark:text-white">Verification</h1> |
| 20 | + <h4 class="text-xl text-gray-600 dark:text-gray-400"> |
| 21 | + Please solve the <%= captcha_provider %> following below to make sure |
| 22 | + you are not a robot. |
17 | 23 | </h4> |
18 | | - <form action="/verify/solve" method="POST" id="captcha_verification"> |
19 | | - <center> |
20 | | - <div |
21 | | - class="g-recaptcha h-captcha cf-turnstile" |
22 | | - data-sitekey="<%= captcha_sitekey %>" |
23 | | - data-callback="onPassed" |
24 | | - data-expired-callback="onExpired"></div> |
25 | | - </center> |
| 24 | + <form |
| 25 | + action="/verify/solve" |
| 26 | + method="POST" |
| 27 | + id="captcha_verification" |
| 28 | + class="mt-5"> |
| 29 | + <div |
| 30 | + class="g-recaptcha h-captcha cf-turnstile" |
| 31 | + data-sitekey="<%= captcha_sitekey %>" |
| 32 | + data-callback="onPassed" |
| 33 | + data-expired-callback="onExpired"></div> |
26 | 34 | </form> |
27 | | - </div> |
28 | | - <div class="footer"> |
29 | | - <a href="../verify/logout">Logout</a> |
| 35 | + <div class="mt-5"> |
| 36 | + <a |
| 37 | + href="../verify/logout" |
| 38 | + class="text-blue-500 dark:text-blue-400 hover:underline"> |
| 39 | + Logout |
| 40 | + </a> |
| 41 | + </div> |
30 | 42 | </div> |
31 | 43 | <script> |
32 | 44 | function onPassed() { |
33 | 45 | document.getElementById('captcha_verification').submit(); |
34 | 46 | } |
| 47 | + |
35 | 48 | function onExpired() { |
36 | 49 | location.reload(); |
37 | 50 | } |
|
0 commit comments