@@ -4,7 +4,7 @@ import Link from "next/link"
4
4
import { Input } from "./ui/input"
5
5
import { Button } from "./ui/button"
6
6
import { z } from "zod"
7
- import { LoginFormSchema } from "@/app/lib/identity/definition"
7
+
8
8
import { zodResolver } from "@hookform/resolvers/zod"
9
9
import { useState } from "react"
10
10
import { useRouter } from "next/navigation"
@@ -17,13 +17,14 @@ import {
17
17
FormLabel ,
18
18
FormMessage ,
19
19
} from "./ui/form"
20
- import { login } from "@/app/lib/identity/auth"
20
+
21
21
import { AuroraBackground } from "./ui/aurora-background"
22
22
import { motion } from "framer-motion"
23
23
import { useTheme } from "next-themes"
24
24
import { Meteors } from "./ui/meteors"
25
- import { TextGenerateEffect } from "./ui/text-generate-effect"
26
25
import { BlurIn } from "./ui/text-blur"
26
+ import { login } from "@/app/lib/identity/auth"
27
+ import { LoginFormSchema } from "@/app/lib/identity/definition"
27
28
28
29
export default function Login ( ) {
29
30
const { theme } = useTheme ( )
@@ -65,7 +66,7 @@ export default function Login() {
65
66
onMouseLeave = { ( ) => setButtonHover ( false ) } >
66
67
< div className = "grid gap-2 text-center" >
67
68
< BlurIn
68
- text = "Pretorian System Security "
69
+ text = "Pro Pretorian System Solution "
69
70
balise = "h1"
70
71
className = { `text-3xl font-bold bg-gradient-to-r from-indigo-500 via-yellow-500 to-indigo-500 inline-block text-transparent bg-clip-text` }
71
72
/> { " " }
@@ -84,18 +85,15 @@ export default function Login() {
84
85
name = "email"
85
86
render = { ( { field } ) => (
86
87
< FormItem >
87
- < FormLabel
88
- className = { theme === "light" ? "text-black" : "text-white" } >
88
+ < FormLabel className = "text-indigo-500" >
89
89
< BlurIn text = "Email" balise = "span" className = "text-sm" />
90
90
</ FormLabel >
91
91
< FormControl >
92
92
< Input
93
93
type = "email"
94
94
autoComplete = "username"
95
95
placeholder = "Votre email..."
96
- className = {
97
- theme === "light" ? "text-black" : "text-white"
98
- }
96
+ className = "text-indigo-500"
99
97
{ ...field }
100
98
/>
101
99
</ FormControl >
@@ -108,8 +106,7 @@ export default function Login() {
108
106
name = "password"
109
107
render = { ( { field } ) => (
110
108
< FormItem >
111
- < FormLabel
112
- className = { theme === "light" ? "text-black" : "text-white" } >
109
+ < FormLabel className = "text-indigo-500" >
113
110
< BlurIn
114
111
text = "Mot de passe"
115
112
balise = "span"
@@ -121,9 +118,7 @@ export default function Login() {
121
118
type = "password"
122
119
autoComplete = "new-password"
123
120
placeholder = "Votre mot de passe..."
124
- className = {
125
- theme === "light" ? "text-black" : "text-white"
126
- }
121
+ className = "text-indigo-500"
127
122
{ ...field }
128
123
/>
129
124
</ FormControl >
@@ -143,10 +138,7 @@ export default function Login() {
143
138
</ Button >
144
139
</ form >
145
140
</ Form >
146
- < div
147
- className = { `mt-4 text-center text-sm z-10 ${
148
- theme === "light" ? "text-black" : "text-white"
149
- } `} >
141
+ < div className = { `mt-4 text-center text-sm z-10 text-indigo-500` } >
150
142
< BlurIn text = "Vous n'avez pas de compte ?" balise = "span" />
151
143
< Link href = "/register" className = "underline ml-1 border " >
152
144
< BlurIn text = "Inscrivez-vous" balise = "span" className = "text-sm" />
0 commit comments