Personal blog written from scratch using Node.js, Bootstrap, and MySQL. https://jrtechs.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.2 KiB

  1. {header}
  2. <div class="container">
  3. {if loggedIn}
  4. {>adminPage}
  5. {else}
  6. {if goodLoginAttempt}
  7. <meta http-equiv="refresh" content="0">
  8. {/if}
  9. <div class="row">
  10. {if banned}
  11. <div class="align-content-center">
  12. <br>
  13. <h1>Yikes</h1>
  14. <br>
  15. <img src="/includes/img/404.jpg" alt="Page not found meme" width="70%" />
  16. <br><br><br><br>
  17. </div>
  18. {else}
  19. <div class="col-md-8">
  20. <div class="blogPost">
  21. <div class="text-center">
  22. <h2>Login</h2>
  23. </div>
  24. <form action="/admin/login" method ="post" class="p-2">
  25. <div class="form-group">
  26. <label for="username1">User Name</label>
  27. <input class="form-control" type="text" id="username1" name="username" placeholder="Enter username" required>
  28. </div>
  29. <div class="form-group">
  30. <label for="password1">Password</label>
  31. <input class="form-control" type="password" name="password" id="password1" placeholder="Password" required>
  32. </div>
  33. <div class="text-center">
  34. <button class="btn btn-lg btn-secondary">Login</button>
  35. </div>
  36. <br>
  37. </form>
  38. {if invalid}
  39. <p>
  40. Invalid login attempt.
  41. </p>
  42. {/if}
  43. <!--
  44. /\_/\ ___
  45. = o_o =_______ \ \
  46. __^ __( \.__) )
  47. (@)<_____>__(_____)____/
  48. -->
  49. </div>
  50. <br /><br />
  51. </div>
  52. {/if}
  53. </div>
  54. {/if}
  55. </div>
  56. {footer}