Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Enhance login and signup pages with improved UI elements

Bill Yang3a317f358a67
diff --git a/client/src/app/login/page.tsx b/client/src/app/login/page.tsx
index b6de606a4..d25b3d8ee 100644
--- a/client/src/app/login/page.tsx
+++ b/client/src/app/login/page.tsx
@@ -88,8 +88,10 @@ export default function Page() {
<div className="flex flex-col gap-4">
<SocialButtons onError={setError} showDivider={false} />
- <div className="relative flex justify-center text-xs uppercase">
- <span className="text-muted-foreground">Or continue with email</span>
+ <div className="relative flex items-center text-xs uppercase">
+ <div className="flex-1 border-t border-neutral-200 dark:border-neutral-800" />
+ <span className="px-3 text-muted-foreground">Or continue with email</span>
+ <div className="flex-1 border-t border-neutral-200 dark:border-neutral-800" />
</div>
<form onSubmit={handleSubmit}>
@@ -143,7 +145,10 @@ export default function Page() {
{(!configs?.disableSignup || !isLoadingConfigs) && (
<div className="text-center text-sm">
Don't have an account?{" "}
- <Link href="/signup" className="underline underline-offset-4 hover:text-emerald-400 transition-colors duration-300">
+ <Link
+ href="/signup"
+ className="underline underline-offset-4 hover:text-emerald-400 transition-colors duration-300"
+ >
Sign up
</Link>
</div>
diff --git a/client/src/app/signup/page.tsx b/client/src/app/signup/page.tsx
index 35587385c..baa4e4323 100644
--- a/client/src/app/signup/page.tsx
+++ b/client/src/app/signup/page.tsx
@@ -196,17 +196,14 @@ export default function SignupPage() {
<h2 className="text-2xl font-semibold mb-4">Signup</h2>
<div className="space-y-4">
{IS_CLOUD && (
- <SocialButtons
- onError={setError}
- callbackURL="/signup?step=2"
- mode="signup"
- showDivider={false}
- />
+ <SocialButtons onError={setError} callbackURL="/signup?step=2" mode="signup" showDivider={false} />
)}
{IS_CLOUD && (
- <div className="relative flex justify-center text-xs uppercase">
- <span className="text-muted-foreground">Or continue with email</span>
+ <div className="relative flex items-center text-xs uppercase">
+ <div className="flex-1 border-t border-neutral-200 dark:border-neutral-800" />
+ <span className="px-3 text-muted-foreground">Or continue with email</span>
+ <div className="flex-1 border-t border-neutral-200 dark:border-neutral-800" />
</div>
)}