login.ejs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>The Subline</title>
  6. <link rel="icon" type="img/png" href="/shared/images/logo.png">
  7. <link rel="stylesheet" href="/otherPages/style.css">
  8. <link rel="stylesheet" href="/shared/shared.css">
  9. <link href="https://fonts.googleapis.com/css?family=Saira&display=swap" rel="stylesheet">
  10. </head>
  11. <body id="login">
  12. <div class="header">
  13. <a class="headerStart" href="/" >
  14. <img src="/shared/images/logo.png" alt="Subline">
  15. <div class='headerLogo'>THE SUBLINE</div>
  16. </a>
  17. </div>
  18. <% if(banner !== undefined){ %>
  19. <% include ./banner.ejs %>
  20. <% } %>
  21. <form action="/login" method="post">
  22. <h1> Welcome Back </h1>
  23. <label>Email
  24. <input type="text" name="email" type="email" required>
  25. </label>
  26. <label>Password
  27. <input type="password" name="password" required>
  28. </label>
  29. <input id="signIn" type="submit" value="Sign In with Email">
  30. <!-- <h1>OR</h1>
  31. <a class="button buttonWithBorder" href="/cloverlogin">Sign In with Clover</a>
  32. <a class="button buttonWithBorder" href="/squarelogin">Sign In with Square</a> -->
  33. <a href="/reset/email" class="link">Forgot your password?</a>
  34. <a class="link" href="/register">Need to register?</a>
  35. </form>
  36. <% include ../shared/footer %>
  37. <script>
  38. setTimeout(()=>{
  39. let banner = document.getElementById("banner");
  40. if(banner !== null) banner.style.display = "none";
  41. }, 10000)
  42. </script>
  43. </body>
  44. </html>