Skip to content

Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.

feat(auth): redesign the sign-in, sign-up and password pages (#995)

Gökhan Geyikfd32ecdc9313
diff --git a/web/messages/en.json b/web/messages/en.json
index 14ea018e1..e3170044b 100644
--- a/web/messages/en.json
+++ b/web/messages/en.json
@@ -1513,8 +1513,11 @@
"auth": {
"signIn": "Sign in",
"signUp": "Sign up",
+ "signInSubtitle": "Welcome back! Continue to your workspace.",
+ "signUpSubtitle": "Create your account to start tracking your brand across AI platforms.",
"signOut": "Sign out",
"email": "Email",
+ "workEmail": "Work email",
"password": "Password",
"forgotPassword": "Forgot password?",
"noAccount": "Don't have an account?",
@@ -1524,6 +1527,7 @@
"signingUp": "Creating account...",
"emailPlaceholder": "[email protected]",
"passwordPlaceholder": "••••••••",
+ "passwordRuleLength": "At least 8 characters",
"fullName": "Full name",
"fullNamePlaceholder": "John Doe",
"magicLink": "Send magic link",
@@ -1544,7 +1548,7 @@
"updatingPassword": "Updating...",
"passwordUpdated": "Your password has been updated. You can now sign in.",
"orContinueWith": "Or continue with",
- "termsAgreement": "By continuing, you agree to our",
+ "termsAgreement": "By creating an account, you agree to our",
"termsOfService": "Terms of Service",
"and": "and",
"privacyPolicy": "Privacy Policy",
@@ -1557,6 +1561,32 @@
"generic": "An error occurred. Please try again.",
"emailNotConfirmed": "Please verify your email address first. Check your inbox for the confirmation link.",
"signOutError": "Failed to sign out. Please try again."
+ },
+ "pitch": {
+ "eyebrow": "AI visibility platform",
+ "titleLead": "Improve AI Visibility and",
+ "titleAccent": "Drive Growth.",
+ "subtitle": "Track your brand's presence across ChatGPT, Google AI, Perplexity and more.",
+ "features": {
+ "monitor": {
+ "title": "Monitor brand mentions and citations",
+ "body": "See how and where your brand appears across AI search."
+ },
+ "discover": {
+ "title": "Discover new opportunities",
+ "body": "Find high-potential topics and prompts to grow visibility."
+ },
+ "act": {
+ "title": "Turn insights into growth strategies",
+ "body": "Prioritize actions and track your impact over time."
+ }
+ }
+ },
+ "footer": {
+ "openSource": "Open source under",
+ "mitLicense": "MIT license",
+ "terms": "Terms",
+ "privacy": "Privacy"
}
},
"dashboard": {
diff --git a/web/src/app/[locale]/(marketing)/forgot-password/page.tsx b/web/src/app/[locale]/(marketing)/forgot-password/page.tsx
index c6a82abf0..39c6f2cf8 100644
--- a/web/src/app/[locale]/(marketing)/forgot-password/page.tsx
+++ b/web/src/app/[locale]/(marketing)/forgot-password/page.tsx
@@ -1,26 +1,15 @@
import { useTranslations } from 'next-intl';
import { ForgotPasswordForm } from '@/components/auth/forgot-password-form';
+import { AuthCard, AuthShell } from '@/components/auth/auth-shell';
export default function ForgotPasswordPage() {
- return (
- <div className="flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
- <div className="flex w-full max-w-sm flex-col gap-6">
- <ForgotPasswordCard />
- </div>
- </div>
- );
-}
-
-function ForgotPasswordCard() {
const t = useTranslations('auth');
return (
- <div className="rounded-xl border bg-card p-6 shadow-sm">
- <div className="mb-6 text-center">
- <h1 className="text-2xl font-semibold tracking-tight">{t('forgotPasswordTitle')}</h1>
- <p className="mt-1 text-sm text-muted-foreground">{t('forgotPasswordSubtitle')}</p>
- </div>
- <ForgotPasswordForm />
- </div>
+ <AuthShell cta={{ href: '/sign-in', label: t('signIn') }}>
+ <AuthCard title={t('forgotPasswordTitle')} subtitle={t('forgotPasswordSubtitle')}>
+ <ForgotPasswordForm />
+ </AuthCard>
+ </AuthShell>
);
}
diff --git a/web/src/app/[locale]/(marketing)/layout.tsx b/web/src/app/[locale]/(marketing)/layout.tsx
index 5a1a44975..6ecf65ff2 100644
--- a/web/src/app/[locale]/(marketing)/layout.tsx
+++ b/web/src/app/[locale]/(marketing)/layout.tsx
@@ -1,12 +1,5 @@
-import { MarketingHeader } from '@/components/marketing/marketing-header';
-import { MarketingFooter } from '@/components/marketing/marketing-footer';
-
+// Each auth page renders its own frame (AuthShell), since the header's
+// button points at a different page on each.
export default function MarketingLayout({ children }: { children: React.ReactNode }) {
- return (
- <div className="flex min-h-screen flex-col">
- <MarketingHeader />
- <main className="flex-1">{children}</main>
- <MarketingFooter />
- </div>
- );
+ return children;
}
diff --git a/web/src/app/[locale]/(marketing)/reset-password/page.tsx b/web/src/app/[locale]/(marketing)/reset-password/page.tsx
index b31e184df..e4ba93d9e 100644
--- a/web/src/app/[locale]/(marketing)/reset-password/page.tsx
+++ b/web/src/app/[locale]/(marketing)/reset-password/page.tsx
@@ -1,26 +1,15 @@
import { useTranslations } from 'next-intl';
import { ResetPasswordForm } from '@/components/auth/reset-password-form';
+import { AuthCard, AuthShell } from '@/components/auth/auth-shell';
export default function ResetPasswordPage() {
- return (
- <div className="flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
- <div className="flex w-full max-w-sm flex-col gap-6">
- <ResetPasswordCard />
- </div>
- </div>
- );
-}
-
-function ResetPasswordCard() {
const t = useTranslations('auth');
return (
- <div className="rounded-xl border bg-card p-6 shadow-sm">
- <div className="mb-6 text-center">
- <h1 className="text-2xl font-semibold tracking-tight">{t('resetPasswordTitle')}</h1>
- <p className="mt-1 text-sm text-muted-foreground">{t('resetPasswordSubtitle')}</p>
- </div>
- <ResetPasswordForm />
- </div>
+ <AuthShell cta={{ href: '/sign-in', label: t('signIn') }}>
+ <AuthCard title={t('resetPasswordTitle')} subtitle={t('resetPasswordSubtitle')}>
+ <ResetPasswordForm />
+ </AuthCard>
+ </AuthShell>
);
}
diff --git a/web/src/app/[locale]/(marketing)/sign-in/page.tsx b/web/src/app/[locale]/(marketing)/sign-in/page.tsx
index 66b8c9c16..8dfff1b1e 100644
--- a/web/src/app/[locale]/(marketing)/sign-in/page.tsx
+++ b/web/src/app/[locale]/(marketing)/sign-in/page.tsx
@@ -1,6 +1,6 @@
import { useTranslations } from 'next-intl';
-import { Link } from '@/i18n/navigation';
import { SignInForm } from '@/components/auth/sign-in-form';
+import { AuthCard, AuthShell } from '@/components/auth/auth-shell';
import { MailCheck } from 'lucide-react';
export default async function SignInPage({
@@ -11,13 +11,21 @@ export default async function SignInPage({
const params = await searchParams;
const showVerificationBanner = params.verified === 'pending';
+ return <SignInView showVerificationBanner={showVerificationBanner} />;
+}
+
+function SignInView({ showVerificationBanner }: { showVerificationBanner: boolean }) {
+ const t = useTranslations('auth');
+
return (
- <div className="flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
- <div className="flex w-full max-w-sm flex-col gap-6">
+ <AuthShell prompt={t('noAccount')} cta={{ href: '/sign-up', label: t('createAccount') }}>
+ <div className="flex flex-col gap-6">
{showVerificationBanner && <VerificationBanner />}
- <SignInCard />
+ <AuthCard title={t('signIn')} subtitle={t('signInSubtitle')}>
+ <SignInForm />
+ </AuthCard>
</div>
- </div>
+ </AuthShell>
);
}
@@ -31,25 +39,3 @@ function VerificationBanner() {
</div>
);
}
-
-function SignInCard() {
- const t = useTranslations('auth');
-
- return (
- <div className="rounded-xl border bg-card p-6 shadow-sm">
- <div className="mb-6 text-center">
- <h1 className="text-2xl font-semibold tracking-tight">{t('signIn')}</h1>
- <p className="mt-1 text-sm text-muted-foreground">
- {t('noAccount')}{' '}
- <Link
- href="/sign-up"
- className="font-medium text-primary underline-offset-4 hover:underline"
- >
- {t('createAccount')}
- </Link>
- </p>
- </div>
- <SignInForm />
- </div>
- );
-}
diff --git a/web/src/app/[locale]/(marketing)/sign-up/page.tsx b/web/src/app/[locale]/(marketing)/sign-up/page.tsx
index 8299f8dee..15c20b35a 100644
--- a/web/src/app/[locale]/(marketing)/sign-up/page.tsx
+++ b/web/src/app/[locale]/(marketing)/sign-up/page.tsx
@@ -1,35 +1,15 @@
import { useTranslations } from 'next-intl';
-import { Link } from '@/i18n/navigation';
import { SignUpForm } from '@/components/auth/sign-up-form';
+import { AuthCard, AuthShell } from '@/components/auth/auth-shell';
export default function SignUpPage() {
- return (
- <div className="flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
- <div className="flex w-full max-w-sm flex-col gap-6">
- <SignUpCard />
- </div>
- </div>
- );
-}
-
-function SignUpCard() {
const t = useTranslations('auth');
return (
- <div className="rounded-xl border bg-card p-6 shadow-sm">
- <div className="mb-6 text-center">
- <h1 className="text-2xl font-semibold tracking-tight">{t('signUp')}</h1>
- <p className="mt-1 text-sm text-muted-foreground">
- {t('hasAccount')}{' '}
- <Link
- href="/sign-in"
- className="font-medium text-primary underline-offset-4 hover:underline"
- >
- {t('signIn')}
- </Link>
- </p>
- </div>
- <SignUpForm />
- </div>
+ <AuthShell prompt={t('hasAccount')} cta={{ href: '/sign-in', label: t('signIn') }}>
+ <AuthCard title={t('signUp')} subtitle={t('signUpSubtitle')}>
+ <SignUpForm />
+ </AuthCard>
+ </AuthShell>
);
}
diff --git a/web/src/components/auth/auth-shell.tsx b/web/src/components/auth/auth-shell.tsx
new file mode 100644
index 000000000..e67b71b64
--- /dev/null
+++ b/web/src/components/auth/auth-shell.tsx
@@ -0,0 +1,195 @@
+import Image from 'next/image';
+import { useTranslations } from 'next-intl';
+import { BarChart3, Compass, Zap } from 'lucide-react';
+import { Link } from '@/i18n/navigation';
+import { buttonVariants } from '@/components/ui/button-variants';
+import { siteConfig } from '@/config/site';
+import { cn } from '@/lib/utils';
+
+/**
+ * The frame every auth page shares: a header with the switch to the other
+ * auth page, the product pitch on the left (wide screens only) and the page's
+ * card on the right.
+ */
+export function AuthShell({
+ prompt,
+ cta,
+ children,
+}: {
+ /** The question beside the header button, e.g. "Don't have an account?" */
+ prompt?: string;
+ cta: { href: '/sign-in' | '/sign-up'; label: string };
+ children: React.ReactNode;
+}) {
+ const t = useTranslations('auth');
+
+ return (
+ <div className="relative flex min-h-svh flex-col overflow-hidden bg-[#f7f5f1] dark:bg-background">
+ <Backdrop />
+
+ <header className="relative z-10 mx-auto flex w-full max-w-7xl items-center justify-between gap-4 px-4 py-6 sm:px-8">
+ <a href={siteConfig.url} className="flex items-center gap-2.5">
+ <Image
+ src="/logo_light.svg"
+ alt=""
+ width={36}
+ height={36}
+ className="h-9 w-9 shrink-0 dark:hidden"
+ priority
+ />
+ <Image
+ src="/logo_dark.svg"
+ alt=""
+ width={36}
+ height={36}
+ className="hidden h-9 w-9 shrink-0 dark:block"
+ priority
+ />
+ <span className="text-2xl font-semibold tracking-tight">{siteConfig.name}</span>
+ </a>
+
+ <div className="flex items-center gap-4">
+ {prompt && (
+ <span className="hidden text-sm text-muted-foreground sm:inline">{prompt}</span>
+ )}
+ <Link href={cta.href} className={buttonVariants({ className: 'h-10 px-5' })}>
+ {cta.label}
+ </Link>
+ </div>
+ </header>
+
+ <main className="relative z-10 mx-auto grid w-full max-w-7xl flex-1 items-center gap-12 px-4 py-8 sm:px-8 lg:grid-cols-2 lg:gap-16">
+ <Pitch />
+ <div className="mx-auto w-full max-w-lg">{children}</div>
+ </main>
+
+ <footer className="relative z-10 mx-auto flex w-full max-w-7xl flex-col items-center justify-between gap-3 px-4 py-6 text-sm text-muted-foreground sm:flex-row sm:px-8">
+ <p>
+ &copy; {new Date().getFullYear()} {siteConfig.name}. {t('footer.openSource')}{' '}
+ <a
+ href="https://github.com/ansvisor/ansvisor/blob/main/LICENSE"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="transition-colors hover:text-foreground"
+ >
+ {t('footer.mitLicense')}
+ </a>
+ .
+ </p>
+ <div className="flex items-center gap-8">
+ <a
+ href={siteConfig.legal.terms}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="transition-colors hover:text-foreground"
+ >
+ {t('footer.terms')}
+ </a>
+ <a
+ href={siteConfig.legal.privacy}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="transition-colors hover:text-foreground"
+ >
+ {t('footer.privacy')}
+ </a>
+ </div>
+ </footer>
+ </div>
+ );
+}
+
+/** The white card holding a page's form. */
+export function AuthCard({
+ title,
+ subtitle,
+ children,
+}: {
+ title: string;
+ subtitle?: string;
+ children: React.ReactNode;
+}) {
+ return (
+ <div className="rounded-2xl border border-black/5 bg-card p-6 shadow-[0_12px_40px_rgba(60,45,30,0.06)] sm:p-10 dark:border-border dark:shadow-none">
+ <div className="mb-8 text-center">
+ <h1 className="text-3xl font-semibold tracking-tight">{title}</h1>
+ {subtitle && <p className="mt-2 text-muted-foreground">{subtitle}</p>}
+ </div>
+ {children}
+ </div>
+ );
+}
+
+const FEATURES = [
+ { key: 'monitor', icon: BarChart3 },
+ { key: 'discover', icon: Compass },
+ { key: 'act', icon: Zap },
+] as const;
+
+function Pitch() {
+ const t = useTranslations('auth.pitch');
+
+ return (
+ <section className="hidden lg:block">
+ <p className="text-xs font-medium uppercase tracking-[0.2em] text-muted-foreground">
+ {t('eyebrow')}
+ </p>
+ <h2 className="mt-6 text-6xl font-semibold leading-[1.05] tracking-tight">
+ {t('titleLead')}{' '}
+ <span className="relative inline-block">
+ {t('titleAccent')}
+ <svg
+ aria-hidden
+ viewBox="0 0 300 12"
+ preserveAspectRatio="none"
+ className="absolute -bottom-3 left-0 h-3 w-full text-[#e4d8c6] dark:text-white/15"
+ >
+ <path
+ d="M2 8 C 80 2, 200 2, 298 6"
+ stroke="currentColor"
+ strokeWidth="6"
+ strokeLinecap="round"
+ fill="none"
+ />
+ </svg>
+ </span>
+ </h2>
+ <p className="mt-10 max-w-md text-2xl leading-snug text-muted-foreground">{t('subtitle')}</p>
+
+ <ul className="mt-10 space-y-7">
+ {FEATURES.map(({ key, icon: Icon }) => (
+ <li key={key} className="flex gap-6">
+ <span className="flex h-16 w-16 shrink-0 items-center justify-center rounded-2xl bg-[#efe9df] text-[#3d2f22] dark:bg-white/5 dark:text-foreground">
+ <Icon className="h-6 w-6" />
+ </span>
+ <div className="max-w-xs">
+ <p className="text-lg font-medium leading-snug">{t(`features.${key}.title`)}</p>
+ <p className="mt-1 text-muted-foreground">{t(`features.${key}.body`)}</p>
+ </div>
+ </li>
+ ))}
+ </ul>
+ </section>
+ );
+}
+
+/** Soft circles and a dot grid behind the page; decoration only. */
+function Backdrop() {
+ const circle = 'absolute rounded-full bg-[#efebe4] dark:bg-white/[0.03]';
+ const dots = cn(
+ 'absolute hidden lg:block',
+ 'bg-[radial-gradient(circle,rgba(0,0,0,0.12)_1px,transparent_1.5px)] bg-[length:16px_16px]',
+ 'dark:bg-[radial-gradient(circle,rgba(255,255,255,0.12)_1px,transparent_1.5px)]',
+ );
+
+ return (
+ <div aria-hidden className="pointer-events-none absolute inset-0">
+ <div className={cn(circle, '-left-64 top-16 h-[28rem] w-[28rem]')} />
+ <div className={cn(circle, '-left-72 bottom-[-12rem] h-[30rem] w-[30rem]')} />
+ <div className={cn(circle, 'bottom-[-26rem] left-1/3 h-[40rem] w-[40rem]')} />
+ <div className={cn(circle, '-right-56 bottom-[-6rem] h-[34rem] w-[34rem]')} />
+ <div className={cn(dots, 'left-[44%] top-48 h-28 w-28')} />
+ <div className={cn(dots, 'bottom-56 right-4 h-28 w-20')} />
+ </div>
+ );
+}
diff --git a/web/src/components/auth/forgot-password-form.tsx b/web/src/components/auth/forgot-password-form.tsx
index df6ad8d1f..9c67b5d72 100644
--- a/web/src/components/auth/forgot-password-form.tsx
+++ b/web/src/components/auth/forgot-password-form.tsx
@@ -52,7 +52,7 @@ export function ForgotPasswordForm() {
return (
<form onSubmit={handleSubmit} className="space-y-4">
<div className="space-y-2">
- <Label htmlFor="email">{t('email')}</Label>
+ <Label htmlFor="email">{t('workEmail')}</Label>
<Input
id="email"
type="email"
diff --git a/web/src/components/auth/or-divider.tsx b/web/src/components/auth/or-divider.tsx
new file mode 100644
index 000000000..f50959dd1
--- /dev/null
+++ b/web/src/components/auth/or-divider.tsx
@@ -0,0 +1,12 @@
+import { Separator } from '@/components/ui/separator';
+
+/** A centred label between two rules, e.g. "Or continue with". */
+export function OrDivider({ label }: { label: string }) {
+ return (
+ <div className="flex items-center gap-4">
+ <Separator className="flex-1" />
+ <span className="text-xs uppercase tracking-wide text-muted-foreground">{label}</span>
+ <Separator className="flex-1" />
+ </div>
+ );
+}
diff --git a/web/src/components/auth/sign-in-form.tsx b/web/src/components/auth/sign-in-form.tsx
index 3b35bd549..d66eafe36 100644
--- a/web/src/components/auth/sign-in-form.tsx
+++ b/web/src/components/auth/sign-in-form.tsx
@@ -10,9 +10,9 @@ import { Input } from '@/components/ui/input';
import { PasswordInput } from '@/components/ui/password-input';
import { Label } from '@/components/ui/label';
import { toast } from 'sonner';
-import { Loader2 } from 'lucide-react';
+import { ArrowRight, Loader2 } from 'lucide-react';
import { OAuthButtons } from '@/components/auth/oauth-buttons';
-import { Separator } from '@/components/ui/separator';
+import { OrDivider } from '@/components/auth/or-divider';
import { track } from '@/lib/analytics';
export function SignInForm() {
@@ -57,21 +57,10 @@ export function SignInForm() {
}
return (
- <div className="space-y-4">
- <OAuthButtons />
-
- <div className="relative">
- <div className="absolute inset-0 flex items-center">
- <Separator className="w-full" />
- </div>
- <div className="relative flex justify-center text-xs uppercase">
- <span className="bg-card px-2 text-muted-foreground">{t('orContinueWith')}</span>
- </div>
- </div>
-
- <form onSubmit={handleSubmit} className="space-y-4">
+ <div className="space-y-6">
+ <form onSubmit={handleSubmit} className="space-y-5">
<div className="space-y-2">
- <Label htmlFor="email">{t('email')}</Label>
+ <Label htmlFor="email">{t('workEmail')}</Label>
<Input
id="email"
type="email"
@@ -81,6 +70,7 @@ export function SignInForm() {
required
autoComplete="email"
disabled={isLoading}
+ className="h-11"
/>
</div>
@@ -102,20 +92,27 @@ export function SignInForm() {
required
autoComplete="current-password"
disabled={isLoading}
+ className="h-11"
/>
</div>
- <Button type="submit" className="w-full" disabled={isLoading}>
+ <Button type="submit" className="h-11 w-full text-base" disabled={isLoading}>
{isLoading ? (
<>
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
{t('signingIn')}
</>
) : (
- t('signIn')
+ <>
+ {t('signIn')}
+ <ArrowRight className="h-4 w-4" />
+ </>
)}
</Button>
</form>
+
+ <OrDivider label={t('orContinueWith')} />
+ <OAuthButtons />
</div>
);
}
diff --git a/web/src/components/auth/sign-up-form.tsx b/web/src/components/auth/sign-up-form.tsx
index 70fe34deb..e22e3d45a 100644
--- a/web/src/components/auth/sign-up-form.tsx
+++ b/web/src/components/auth/sign-up-form.tsx
@@ -10,11 +10,12 @@ import { Input } from '@/components/ui/input';
import { PasswordInput } from '@/components/ui/password-input';
import { Label } from '@/components/ui/label';
import { toast } from 'sonner';
-import { Loader2 } from 'lucide-react';
+import { ArrowRight, Check, Loader2 } from 'lucide-react';
import { OAuthButtons } from '@/components/auth/oauth-buttons';
-import { Separator } from '@/components/ui/separator';
+import { OrDivider } from '@/components/auth/or-divider';
import { siteConfig } from '@/config/site';
import { track } from '@/lib/analytics';
+import { cn } from '@/lib/utils';
export function SignUpForm() {
const t = useTranslations('auth');
@@ -62,19 +63,8 @@ export function SignUpForm() {
}
return (
- <div className="space-y-4">
- <OAuthButtons />
-
- <div className="relative">
- <div className="absolute inset-0 flex items-center">
- <Separator className="w-full" />
- </div>
- <div className="relative flex justify-center text-xs uppercase">
- <span className="bg-card px-2 text-muted-foreground">{t('orContinueWith')}</span>
- </div>
- </div>
-
- <form onSubmit={handleSubmit} className="space-y-4">
+ <div className="space-y-6">
+ <form onSubmit={handleSubmit} className="space-y-5">
<div className="space-y-2">
<Label htmlFor="fullName">{t('fullName')}</Label>
<Input
@@ -86,11 +76,12 @@ export function SignUpForm() {
required
autoComplete="name"
disabled={isLoading}
+ className="h-11"
/>
</div>
<div className="space-y-2">
- <Label htmlFor="email">{t('email')}</Label>
+ <Label htmlFor="email">{t('workEmail')}</Label>
<Input
id="email"
type="email"
@@ -100,6 +91,7 @@ export function SignUpForm() {
required
autoComplete="email"
disabled={isLoading || Boolean(invitedEmail)}
+ className="h-11"
/>
</div>
@@ -113,42 +105,63 @@ export function SignUpForm() {
required
autoComplete="new-password"
disabled={isLoading}
+ className="h-11"
/>
+ <p
+ className={cn(
+ 'flex items-center gap-2 text-sm transition-colors',
+ password.length >= 8 ? 'text-muted-foreground' : 'text-muted-foreground/70',
+ )}
+ >
+ <Check
+ className={cn(
+ 'h-4 w-4',
+ password.length >= 8 ? 'text-emerald-500' : 'text-muted-foreground/40',
+ )}
+ />
+ {t('passwordRuleLength')}
+ </p>
</div>
- <Button type="submit" className="w-full" disabled={isLoading}>
+ <Button type="submit" className="h-11 w-full text-base" disabled={isLoading}>
{isLoading ? (
<>
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
{t('signingUp')}
</>
) : (
- t('createAccount')
+ <>
+ {t('createAccount')}
+ <ArrowRight className="h-4 w-4" />
+ </>
)}
</Button>
-
- <p className="text-center text-xs text-muted-foreground">
- {t('termsAgreement')}{' '}
- <a
- href={siteConfig.legal.terms}
- target="_blank"
- rel="noopener noreferrer"
- className="underline underline-offset-4 hover:text-primary"
- >
- {t('termsOfService')}
- </a>{' '}
- {t('and')}{' '}
- <a
- href={siteConfig.legal.privacy}
- target="_blank"
- rel="noopener noreferrer"
- className="underline underline-offset-4 hover:text-primary"
- >
- {t('privacyPolicy')}
- </a>
- .
- </p>
</form>
+
+ <OrDivider label={t('orContinueWith')} />
+ <OAuthButtons />
+
+ <p className="text-center text-sm text-muted-foreground">
+ {t('termsAgreement')}{' '}
+ <a
+ href={siteConfig.legal.terms}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="underline-offset-4 hover:text-foreground hover:underline"
+ >
+ {t('termsOfService')}
+ </a>{' '}
+ {t('and')}{' '}
+ <a
+ href={siteConfig.legal.privacy}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="underline-offset-4 hover:text-foreground hover:underline"
+ >
+ {t('privacyPolicy')}
+ </a>
+ .
+ </p>
</div>
);
}
diff --git a/web/src/components/marketing/marketing-footer.tsx b/web/src/components/marketing/marketing-footer.tsx
deleted file mode 100644
index d0e931a6f..000000000
--- a/web/src/components/marketing/marketing-footer.tsx
+++ /dev/null
@@ -1,48 +0,0 @@
-import { siteConfig } from '@/config/site';
-
-export function MarketingFooter() {
- return (
- <footer className="border-t py-8">
- <div className="container flex flex-col items-center justify-between gap-4 md:flex-row">
- <p className="text-sm text-muted-foreground">
- &copy; {new Date().getFullYear()} {siteConfig.name}. Open source under{' '}
- <a
- href="https://github.com/ansvisor/ansvisor/blob/main/LICENSE"
- target="_blank"
- rel="noopener noreferrer"
- className="underline hover:text-foreground transition-colors"
- >
- MIT license
- </a>
- .
- </p>
- <div className="flex items-center gap-4 text-sm text-muted-foreground">
- <a
- href={siteConfig.legal.terms}
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-foreground transition-colors"
- >
- Terms
- </a>
- <a
- href={siteConfig.legal.privacy}
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-foreground transition-colors"
- >
- Privacy
- </a>
- <a
- href={siteConfig.links.github}
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-foreground transition-colors"
- >
- GitHub
- </a>
- </div>
- </div>
- </footer>
- );
-}
diff --git a/web/src/components/marketing/marketing-header.tsx b/web/src/components/marketing/marketing-header.tsx
deleted file mode 100644
index 9c1ee6f12..000000000
--- a/web/src/components/marketing/marketing-header.tsx
+++ /dev/null
@@ -1,46 +0,0 @@
-import Image from 'next/image';
-import { useTranslations } from 'next-intl';
-import { Link } from '@/i18n/navigation';
-import { Button } from '@/components/ui/button';
-import { siteConfig } from '@/config/site';
-
-export function MarketingHeader() {
- const t = useTranslations('auth');
-
- return (
- <header className="sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
- <div className="container flex h-16 items-center justify-between">
- <a href={siteConfig.url} className="flex items-center gap-2">
- <Image
- src="/logo_light.svg"
- alt=""
- width={28}
- height={28}
- className="h-7 w-7 shrink-0 dark:hidden"
- priority
- />
- <Image
- src="/logo_dark.svg"
- alt=""
- width={28}
- height={28}
- className="hidden h-7 w-7 shrink-0 dark:block"
- priority
- />
- <span className="text-xl font-bold tracking-tight">{siteConfig.name}</span>
- </a>
-
- <div className="flex items-center gap-3">
- <Link href="/sign-in">
- <Button variant="ghost" size="sm">
- {t('signIn')}
- </Button>
- </Link>
- <Link href="/sign-up">
- <Button size="sm">{t('createAccount')}</Button>
- </Link>
- </div>
- </div>
- </header>
- );
-}