feat: 完成代码编写
This commit is contained in:
@@ -15,6 +15,7 @@ import {
|
||||
Card,
|
||||
CardContent,
|
||||
CardDescription,
|
||||
CardFooter,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from '@workspace/ui/components/card';
|
||||
@@ -90,7 +91,7 @@ export default function Page() {
|
||||
<DialogTrigger asChild>
|
||||
<Button
|
||||
className={
|
||||
'min-w-[150px] rounded-full border-[#0F2C53] bg-[#0F2C53] px-[35px] py-[9px] text-center text-xl font-bold hover:bg-[#225BA9] hover:text-white'
|
||||
'rounded-full border-[#0F2C53] bg-[#0F2C53] px-[35px] py-[9px] text-center font-bold hover:bg-[#225BA9] hover:text-white sm:min-w-[150px] sm:text-xl'
|
||||
}
|
||||
>
|
||||
{t('createTicket')}
|
||||
@@ -162,8 +163,8 @@ export default function Page() {
|
||||
}}
|
||||
renderItem={(item) => {
|
||||
return (
|
||||
<Card className='overflow-hidden pl-16'>
|
||||
<CardHeader className='flex flex-row items-center justify-between gap-2 space-y-0 bg-transparent p-3'>
|
||||
<Card className='overflow-hidden 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
|
||||
className={cn(
|
||||
@@ -184,8 +185,9 @@ export default function Page() {
|
||||
<>
|
||||
<Button
|
||||
key='reply'
|
||||
variant='destructive'
|
||||
className={
|
||||
'ml-3 min-w-[150px] rounded-full border-[#A8D4ED] bg-[#A8D4ED] px-[35px] py-[9px] text-center text-xl font-bold hover:border-[#225BA9] hover:bg-[#225BA9] hover:text-white'
|
||||
'hidden min-w-[150px] rounded-full border-[#A8D4ED] bg-[#A8D4ED] text-center text-xl font-bold hover:border-[#225BA9] hover:bg-[#225BA9] hover:text-white sm:flex'
|
||||
}
|
||||
onClick={() => setTicketId(item.id)}
|
||||
>
|
||||
@@ -197,9 +199,8 @@ export default function Page() {
|
||||
<Button
|
||||
variant='destructive'
|
||||
className={
|
||||
'min-w-[150px] rounded-full border-[#F8BFD2] bg-[#F8BFD2] px-[35px] py-[9px] text-center text-xl font-bold hover:border-[#F8BFD2] hover:bg-[#FF4248] hover:text-white'
|
||||
'rounded-full border-white bg-transparent text-center font-bold text-[#FF4248] shadow-none hover:bg-transparent sm:min-w-[150px] sm:border-[#F8BFD2] sm:bg-[#F8BFD2] sm:text-xl sm:shadow sm:hover:border-[#F8BFD2] sm:hover:bg-[#FF4248] sm:hover:text-white'
|
||||
}
|
||||
size='sm'
|
||||
>
|
||||
{t('close')}
|
||||
</Button>
|
||||
@@ -223,24 +224,33 @@ export default function Page() {
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
|
||||
<CardContent className='p-3 text-sm'>
|
||||
<ul className='grid gap-3 *:flex *:flex-col lg:grid-cols-3'>
|
||||
<CardContent className='p-3 text-[10px] sm:text-sm'>
|
||||
<ul className='grid grid-cols-2 gap-3 *:flex *:flex-col lg:grid-cols-3'>
|
||||
<li>
|
||||
<span className='text-[15px] font-normal text-[#225BA9]'>{t('title')}</span>
|
||||
<span className='font-normal text-[#225BA9]'>{t('title')}</span>
|
||||
<span className={'font-bold'}> {item.title}</span>
|
||||
</li>
|
||||
<li className=''>
|
||||
<span className='text-[15px] font-normal text-[#225BA9]'>
|
||||
{t('description')}
|
||||
</span>
|
||||
<li className='order-2 sm:order-3'>
|
||||
<span className='font-normal text-[#225BA9]'>{t('description')}</span>
|
||||
<time className={'font-bold'}>{item.description}</time>
|
||||
</li>
|
||||
<li className=''>
|
||||
<span className='text-[15px] font-normal text-[#225BA9]'>{t('updatedAt')}</span>
|
||||
<span className='font-normal text-[#225BA9]'>{t('updatedAt')}</span>
|
||||
<time className={'font-bold'}>{formatDate(item.updated_at)}</time>
|
||||
</li>
|
||||
</ul>
|
||||
</CardContent>
|
||||
<CardFooter className={'flex justify-center sm:hidden'}>
|
||||
<Button
|
||||
key='reply'
|
||||
className={
|
||||
'ml-3 min-w-[150px] rounded-full border-[#A8D4ED] bg-[#A8D4ED] px-[35px] py-[9px] text-center font-bold hover:border-[#225BA9] hover:bg-[#225BA9] hover:text-white sm:text-xl'
|
||||
}
|
||||
onClick={() => setTicketId(item.id)}
|
||||
>
|
||||
{t('reply')}
|
||||
</Button>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user