From b628f30f1b98776679bf7878aa1a9b7b89a97e88 Mon Sep 17 00:00:00 2001 From: Paulo Castellano Date: Mon, 22 Jun 2026 12:31:53 -0300 Subject: [PATCH] feat(auth): social-first register screen Emphasize Google/GitHub on the register page and hide the email form behind a 'Sign up with email' toggle that reveals it (shown directly when no social providers are configured). Even spacing across all three buttons, an optional hideDivider prop on SocialLogin, and a stronger value-led headline/subtext. --- lang/en/auth.php | 6 +- lang/es/auth.php | 6 +- lang/pt-BR/auth.php | 6 +- resources/js/components/auth/SocialLogin.vue | 11 +- resources/js/pages/auth/Register.vue | 188 +++++++++++-------- 5 files changed, 133 insertions(+), 84 deletions(-) diff --git a/lang/en/auth.php b/lang/en/auth.php index 9662c88d..18dd53c1 100644 --- a/lang/en/auth.php +++ b/lang/en/auth.php @@ -52,6 +52,7 @@ ], 'or_continue_with' => 'Or continue with', + 'or_continue_with_email' => 'Or continue with email', 'google_login' => 'Log in with Google', 'google_signup' => 'Sign up with Google', 'github_login' => 'Log in with GitHub', @@ -78,9 +79,10 @@ ], 'register' => [ - 'title' => 'Create an account', - 'description' => 'Enter your details below to create your account', + 'title' => 'Your whole social calendar, in one place', + 'description' => 'Create your account and start scheduling posts across every network.', 'page_title' => 'Register', + 'signup_with_email' => 'Sign up with email', 'name' => 'Name', 'name_placeholder' => 'Full name', 'email' => 'Email address', diff --git a/lang/es/auth.php b/lang/es/auth.php index 383fb2ba..4acdad96 100644 --- a/lang/es/auth.php +++ b/lang/es/auth.php @@ -40,6 +40,7 @@ ], 'or_continue_with' => 'O continuar con', + 'or_continue_with_email' => 'O continúa con correo', 'google_login' => 'Iniciar sesión con Google', 'google_signup' => 'Registrarse con Google', 'github_login' => 'Iniciar sesión con GitHub', @@ -66,9 +67,10 @@ ], 'register' => [ - 'title' => 'Crear una cuenta', - 'description' => 'Introduce tus datos para crear tu cuenta', + 'title' => 'Todo tu calendario social en un solo lugar', + 'description' => 'Crea tu cuenta y empieza a programar publicaciones en todas las redes.', 'page_title' => 'Registro', + 'signup_with_email' => 'Registrarse con correo', 'name' => 'Nombre', 'name_placeholder' => 'Nombre completo', 'email' => 'Correo electrónico', diff --git a/lang/pt-BR/auth.php b/lang/pt-BR/auth.php index 192cbe0b..6ce4dcb4 100644 --- a/lang/pt-BR/auth.php +++ b/lang/pt-BR/auth.php @@ -52,6 +52,7 @@ ], 'or_continue_with' => 'Ou continue com', + 'or_continue_with_email' => 'Ou continue com e-mail', 'google_login' => 'Entrar com Google', 'google_signup' => 'Cadastrar com Google', 'github_login' => 'Entrar com GitHub', @@ -78,9 +79,10 @@ ], 'register' => [ - 'title' => 'Criar uma conta', - 'description' => 'Digite seus dados abaixo para criar sua conta', + 'title' => 'Todo o seu calendário social num só lugar', + 'description' => 'Crie sua conta e comece a agendar posts em todas as redes.', 'page_title' => 'Cadastro', + 'signup_with_email' => 'Cadastrar com e-mail', 'name' => 'Nome', 'name_placeholder' => 'Nome completo', 'email' => 'Endereço de email', diff --git a/resources/js/components/auth/SocialLogin.vue b/resources/js/components/auth/SocialLogin.vue index ca396868..b6d196e6 100644 --- a/resources/js/components/auth/SocialLogin.vue +++ b/resources/js/components/auth/SocialLogin.vue @@ -6,9 +6,13 @@ import { Button } from '@/components/ui/button'; import { redirect as githubRedirect } from '@/routes/auth/github'; import { redirect as googleRedirect } from '@/routes/auth/google'; -defineProps<{ - mode: 'login' | 'signup'; -}>(); +withDefaults( + defineProps<{ + mode: 'login' | 'signup'; + hideDivider?: boolean; + }>(), + { hideDivider: false }, +); const page = usePage(); const googleEnabled = computed(() => Boolean(page.props.googleAuthEnabled)); @@ -31,6 +35,7 @@ const hasSocial = computed(() => googleEnabled.value || githubEnabled.value);
{{ $t('auth.or_continue_with') }} diff --git a/resources/js/pages/auth/Register.vue b/resources/js/pages/auth/Register.vue index 9d115483..fe57097b 100644 --- a/resources/js/pages/auth/Register.vue +++ b/resources/js/pages/auth/Register.vue @@ -1,6 +1,6 @@