From cd4df5ad3b165d8daab864acaf3b00f9a40c43c0 Mon Sep 17 00:00:00 2001 From: scanash00 Date: Wed, 29 Apr 2026 02:11:20 -0800 Subject: [PATCH] sign up and login enhancements --- web/public/locales/en/translation.json | 5 ++- web/src/components/modals/SignUpModal.tsx | 42 +++++++++++++++-------- web/src/views/auth/Login.tsx | 12 +++---- 3 files changed, 37 insertions(+), 22 deletions(-) diff --git a/web/public/locales/en/translation.json b/web/public/locales/en/translation.json index 19032e0..30c869d 100644 --- a/web/public/locales/en/translation.json +++ b/web/public/locales/en/translation.json @@ -194,6 +194,7 @@ "connecting": "Connecting…", "continue": "Continue", "createAccount": "Create New Account", + "or": "or", "termsPrefix": "By signing in, you agree to our", "termsLink": "Terms of Service", "termsAnd": "and", @@ -216,6 +217,8 @@ "back": "Back", "continue": "Continue", "invite": "Invite", + "moreOptions": "More options", + "atmosphereNote": "Already have an atmosphere account? Just sign in!", "providerError": "Could not connect to this provider. Please try again.", "customPdsError": "Couldn't connect to that PDS. Double-check the address.", "providers": { @@ -233,7 +236,7 @@ }, "eurosky": { "name": "Eurosky", - "description": "Eurosky is your European home on the Atmosphere" + "description": "Your European home on the Atmosphere" }, "selfhostedSocial": { "name": "selfhosted.social", diff --git a/web/src/components/modals/SignUpModal.tsx b/web/src/components/modals/SignUpModal.tsx index 6ec169f..44b6747 100644 --- a/web/src/components/modals/SignUpModal.tsx +++ b/web/src/components/modals/SignUpModal.tsx @@ -83,6 +83,7 @@ interface SignUpModalProps { export default function SignUpModal({ onClose }: SignUpModalProps) { const { t } = useTranslation(); const [showCustomInput, setShowCustomInput] = useState(false); + const [showMore, setShowMore] = useState(false); const [customService, setCustomService] = useState(""); const [loading, setLoading] = useState(false); const [error, setError] = useState(null); @@ -204,8 +205,15 @@ export default function SignUpModal({ onClose }: SignUpModalProps) { return (
-
-
+
+
+

+ {loading + ? t("signUp.connecting") + : showCustomInput + ? t("signUp.customPdsTitle") + : t("signUp.title")} +

-
+
{loading ? (
-

- {t("signUp.connecting")} -

) : showCustomInput ? (
-

- {t("signUp.customPdsTitle")} -

+

{t("signUp.customPdsTitle")}

{t("signUp.customPdsSubtitle")} @@ -279,9 +282,6 @@ export default function SignUpModal({ onClose }: SignUpModalProps) {

) : ( + + {!showMore && ( +
+ +

+ {t("signUp.atmosphereNote")} +

+
+ )}
)}
diff --git a/web/src/views/auth/Login.tsx b/web/src/views/auth/Login.tsx index 262ffaf..ee86c65 100644 --- a/web/src/views/auth/Login.tsx +++ b/web/src/views/auth/Login.tsx @@ -298,7 +298,7 @@ export default function Login({ initialError }: LoginProps) { @@ -320,18 +320,16 @@ export default function Login({ initialError }: LoginProps) {

-
-
- - or +
+ + {t("login.or")} -
-- 2.51.2