Skip to content

Commit 1a28681

Browse files
authored
feat: apply glass morphism (#39)
1 parent 99df796 commit 1a28681

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/shared/ui/card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
77
const Card = ({ className, children, ...props }: CardProps) => (
88
<div
99
className={cn(
10-
'rounded-[15px] border border-white bg-gradient-to-br from-white/90 to-white/60 shadow-[2px_10px_29px_0px_rgba(47,49,65,0.02)] backdrop-blur-[25px]',
10+
'backdrop-blur-px rounded-[15px] border border-white/15 bg-gradient-to-br from-white/15 to-white/30 shadow-[2px_10px_29px_0px_rgba(47,49,65,0.02)]',
1111
className
1212
)}
1313
{...props}

src/widgets/discovery/ui/discovery-card.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ const DiscoveryCard = ({ id, name, slope, weather, weeklyWeather }: Discovery) =
1313
<Card
1414
className={cn(
1515
'box-border flex cursor-pointer flex-col gap-[15px] pb-4 pt-[34px] md:pb-[26px] md:pt-10',
16-
'transition-all hover:scale-[1.02] hover:border-2 hover:border-main-1 hover:pb-[15px] hover:pt-[33px] hover:md:pb-[25px] hover:md:pt-[39px]'
16+
'transition-all hover:scale-[1.02] hover:border-2 hover:border-main-1/30 hover:pb-[15px] hover:pt-[33px] hover:md:pb-[25px] hover:md:pt-[39px]'
1717
)}
1818
onClick={() => router.push(`/${id}`)}
1919
>
20-
<div className={cn('mx-[30px] flex flex-col gap-[5px] items-center md:mx-[42px]')}>
21-
<div className={cn('w-full flex justify-between items-center')}>
22-
<h2 className={cn('title1 md:h2 text-gray-90')}>{name}</h2>
23-
<div className={cn('flex gap-2 items-center')}>
20+
<div className={cn('mx-[30px] flex flex-col items-center gap-[5px] md:mx-[42px]')}>
21+
<div className={cn('flex w-full items-center justify-between')}>
22+
<h2 className={cn('title1 md:h2 text-gray-90')}>{name}</h2>
23+
<div className={cn('flex items-center gap-2')}>
2424
<WeatherIcon className={cn('origin-right scale-[1.17]')} weather={weather.weather} />
25-
<p className={cn('font-semibold text-[30px] leading-tight')}>{weather.temperature}°</p>
25+
<p className={cn('text-[30px] font-semibold leading-tight')}>{weather.temperature}°</p>
2626
</div>
2727
</div>
28-
<div className={cn('w-full flex justify-between')}>
29-
<p className={cn('body1-medium text-gray-60')}>
28+
<div className={cn('flex w-full justify-between')}>
29+
<p className={cn('body1-medium text-gray-60')}>
3030
{slope ? `운행중인 슬로프 ${slope}개` : '개장일이 곧 공개될 예정이에요'}
3131
</p>
3232
<p className={cn('body1-semibold text-gray-60')}>{weather.description}</p>

0 commit comments

Comments
 (0)