From f40f3dcf70df4183343ee3e49150c590447f11b6 Mon Sep 17 00:00:00 2001 From: BFlat Date: Mon, 20 Nov 2023 21:40:53 +0700 Subject: [PATCH] sign up form styling --- .../src/v2/view/pages/signup/SignupPage.tsx | 220 +++++++++--------- 1 file changed, 110 insertions(+), 110 deletions(-) diff --git a/packages/fakeyou.com/src/v2/view/pages/signup/SignupPage.tsx b/packages/fakeyou.com/src/v2/view/pages/signup/SignupPage.tsx index e8a9724b2d..b552cb8d40 100644 --- a/packages/fakeyou.com/src/v2/view/pages/signup/SignupPage.tsx +++ b/packages/fakeyou.com/src/v2/view/pages/signup/SignupPage.tsx @@ -17,6 +17,9 @@ import { WebUrl } from "../../../../common/WebUrl"; import { BeginStripeCheckoutFlow } from "../../../../common/BeginStripeCheckoutFlow"; import { usePrefixedDocumentTitle } from "../../../../common/UsePrefixedDocumentTitle"; import { PosthogClient } from "@storyteller/components/src/analytics/PosthogClient"; +import Container from "components/common/Container"; +import PageHeader from "components/layout/PageHeader"; +import Panel from "components/common/Panel"; enum FieldTriState { EMPTY_FALSE, @@ -185,10 +188,10 @@ function SignupPage(props: Props) { Analytics.accountSignupAttempt(); if ( - (usernameValid !== FieldTriState.TRUE) || - (emailValid !== FieldTriState.TRUE) || - (passwordValid !== FieldTriState.TRUE) || - (passwordConfirmationValid !== FieldTriState.TRUE) + usernameValid !== FieldTriState.TRUE || + emailValid !== FieldTriState.TRUE || + passwordValid !== FieldTriState.TRUE || + passwordConfirmationValid !== FieldTriState.TRUE ) { return false; } @@ -346,118 +349,115 @@ function SignupPage(props: Props) { } return ( -
-
-
-

- {t("account.SignUpPage.signUpTitle")} -

-
-
-
-
- -
- - - - -
-

{usernameInvalidReason}

-
-
- -
- - - - -
-

{emailInvalidReason}

-
-
- -
- - - - -
-

{passwordInvalidReason}

-
-
- -
- - - - -
-

- {passwordConfirmationInvalidReason} -

-
- {/*
+ + + + + +
+
+ +
+ + + + +
+

{usernameInvalidReason}

+
+
+ +
+ + + + +
+

{emailInvalidReason}

+
+
+ +
+ + + + +
+

{passwordInvalidReason}

+
+
+ +
+ + + + +
+

+ {passwordConfirmationInvalidReason} +

+
+ {/*
Remember your password! We don't have password reset currently, and it'll be a few more weeks before it's added (there are more important features to work on). If you lose your password, please let us know in Discord.
*/} - -

- - Already have an account?{" "} - Log in instead. - -

-
- + +

+ + Already have an account?{" "} + Log in instead. + +

-
-
-
+ + + ); }