update(Login): styles

dev
mackt 3 months ago
parent dd1cb26063
commit ffc0797830

@ -1,6 +1,6 @@
export default function Footer() { export default function Footer() {
return ( return (
<div className="absolute bottom-[30px] left-0 right-0 text-[13px] leading-[18px] text-[rgba(0,0,0,0.4)] text-center"> <div className="absolute bottom-40px left-0 right-0 text-13px leading-18px text-[rgba(0,0,0,0.4)] text-center">
<a <a
className="text-[#000]" className="text-[#000]"

@ -27,10 +27,13 @@ export default function Login() {
</button> </button>
</DialogTrigger> </DialogTrigger>
<DialogContent className="w-420px h-450px px-40px bg-#f2f3f7" onPointerDownOutside={(e) => e.preventDefault()}> <DialogContent
<Tab value={currentTab} changeTab={(value: string) => setCurrent(value)} /> className="w-400px h-430px pt-55px px-40px bg-#f2f3f7"
onPointerDownOutside={(e) => e.preventDefault()}
>
<Tab value={currentTab} changeTab={(value: string) => setCurrent(value)} className="mt-5px" />
<DialogClose className="absolute top-[24px] right-[24px] w-24px h-24px cursor-pointer outline-none"> <DialogClose className="absolute top-24px right-24px w-24px h-24px cursor-pointer outline-none">
<IconClose /> <IconClose />
</DialogClose> </DialogClose>

@ -132,7 +132,7 @@ export default function LoginForm({ className }: { className?: string }) {
placeholder="输入手机号" placeholder="输入手机号"
/> />
<div className="relative w-full mt-[24px]"> <div className="relative w-full mt-16px">
<input <input
className="w-full h-50px rounded-100px pl-24px pr-[calc(24px_+_60px)] !placeholder-[rgba(0,0,0,0.4)] !placeholder-text-14px text-[rgba(0,0,0,0.95)] bg-#fff leading-20px border-1px border-1px border-#fff focus:border-#000/70 transition-all-100" className="w-full h-50px rounded-100px pl-24px pr-[calc(24px_+_60px)] !placeholder-[rgba(0,0,0,0.4)] !placeholder-text-14px text-[rgba(0,0,0,0.95)] bg-#fff leading-20px border-1px border-1px border-#fff focus:border-#000/70 transition-all-100"
type="text" type="text"

@ -3,14 +3,12 @@ import LoginForm from './LoginForm';
export default function LoginPhone() { export default function LoginPhone() {
return ( return (
<div className="flex flex-col items-center w-340px bg-#f2f3f7"> <div className="flex flex-col items-center w-330px bg-#f2f3f7">
{/* title */} {/* title */}
<p className="mt-[9px] text-[13px] leading-[18px] text-[rgba(0,0,0,0.7)]"> <p className="mt-10px text-13px leading-18px text-#000/70"></p>
</p>
{/* form */} {/* form */}
<LoginForm className="mt-32px w-full" /> <LoginForm className="mt-23px w-full" />
</div> </div>
); );
} }

@ -106,9 +106,9 @@ export default function LoginQrcode() {
return ( return (
<div className="flex flex-col items-center px-40px bg-#f2f3f7"> <div className="flex flex-col items-center px-40px bg-#f2f3f7">
{/* title */} {/* title */}
<div className="mt-9px text-13px leading-18px text-#000/70 text-center">APP</div> <div className="mt-10px text-13px leading-18px text-#000/70 text-center">APP</div>
<div className="flex items-center justify-center w-200px h-200px rounded-6px mt-15px bg-#fff overflow-hidden shadow-black-[0px_8px_30px_0px] "> <div className="flex items-center justify-center w-200px h-200px rounded-6px mt-23px bg-#fff overflow-hidden shadow-black-[0px_8px_30px_0px] ">
{!qrCodeValue && <div>...</div>} {!qrCodeValue && <div>...</div>}
{!!qrCodeValue && qrCodeState !== 2 && ( {!!qrCodeValue && qrCodeState !== 2 && (

@ -7,24 +7,21 @@ export default function Tab({
value: string; value: string;
changeTab: (value: string) => void; changeTab: (value: string) => void;
}) { }) {
const tabs = [
{ name: 'qrCode', label: '扫码登录' },
{ name: 'phone', label: '手机登录' },
];
return ( return (
<div className={`flex justify-center gap-24px w-full ${className}`}> <div className={`flex justify-center items-center w-full ${className}`}>
{tabs.map((tab) => { <div
return ( className={`text-17px leading-24px font-400 cursor-pointer text-#000/70 ${value === 'qrCode' && 'text-#000/95 font-500'}`}
<div onClick={() => changeTab('qrCode')}
className={`text-20px leading-28px font-600 cursor-pointer text-#000/40 ${tab.name === value && 'text-#000/95'}`} >
key={tab.name}
onClick={() => changeTab(tab.name)} </div>
> <div className="h-14.5px mx-10px border-1px border-solid border-#000/40 " />
{tab.label} <div
</div> className={`text-17px leading-24px font-400 cursor-pointer text-#000/70 ${value === 'phone' && 'text-#000/95 font-500'}`}
); onClick={() => changeTab('phone')}
})} >
</div>
</div> </div>
); );
} }

Loading…
Cancel
Save