File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { useState } from 'react' ;
2- import { useNavigate , useSearchParams } from 'react-router' ;
2+ import { Link , useNavigate , useSearchParams } from 'react-router' ;
33import { login } from '../../api/login' ;
44import InputField from '../components/InputField' ;
55
@@ -68,11 +68,18 @@ export default function LoginPage() {
6868 < button
6969 type = "submit"
7070 disabled = { isSubmitting }
71- className = "bg-blue-600 hover:bg-blue-700 text-white font-medium py-2.5 px-8 rounded-lg transition-colors duration-200 shadow-md hover:shadow-lg active:transform active:scale-95"
71+ className = "bg-blue-600 hover:bg-blue-700 text-white font-medium py-2.5 px-8 rounded-lg transition-colors duration-200 shadow-md hover:shadow-lga w-100 active:transform active:scale-95"
7272 >
7373 { isSubmitting ? 'Einloggen...' : 'Einloggen' }
7474 </ button >
7575 </ div >
76+
77+ < p className = "text-sm text-gray-600 text-center" >
78+ Noch kein Konto?{ ' ' }
79+ < Link to = "/register" className = "text-blue-600 hover:text-blue-700 font-medium" >
80+ Jetzt registrieren
81+ </ Link >
82+ </ p >
7683 </ form >
7784
7885 </ div >
Original file line number Diff line number Diff line change 11'use client'
22
3- import { useFetcher } from 'react-router'
3+ import { Link , useFetcher } from 'react-router'
44import { signup } from '../../api/signup'
55import InputField from '../components/InputField'
66
@@ -71,12 +71,12 @@ export default function RegisterPage() {
7171 💡 < strong > Hinweis:</ strong > Wenn du die E-Mail nicht erhalten hast, überprüfe auch deinen Spam-Ordner oder fordere eine neue Bestätigungsmail an.
7272 </ p >
7373 </ div >
74- < button
75- onClick = { ( ) => window . location . href = '/voya/ login' }
76- className = "w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-2.5 px-8 rounded-lg transition-colors duration-200 shadow-md hover:shadow-lg"
74+ < Link
75+ to = "/ login"
76+ className = "w-full inline-flex justify-center bg-blue-600 hover:bg-blue-700 text-white font-medium py-2.5 px-8 rounded-lg transition-colors duration-200 shadow-md hover:shadow-lg"
7777 >
7878 Zur Anmeldung
79- </ button >
79+ </ Link >
8080 </ >
8181 ) : (
8282 < >
@@ -141,11 +141,18 @@ export default function RegisterPage() {
141141 < button
142142 type = "submit"
143143 disabled = { isSubmitting }
144- className = "bg-blue-600 hover:bg-blue-700 disabled:bg-gray-400 disabled:cursor-not-allowed text-white font-medium py-2.5 px-8 rounded-lg transition-colors duration-200 shadow-md hover:shadow-lg active:transform active:scale-95"
144+ className = "bg-blue-600 hover:bg-blue-700 disabled:bg-gray-400 disabled:cursor-not-allowed text-white font-medium py-2.5 px-8 rounded-lg transition-colors duration-200 shadow-md hover:shadow-lg active:transform w-100 active:scale-95"
145145 >
146146 { isSubmitting ? 'Wird registriert...' : 'Registrieren' }
147147 </ button >
148148 </ div >
149+
150+ < p className = "text-sm text-gray-600 text-center" >
151+ Bereits ein Konto?{ ' ' }
152+ < Link to = "/login" className = "text-blue-600 hover:text-blue-700 font-medium" >
153+ Hier einloggen
154+ </ Link >
155+ </ p >
149156 </ fetcher . Form >
150157 </ >
151158 ) }
You can’t perform that action at this time.
0 commit comments