Skip to content

Commit

Permalink
style: 복사, 저장 횟수 스타일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dmswl98 committed Feb 22, 2024
1 parent dba829c commit cf568a2
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 6 deletions.
10 changes: 8 additions & 2 deletions src/domain/landing/components/LandingCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@ const LandingCard = ({ data }: LandingCardProps) => {
</Card.Header>
<Card.Body className={styles.cardBody}>{content}</Card.Body>
<Card.Footer>
복사 <span>{formatNumberToCompact(copiedCount)}</span> • 저장{' '}
<span>{formatNumberToCompact(savedCount)}</span>
복사&nbsp;
<span className={styles.count}>
{formatNumberToCompact(copiedCount)}
</span>
&nbsp; • 저장&nbsp;
<span className={styles.count}>
{formatNumberToCompact(savedCount)}
</span>
</Card.Footer>
</Card>
);
Expand Down
6 changes: 6 additions & 0 deletions src/domain/landing/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,9 @@ export const buttonText = style({
height: '58px',
paddingTop: '17px',
});

export const count = style({
fontWeight: 500,
fontSize: '14px',
color: COLORS['Grey/500'],
});
10 changes: 8 additions & 2 deletions src/domain/저장하는/components/ArchivedCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,14 @@ const ArchivedCard = ({ folderId, card }: ArchivedCardProps) => {
</Card.Header>
<Card.Body>{card.content}</Card.Body>
<Card.Footer>
복사 <span>{formatNumberToCompact(card.copiedCount)}</span> • 저장{' '}
<span>{formatNumberToCompact(card.savedCount)}</span>
복사&nbsp;
<span className={styles.count}>
{formatNumberToCompact(card.copiedCount)}
</span>
&nbsp; • 저장&nbsp;
<span className={styles.count}>
{formatNumberToCompact(card.savedCount)}
</span>
</Card.Footer>
</Card>
);
Expand Down
6 changes: 6 additions & 0 deletions src/domain/저장하는/components/ArchivedCard/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ export const editButton = style([
},
},
]);

export const count = style({
fontWeight: 500,
fontSize: '14px',
color: COLORS['Grey/500'],
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { style } from '@vanilla-extract/css';

import { sprinkles } from '@styles/sprinkles.css';
import { COLORS } from '@styles/tokens';

export const wrapper = style([
sprinkles({
Expand All @@ -15,3 +16,9 @@ export const wrapper = style([
padding: '28px 32px 20px',
},
]);

export const count = style({
fontWeight: 500,
fontSize: '14px',
color: COLORS['Grey/500'],
});
10 changes: 8 additions & 2 deletions src/domain/참고하는/components/참고하는TemplateCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,14 @@ const 참고하는TemplateCard = ({
</Card.Header>
<Card.Body>{content}</Card.Body>
<Card.Footer>
복사 <span>{formatNumberToCompact(copiedCount)}</span> • 저장{' '}
<span>{formatNumberToCompact(savedCount)}</span>
복사&nbsp;
<span className={styles.count}>
{formatNumberToCompact(copiedCount)}
</span>
&nbsp; • 저장&nbsp;
<span className={styles.count}>
{formatNumberToCompact(savedCount)}
</span>
</Card.Footer>
</Card>
);
Expand Down

0 comments on commit cf568a2

Please sign in to comment.