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.

65 lines
2.2 KiB

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