From 7927762db3fff5177a29365c64aefb7df3997ef6 Mon Sep 17 00:00:00 2001 From: Joshua Tuddenham Date: Sat, 2 Nov 2024 11:25:23 +0000 Subject: [PATCH] style: updated login screen, mobile responsive --- src/components/auth/LoginForm.tsx | 43 +++++++++++++++---- src/components/ui/social/SocialLinks.tsx | 2 +- src/pages/Login.tsx | 54 ++++++++++++------------ 3 files changed, 64 insertions(+), 35 deletions(-) diff --git a/src/components/auth/LoginForm.tsx b/src/components/auth/LoginForm.tsx index 1df83ad..69d0205 100644 --- a/src/components/auth/LoginForm.tsx +++ b/src/components/auth/LoginForm.tsx @@ -16,12 +16,15 @@ export function LoginForm() { navigate('/home', { replace: true }); } }, [session, navigate]); + return ( - - - Welcome back - - Sign in to access your trips + + + + Welcome + + + Plan and track your adventures @@ -35,12 +38,36 @@ export function LoginForm() { colors: { brand: '#4A9F76', brandAccent: '#3d8862', + defaultButtonBackground: 'rgba(255, 255, 255, 0.15)', + defaultButtonBackgroundHover: 'rgba(255, 255, 255, 0.25)', + defaultButtonText: 'white', + dividerBackground: 'rgba(255, 255, 255, 0.2)', }, }, }, - className: { - anchor: 'auth-anchor', - button: 'auth-button', + style: { + button: { + flex: '1', + flexDirection: 'column', + gap: '8px', + alignItems: 'center', + justifyContent: 'center', + padding: '16px', + border: '1px solid rgba(255, 255, 255, 0.25)', + }, + divider: { + textAlign: 'center', + }, + container: { + textAlign: 'center', + }, + }, + }} + localization={{ + variables: { + sign_in: { + social_provider_text: 'Sign in with {{provider}}', + }, }, }} providers={['google', 'github']} diff --git a/src/components/ui/social/SocialLinks.tsx b/src/components/ui/social/SocialLinks.tsx index d8a8f30..a5d9df6 100644 --- a/src/components/ui/social/SocialLinks.tsx +++ b/src/components/ui/social/SocialLinks.tsx @@ -3,7 +3,7 @@ import { SOCIAL_LINKS } from '@/lib/constants/social'; function SocialLinks() { return ( -
+
{SOCIAL_LINKS.map((link) => ( +
{/* Main Content Section */}
@@ -21,40 +21,42 @@ export default function Login() { Your trip companion

+
+ +
+ +

+ A full-stack portfolio project showcasing modern web development +

+ {/* Job Search Banner */} -
-
- Profile -
-

- 🚀 Software Developer Open to Opportunities -

-

- I'm currently looking for my next role in software development. -
- Let's create something impactful together! -

+
+
+
+ Profile +
+

+ 🚀 Software Developer Open to Opportunities +

+

+ Seeking my next challenge in software development. + Let's build something exceptional. + Ready to build something exceptional. +

+
- -
- -
- -

- A full-stack portfolio project showcasing modern web development -

{/* GitHub Section */} -
+

Explore this open-source project