+page.svelte 808 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <script>
  2. import {enhance} from "$app/forms";
  3. </script>
  4. <div class="container">
  5. <form class="standardForm" method="POST" use:enhance>
  6. <h1>Sign Up</h1>
  7. <label>Name
  8. <input name="name" type="text" required>
  9. </label>
  10. <label>Email
  11. <input name="email" type="email" required>
  12. </label>
  13. <label>Password
  14. <input name="password" type="password" required>
  15. </label>
  16. <label>Confirm Password
  17. <input name="confirmPassword" type="password" required>
  18. </label>
  19. <button>Register</button>
  20. </form>
  21. </div>
  22. <style>
  23. .container{
  24. display: flex;
  25. justify-content: center;
  26. align-items: center;
  27. width: 100%;
  28. height: calc(100% - 75px);
  29. }
  30. </style>