Website for showcasing all features of Tesseract Web.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

93 wiersze
2.9 KiB

  1. import { NextPage } from 'next';
  2. import * as Freeform from '@tesseract-design/web-freeform-react';
  3. import * as Action from '@tesseract-design/web-action-react';
  4. import { ButtonVariant } from '@tesseract-design/web-base-button';
  5. const RegistrationFormPage: NextPage = () => {
  6. return (
  7. <main className="my-16 md:my-32">
  8. <div className="container mx-auto px-4">
  9. <h1>
  10. Registration Form
  11. </h1>
  12. <p>
  13. Input your data in order to gain access to the functions of this service.
  14. </p>
  15. <form>
  16. <fieldset className="contents">
  17. <legend className="sr-only">
  18. Register
  19. </legend>
  20. <div className="grid sm:grid-cols-6 gap-4">
  21. <div className="sm:col-span-2">
  22. <Freeform.TextInput
  23. block
  24. border
  25. label="First Name"
  26. name="firstName"
  27. />
  28. </div>
  29. <div className="sm:col-span-2">
  30. <Freeform.TextInput
  31. block
  32. border
  33. label="Middle Name"
  34. name="middleName"
  35. />
  36. </div>
  37. <div className="sm:col-span-2">
  38. <Freeform.TextInput
  39. block
  40. border
  41. label="Last Name"
  42. name="lastName"
  43. />
  44. </div>
  45. <div className="sm:col-span-3">
  46. <Freeform.TextInput
  47. block
  48. border
  49. label="Email"
  50. name="email"
  51. />
  52. </div>
  53. <div className="sm:col-span-3">
  54. <Freeform.TextInput
  55. block
  56. border
  57. label="Website"
  58. name="website"
  59. />
  60. </div>
  61. <div className="sm:col-span-6 text-center">
  62. <div
  63. className="sm:flex items-center justify-end space-y-4 sm:space-y-0 sm:space-x-4"
  64. >
  65. <small>
  66. By registering, you agree to the <a href="#">Terms</a> of this service.
  67. </small>
  68. {' '}
  69. <div>
  70. <Action.ActionButton
  71. variant={ButtonVariant.FILLED}
  72. block
  73. border
  74. type={Action.ActionButtonType.SUBMIT}
  75. menuItem
  76. subtext="Registration requires activation"
  77. >
  78. Submit
  79. </Action.ActionButton>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </fieldset>
  85. </form>
  86. </div>
  87. </main>
  88. )
  89. }
  90. export default RegistrationFormPage;