register.ejs 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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/bundle.css">
  8. <link href="https://fonts.googleapis.com/css?family=Saira&display=swap" rel="stylesheet">
  9. </head>
  10. <body id="register">
  11. <div class="header">
  12. <a class="headerStart" href="/" >
  13. <img src="/shared/images/logo.png" alt="Subline">
  14. <div class='headerLogo'>THE SUBLINE</div>
  15. </a>
  16. </div>
  17. <% include ../shared/banner.ejs %>
  18. <form method="post">
  19. <h1> Join The Subline </h1>
  20. <label id="nameLabel">Restaurant Name
  21. <input type="text" name="name" required>
  22. </label>
  23. <label>Email
  24. <input type="email" name="email" required>
  25. </label>
  26. <label>Password
  27. <input type="password" name="password" required>
  28. </label>
  29. <label>Confirm Password
  30. <input type="password" name="confirmPassword" required>
  31. </label>
  32. <label id="agreement">
  33. <input type="checkbox" name="agree" required>
  34. <p>I agree to the
  35. <a class="link" href="/privacy">Privacy Policy</a> and the
  36. <a class="link" href="/terms">Terms and Conditions</a>
  37. </p>
  38. </label>
  39. <h2 class="customText">SIGN UP WITH:</h2>
  40. <button id="squareButton" class="button" formaction="/squarelogin">
  41. <svg aria-hidden="true" viewBox="0 0 44 44" width="44" height="44">
  42. <path fill="currentColor" d="M36.65 0H7.354A7.354 7.354 0 0 0 0 7.354V36.65a7.354 7.354 0 0 0 7.354 7.354H36.65a7.353 7.353 0 0 0 7.354-7.354V7.354A7.352 7.352 0 0 0 36.65 0zm-.646 33.685a2.32 2.32 0 0 1-2.32 2.32H10.325a2.32 2.32 0 0 1-2.321-2.32v-23.36a2.32 2.32 0 0 1 2.321-2.321h23.359a2.32 2.32 0 0 1 2.32 2.321v23.36z"></path>
  43. <path fill="currentColor" d="M17.333 28.003c-.736 0-1.332-.6-1.332-1.339V17.34c0-.739.596-1.339 1.332-1.339h9.338c.738 0 1.332.6 1.332 1.339v9.324c0 .739-.594 1.339-1.332 1.339h-9.338z"></path>
  44. </svg>
  45. <svg aria-hidden="true" viewBox="0 0 66 22" width="105" height="35">
  46. <path d="M11.2 10c-.7-.2-1.3-.4-1.8-.6C8.4 9 8 8.4 8 7.6c0-1.5 1.5-2.2 3-2.2 1.4 0 2.6.6 3.5 1.6l.1.1 1.2-.9-.1-.1c-1.1-1.4-2.7-2.2-4.6-2.2-1.2 0-2.4.3-3.2.9-1 .8-1.5 1.7-1.5 2.9 0 2.7 2.6 3.4 4.6 3.9 2.1.6 3.4 1 3.4 2.6s-1.3 2.6-3.2 2.6c-1 0-2.8-.3-3.9-2l-.1-.1-1.2.9v.1c1.1 1.6 2.9 2.5 5.1 2.5 2.9 0 4.9-1.6 4.9-4.1 0-2.8-2.7-3.5-4.8-4.1z" fill="currentColor"></path>
  47. <path d="M25.5 9.5V8h1.4v14h-1.4v-5.5c-.8 1.1-2 1.7-3.4 1.7-2.7 0-4.5-2.1-4.5-5.2s1.9-5.2 4.5-5.2c1.4-.1 2.6.6 3.4 1.7zM19.1 13c0 2.9 1.6 3.9 3.2 3.9 2 0 3.3-1.5 3.3-3.9s-1.3-3.9-3.3-3.9c-2.4 0-3.2 2-3.2 3.9z" fill-rule="evenodd" clip-rule="evenodd" fill="currentColor"></path>
  48. <path d="M36.2 8v5.5c0 1.9-1.3 3.3-3.2 3.3-1.5 0-2.3-.9-2.3-2.8V8h-1.4v6.4c0 2.4 1.3 3.8 3.5 3.8 1.4 0 2.5-.6 3.3-1.6V18h1.4V8h-1.3z" fill="currentColor"></path>
  49. <path d="M40.3 9c1-.8 2.4-1.3 3.9-1.3 2.2 0 3.6 1.1 3.6 3V18h-1.4v-1.1c-.7.9-1.7 1.3-3.1 1.3-2.2 0-3.5-1.2-3.5-3.1 0-2.5 2.3-2.8 3.3-3 .2 0 .3-.1.5-.1 1.4-.2 2.7-.4 2.7-1.6 0-1.3-1.7-1.4-2.2-1.4-.9 0-2.2.3-3.1 1v.2L40.3 9zm.9 6.1c0 1.6 1.5 1.8 2.2 1.8 1.4 0 2.9-.8 2.9-2.9v-1.4c-.7.4-1.7.6-2.5.8l-.4.1c-1.5.1-2.2.5-2.2 1.6z" fill-rule="evenodd" clip-rule="evenodd" fill="currentColor"></path>
  50. <path d="M55.9 8.2c-.3-.2-.9-.4-1.4-.4-1.1 0-2.2.6-2.8 1.5V8h-1.4v10h1.4v-5.4c0-2.4 1.3-3.4 2.7-3.4.4 0 .8.1 1.1.2l.1.1.3-1.3z" fill="currentColor"></path>
  51. <path d="M56.3 13c0-3.1 1.9-5.3 4.7-5.3 2.7 0 4.5 1.9 4.5 4.7V13.2h-7.7c0 2.2 1.4 3.6 3.4 3.6 1.2 0 2.2-.5 2.8-1.3l.1-.1 1 .9-.1.1c-.7.8-1.9 1.8-3.9 1.8-2.9 0-4.8-2.1-4.8-5.2zm4.6-3.9c-1.7 0-2.9 1.1-3.1 2.9H64c-.1-1.4-1-2.9-3.1-2.9z" fill-rule="evenodd" clip-rule="evenodd" fill="currentColor"></path>
  52. </svg>
  53. </button>
  54. <button id="noneButton" class="button" formaction="/merchant/create/none">NO POS</button>
  55. <a class="link" href="/login">Already have an account? Please Sign In</a>
  56. </form>
  57. <% include ../shared/footer %>
  58. <script>
  59. let locals = <%- JSON.stringify(locals) %>
  60. if(locals.banner !== undefined){
  61. let bannerElem = document.getElementById("banner");
  62. bannerElem.children[0].style.background = locals.banner.color;
  63. bannerElem.children[1].innerText = locals.banner.message;
  64. bannerElem.style.display = "flex";
  65. switch(locals.banner.type){
  66. case "error":
  67. bannerElem.children[0].innerHTML = `
  68. <svg width="50" height="50" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  69. <circle cx="12" cy="12" r="10"></circle>
  70. <line x1="15" y1="9" x2="9" y2="15"></line>
  71. <line x1="9" y1="9" x2="15" y2="15"></line>
  72. </svg>
  73. `;
  74. break;
  75. case "success":
  76. bannerElem.children[0].innerHTML = `
  77. <svg width="50" height="50" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  78. <circle cx="12" cy="12" r="10"></circle>
  79. <line x1="12" y1="8" x2="12" y2="12"></line>
  80. <line x1="12" y1="16" x2="12.01" y2="16"></line>
  81. </svg>
  82. `;
  83. break;
  84. default:
  85. bannerElem.children[0].innerHTML = `
  86. <svg width="50" height="50" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  87. <path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path>
  88. <polyline points="22 4 12 14.01 9 11.01"></polyline>
  89. </svg>
  90. `;
  91. }
  92. let timer = setTimeout(()=>{
  93. bannerElem.style.display = "none"
  94. }, 7000);
  95. bannerElem.children[2].onclick = ()=>{
  96. bannerElem.style.display = "none";
  97. clearTimeout(timer);
  98. }
  99. }
  100. </script>
  101. </body>
  102. </html>