Skip to content

Commit

Permalink
Design: 콜렉션 심플 리스트 배경 투명도 적용, text 줄임 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkSohyunee committed Oct 29, 2024
1 parent 1111fe4 commit 010c582
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/components/ShapeSimpleList/ShapeSimpleList.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,19 @@ const content = style({
justifyContent: 'center',
alignItems: 'center',

backgroundImage: imageUrl,
backgroundPosition: 'center',
backgroundColor: vars.color.white,
});

export const contentVariant = styleVariants({
round: [content, { borderRadius: '100%' }],
round: [
content,
{
borderRadius: '100%',
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), ${imageUrl}`,
backgroundSize: 'cover',
backgroundPosition: 'center',
},
],
square: [content, { borderRadius: 20 }],
});

Expand All @@ -44,6 +50,7 @@ export const category = style([
]);

export const info = style({
width: '70%',
paddingTop: '0.6rem',
paddingBottom: '0.5rem',
display: 'flex',
Expand All @@ -63,6 +70,12 @@ export const title = styleVariants(fontColor, (color) => [
{
color,
fontWeight: 600,
textAlign: 'center',

width: '100%',
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
},
]);

Expand Down

0 comments on commit 010c582

Please sign in to comment.