From ca3caaf4a86e81dfd86ec93a18578366d00c8985 Mon Sep 17 00:00:00 2001 From: bender Date: Mon, 9 Mar 2026 09:49:40 +0000 Subject: [PATCH] Update src/app/login/page.tsx --- src/app/login/page.tsx | 145 ++++++++--------------------------------- 1 file changed, 27 insertions(+), 118 deletions(-) diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx index da65b86..d06660c 100644 --- a/src/app/login/page.tsx +++ b/src/app/login/page.tsx @@ -1,58 +1,16 @@ 'use client'; -import { ThemeProvider } from '@/components/theme/ThemeProvider'; -import { NavbarStyleFullscreen } from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen'; -import { useState } from 'react'; +import { ThemeProvider } from '@/providers/themeProvider/ThemeProvider'; +import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline'; const navItems = [ { name: 'Home', id: '/' }, { name: 'Features', id: '/#features' }, - { name: 'Dashboard', id: '/dashboard' }, { name: 'Sign In', id: '/login' }, -]; - -const footerColumns = [ - { - title: 'Product', - items: [ - { label: 'Features', href: '/#features' }, - { label: 'Dashboard', href: '/dashboard' }, - { label: 'Pricing', href: '/#pricing' }, - ], - }, - { - title: 'Legal', - items: [ - { label: 'Privacy', href: '/privacy' }, - { label: 'Terms', href: '/terms' }, - ], - }, + { name: 'Register', id: '/register' }, ]; export default function LoginPage() { - const [email, setEmail] = useState(''); - const [password, setPassword] = useState(''); - const [error, setError] = useState(''); - const [isLoading, setIsLoading] = useState(false); - - const handleSubmit = async (e: React.FormEvent) => { - e.preventDefault(); - setError(''); - - if (!email || !password) { - setError('Email and password are required'); - return; - } - - setIsLoading(true); - // Simulate login delay - await new Promise((resolve) => setTimeout(resolve, 1500)); - - // Simulate successful login - console.log('Login attempt:', { email, password }); - window.location.href = '/dashboard'; - }; - return ( - - -
-
-

- Sign In -

-

- Access your AccountHub dashboard -

- -
-
- - setEmail(e.target.value)} - className="w-full px-4 py-2 border border-foreground/20 rounded-lg bg-background text-foreground placeholder-foreground/40 focus:outline-none focus:ring-2 focus:ring-primary-cta" - placeholder="your@email.com" - /> -
- -
- - setPassword(e.target.value)} - className="w-full px-4 py-2 border border-foreground/20 rounded-lg bg-background text-foreground placeholder-foreground/40 focus:outline-none focus:ring-2 focus:ring-primary-cta" - placeholder="••••••••" - /> -
- -
- - - Forgot password? - -
- - {error &&
{error}
} - - - -

- Don't have an account?{' '} - - Create one - -

-
+ +
+
+

Sign In

+
+
+
+ + +
+
+ + +
+ +
+