login.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <%include file="header.inc.html"/>
  2. <div class="box centered">
  3. <h1 class="title">Log in</h1>
  4. <hr>
  5. <div class="field">
  6. <label class="label">Username</label>
  7. <div class="control has-icons-left">
  8. <input id="username" class="input" type="text" placeholder="e.g. cirno9">
  9. <span class="icon is-small is-left">
  10. <i class="fa-solid fa-user"></i>
  11. </span>
  12. </div>
  13. <p id="username_error" class="help is-danger">This username is not valid.</p>
  14. </div>
  15. <div class="field">
  16. <label class="label">Password</label>
  17. <div class="control has-icons-left">
  18. <input id="password" class="input" type="password" placeholder="********">
  19. <span class="icon is-small is-left">
  20. <i class="fas fa-lock"></i>
  21. </span>
  22. </div>
  23. <p id="password_error" class="help is-danger">This password is not valid.</p>
  24. <div class="control">
  25. <label class="checkbox">
  26. <input id="show_password" type="checkbox" onclick="toggle_password_visibility();">
  27. Show password.
  28. </label>
  29. </div>
  30. </div>
  31. <div class="field">
  32. <div class="control">
  33. <div id="h-captcha" class="h-captcha" data-sitekey="${hcaptcha_sitekey}"></div>
  34. </div>
  35. <p id="captcha_error" class="help is-danger">Please, confirm the captcha.</p>
  36. </div>
  37. <div class="field">
  38. <div class="control">
  39. <button id="login_button" class="button is-primary">Log in</button>
  40. </div>
  41. </div>
  42. </form>
  43. <script src="/static/js/login.js"></script>
  44. <%include file="footer.inc.html"/>