|
92 | 92 |
|
93 | 93 | <Container class="items-center"> |
94 | 94 | {#if !ack} |
95 | | - <div class="text-5xl font-semibold text-nowrap text-red-500">Do not use this frontend to register a new account, this is a WIP, please go to https://openshock.app</div> |
96 | | - <AbsolutelySureButton text="I acknowledge that I have read this message and that this frontend is not functional yet." onconfirm={() => (ack = true)} /> |
97 | | - {:else} |
98 | | - <form class="flex flex-col gap-2" onsubmit={handleSubmission}> |
99 | | - <div class="text-3xl font-semibold text-nowrap">Sign Up</div> |
100 | | - <UsernameInput |
101 | | - label="Username" |
102 | | - placeholder="Username" |
103 | | - bind:value={username} |
104 | | - bind:valid={usernameValid} |
| 95 | + <div class="text-5xl font-semibold text-nowrap text-red-500"> |
| 96 | + Do not use this frontend to register a new account, this is a WIP, please go to |
| 97 | + https://openshock.app |
| 98 | + </div> |
| 99 | + <AbsolutelySureButton |
| 100 | + text="I acknowledge that I have read this message and that this frontend is not functional yet." |
| 101 | + onconfirm={() => (ack = true)} |
105 | 102 | /> |
106 | | - <EmailInput label="Email" placeholder="Email" bind:value={email} bind:valid={emailValid} /> |
107 | | - <PasswordInput |
108 | | - label="Password" |
109 | | - placeholder="Password" |
110 | | - autocomplete="new-password" |
111 | | - bind:value={password} |
112 | | - bind:valid={passwordValid} |
113 | | - validate |
114 | | - showStrengthMeter |
115 | | - /> |
116 | | - <PasswordInput |
117 | | - label="Confirm Password" |
118 | | - placeholder="Confirm Password" |
119 | | - autocomplete="new-password" |
120 | | - bind:value={passwordConfirm} |
121 | | - validate={validatePasswordMatch(passwordConfirm, password)} |
122 | | - /> |
123 | | - |
124 | | - <Turnstile action="signup" bind:response={turnstileResponse} /> |
125 | | - |
126 | | - <Button type="submit" disabled={!canSubmit}>Sign Up</Button> |
127 | | - </form> |
| 103 | + {:else} |
| 104 | + <form class="flex flex-col gap-2" onsubmit={handleSubmission}> |
| 105 | + <div class="text-3xl font-semibold text-nowrap">Sign Up</div> |
| 106 | + <UsernameInput |
| 107 | + label="Username" |
| 108 | + placeholder="Username" |
| 109 | + bind:value={username} |
| 110 | + bind:valid={usernameValid} |
| 111 | + /> |
| 112 | + <EmailInput label="Email" placeholder="Email" bind:value={email} bind:valid={emailValid} /> |
| 113 | + <PasswordInput |
| 114 | + label="Password" |
| 115 | + placeholder="Password" |
| 116 | + autocomplete="new-password" |
| 117 | + bind:value={password} |
| 118 | + bind:valid={passwordValid} |
| 119 | + validate |
| 120 | + showStrengthMeter |
| 121 | + /> |
| 122 | + <PasswordInput |
| 123 | + label="Confirm Password" |
| 124 | + placeholder="Confirm Password" |
| 125 | + autocomplete="new-password" |
| 126 | + bind:value={passwordConfirm} |
| 127 | + validate={validatePasswordMatch(passwordConfirm, password)} |
| 128 | + /> |
| 129 | + |
| 130 | + <Turnstile action="signup" bind:response={turnstileResponse} /> |
| 131 | + |
| 132 | + <Button type="submit" disabled={!canSubmit}>Sign Up</Button> |
| 133 | + </form> |
128 | 134 | {/if} |
129 | 135 | </Container> |
0 commit comments