Skip to content

Commit

Permalink
✨ MyCardDescriptionSection 스타일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
doggopawer committed Nov 21, 2023
1 parent 42111bd commit 8fb3c77
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import formatDistanceToNow from 'date-fns/formatDistanceToNow'
import koLocale from 'date-fns/locale/ko'
import Link from 'next/link'
import Badge from '@/components/ui/badge'
import Card, { CardFlex, CardImage, CardText } from '@/components/ui/card'
import { CardFlex, CardImage, CardText } from '@/components/ui/card'
import AppPath from '@/config/appPath'
import { CardDetail } from '@/types/card'

Expand All @@ -24,16 +24,16 @@ const MyCardDescriptionSection = ({
createdAt,
},
}: MyCardDescriptionSection) => (
<Link href={`${AppPath.cards()}/${cardId}`}>
<div className="h-card-lg p-1.5">
<Link href={`${AppPath.cards()}/${cardId}`} className="w-full">
<div className="flex h-card-lg p-1.5 justify-center w-full">
<CardFlex
direction={'row'}
justify={'start'}
align={'center'}
gap={'space'}
className="h-full"
className="w-full h-full"
>
<div className="relative w-32 h-full">
<div className="relative w-1/3 h-full">
<CardImage
className="rounded-lg border border-background-secondary-color"
src={thumbnail}
Expand All @@ -43,7 +43,11 @@ const MyCardDescriptionSection = ({
/>
</div>

<CardFlex direction={'col'} justify={'between'} className="h-full">
<CardFlex
direction={'col'}
justify={'between'}
className="w-2/3 h-full"
>
<CardFlex align={'center'} gap={'space'}>
<CardText type={'title'}>{cardTitle}</CardText>
{status === 'TRADE_AVAILABLE' ? (
Expand Down

0 comments on commit 8fb3c77

Please sign in to comment.