style: update header and login card styles for improved UI
- Enhanced header button styles for better visual consistency. - Increased width of the card in the forget password and reset password pages for improved layout. - Removed unnecessary button component from the card title for a cleaner design. Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -99,8 +99,8 @@ export const Header = () => {
|
||||
whileHover={{ scale: 1.02 }}
|
||||
whileTap={{ scale: 0.98 }}
|
||||
className={cn(
|
||||
"inline-flex items-center gap-2 rounded-full border px-6 font-medium",
|
||||
"bg-fill/60 text-sm text-text hover:bg-fill/80",
|
||||
"inline-flex items-center gap-2 rounded-full border border-fill-tertiary px-6 font-medium",
|
||||
"bg-fill-quinary text-sm text-text backdrop-blur-background hover:bg-fill-tertiary",
|
||||
isCompact ? "h-8" : "h-10",
|
||||
)}
|
||||
>
|
||||
@@ -115,8 +115,7 @@ export const Header = () => {
|
||||
whileTap={{ scale: 0.98 }}
|
||||
className={cn(
|
||||
"inline-flex items-center justify-center rounded-full px-6 font-medium",
|
||||
"bg-white text-sm text-black shadow-sm hover:shadow",
|
||||
"dark:bg-zinc-50 dark:text-zinc-900",
|
||||
"border border-accent/20 bg-accent/90 text-sm text-white shadow-sm hover:shadow",
|
||||
isCompact ? "h-8" : "h-10",
|
||||
)}
|
||||
>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { forgetPassword } from "@client/lib/auth"
|
||||
import { Button, MotionButtonBase } from "@follow/components/ui/button/index.jsx"
|
||||
import { Button } from "@follow/components/ui/button/index.jsx"
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
@@ -24,7 +24,6 @@ import { useRef } from "react"
|
||||
import * as React from "react"
|
||||
import { useForm } from "react-hook-form"
|
||||
import { useTranslation } from "react-i18next"
|
||||
import { useNavigate } from "react-router"
|
||||
import { toast } from "sonner"
|
||||
import { z } from "zod"
|
||||
|
||||
@@ -38,7 +37,7 @@ const createEmailSchema = (t: any) =>
|
||||
|
||||
export function Component() {
|
||||
const { t } = useTranslation()
|
||||
const navigate = useNavigate()
|
||||
|
||||
const captchaRef = useRef<HCaptcha>(null)
|
||||
|
||||
const EmailSchema = createEmailSchema(t)
|
||||
@@ -85,17 +84,9 @@ export function Component() {
|
||||
|
||||
return (
|
||||
<div className="flex h-full items-center justify-center">
|
||||
<Card className="w-[350px] max-w-full">
|
||||
<Card className="w-[500px] max-w-full">
|
||||
<CardHeader>
|
||||
<CardTitle className="flex items-center gap-2">
|
||||
<MotionButtonBase
|
||||
onClick={() => {
|
||||
history.length > 1 ? history.back() : navigate("/login")
|
||||
}}
|
||||
className="-ml-1 inline-flex cursor-pointer items-center"
|
||||
>
|
||||
<i className="i-mingcute-left-line" />
|
||||
</MotionButtonBase>
|
||||
<span>{t("login.forget_password.label")}</span>
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { resetPassword } from "@client/lib/auth"
|
||||
import { Button, MotionButtonBase } from "@follow/components/ui/button/index.jsx"
|
||||
import { Button } from "@follow/components/ui/button/index.jsx"
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
@@ -77,17 +77,9 @@ export function Component() {
|
||||
|
||||
return (
|
||||
<div className="flex h-full items-center justify-center">
|
||||
<Card className="w-[350px] max-w-full">
|
||||
<Card className="w-[500px] max-w-full">
|
||||
<CardHeader>
|
||||
<CardTitle className="flex items-center gap-2">
|
||||
<MotionButtonBase
|
||||
onClick={() => {
|
||||
history.length > 1 ? history.back() : navigate("/login")
|
||||
}}
|
||||
className="-ml-1 inline-flex cursor-pointer items-center"
|
||||
>
|
||||
<i className="i-mingcute-left-line" />
|
||||
</MotionButtonBase>
|
||||
<span>{t("login.forget_password.label")}</span>
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
|
||||
Reference in New Issue
Block a user