feat: 修改样式
This commit is contained in:
@@ -80,7 +80,7 @@ export default function Page() {
|
||||
);
|
||||
|
||||
return (
|
||||
<div className=''>
|
||||
<div className='max-w-[490px]'>
|
||||
<Card className='border-none shadow-none sm:border sm:shadow'>
|
||||
<CardContent className='grid gap-2 p-6 text-sm'>
|
||||
<div className='relative'>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
import { updateUserPassword } from '@/services/user/user';
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { AiroButton } from '@workspace/airo-ui/components/AiroButton';
|
||||
import { Button } from '@workspace/airo-ui/components/button';
|
||||
import { Card } from '@workspace/airo-ui/components/card';
|
||||
import {
|
||||
@@ -100,16 +101,14 @@ export default function ChangePassword() {
|
||||
</form>
|
||||
</Form>
|
||||
<div className={'mt-8 hidden justify-center sm:flex'}>
|
||||
<Button
|
||||
<AiroButton
|
||||
type='submit'
|
||||
size='sm'
|
||||
variant={'default'}
|
||||
form='password-form'
|
||||
className={
|
||||
'h-full rounded-[50px] border-0 border-[#0F2C53] bg-[#0F2C53] px-[55px] py-[9px] text-xl font-bold text-white transition hover:bg-[#225BA9] hover:text-white'
|
||||
}
|
||||
className={'h-full rounded-[50px] px-[55px] py-[9px] text-xl'}
|
||||
>
|
||||
{t('save')}
|
||||
</Button>
|
||||
</AiroButton>
|
||||
</div>
|
||||
</Card>
|
||||
);
|
||||
|
||||
@@ -5,6 +5,8 @@ import { updateUserNotify } from '@/services/user/user';
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { Button } from '@workspace/airo-ui/components/button';
|
||||
import { Card } from '@workspace/airo-ui/components/card';
|
||||
|
||||
import { AiroButton } from '@workspace/airo-ui/components/AiroButton';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -102,16 +104,13 @@ export default function NotifySettings() {
|
||||
</form>
|
||||
</Form>
|
||||
<div className={'mt-8 hidden justify-center sm:flex'}>
|
||||
<Button
|
||||
<AiroButton
|
||||
type='submit'
|
||||
size='sm'
|
||||
form='notify-form'
|
||||
className={
|
||||
'h-full rounded-[50px] border-0 border-[#0F2C53] bg-[#0F2C53] px-[55px] py-[9px] text-xl font-bold text-white transition hover:bg-[#225BA9] hover:text-white'
|
||||
}
|
||||
className={'h-full px-[55px] py-[9px] text-xl'}
|
||||
>
|
||||
{t('notify.save')}
|
||||
</Button>
|
||||
</AiroButton>
|
||||
</div>
|
||||
</Card>
|
||||
);
|
||||
|
||||
@@ -30,10 +30,10 @@ export default function Page() {
|
||||
const discountItem = item.discount?.find((v) => v.quantity === 12);
|
||||
return {
|
||||
...item,
|
||||
origin_price: unitConversion('centsToDollars', item.unit_price * 12).toString(), // 原价
|
||||
origin_price: unitConversion('centsToDollars', item.unit_price).toString(), // 原价
|
||||
discount_price: unitConversion(
|
||||
'centsToDollars',
|
||||
item.unit_price * ((discountItem?.discount || 100) / 100) * 12,
|
||||
item.unit_price * ((discountItem?.discount || 100) / 100),
|
||||
).toString(), // 优惠价格
|
||||
};
|
||||
} else {
|
||||
|
||||
@@ -158,7 +158,7 @@ export default function Page() {
|
||||
}}
|
||||
renderItem={(item) => {
|
||||
return (
|
||||
<Card className='overflow-hidden sm:pl-16'>
|
||||
<Card className='overflow-hidden rounded-[32px] sm:pl-16'>
|
||||
<CardHeader className='flex flex-row items-center justify-between gap-2 space-y-0 bg-transparent p-3 pb-0 sm:pb-3'>
|
||||
<CardTitle>
|
||||
<span
|
||||
|
||||
@@ -8,6 +8,8 @@ import { NextIntlClientProvider } from 'next-intl';
|
||||
import { getLocale, getMessages } from 'next-intl/server';
|
||||
import { PublicEnvScript } from 'next-runtime-env';
|
||||
import { unstable_noStore as noStore } from 'next/cache';
|
||||
import { Inter } from 'next/font/google';
|
||||
const inter = Inter({ subsets: ['latin'] });
|
||||
// import { Geist, Geist_Mono } from 'next/font/google';
|
||||
import { cookies } from 'next/headers';
|
||||
import { Metadata, Viewport } from 'next/types';
|
||||
@@ -107,7 +109,7 @@ export default async function RootLayout({
|
||||
<body
|
||||
suppressHydrationWarning
|
||||
// ${fontSans.variable} ${fontMono.variable}
|
||||
className={`size-full min-h-[calc(100dvh-env(safe-area-inset-top))] font-sans antialiased`}
|
||||
className={`size-full min-h-[calc(100dvh-env(safe-area-inset-top))] font-sans ${inter.className} antialiased`}
|
||||
>
|
||||
<NextIntlClientProvider messages={messages}>
|
||||
<NextTopLoader showSpinner={false} />
|
||||
|
||||
Reference in New Issue
Block a user