Skip to content

Commit f0c3a59

Browse files
author
Jeongbowoon
committed
#47 refactor: style 리팩토링
1 parent 103520c commit f0c3a59

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/page/showcase/component/ClubProfileCard/ClubProfileCard.style.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ import { css } from '@emotion/react';
22

33
import { theme } from '@/common/style/theme/theme';
44

5-
export const containerStyle = css({ width: '24.35rem' });
5+
export const containerStyle = css({ width: '100%' });
66

77
export const imageStyle = css({
88
width: '100%',
9-
height: '14rem',
109

1110
borderRadius: '16px 16px 0px 0px',
1211

13-
objectFit: 'none',
12+
objectFit: 'cover',
1413
aspectRatio: 16 / 9,
1514
});
1615

src/page/showcase/component/ClubProfileCard/ClubProfileCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ interface ClubProfileCardProps {
1616

1717
const ClubProfileCard = ({ title, detail, imageUrl }: ClubProfileCardProps) => {
1818
return (
19-
<section css={containerStyle}>
19+
<article css={containerStyle}>
2020
<img src={imageUrl ? imageUrl : defaultImage} alt={`${title}-image`} css={imageStyle} />
2121
<div css={descriptionStyle}>
2222
<p css={titleStyle}>{title}</p>
2323
<p css={detailStyle}>{detail}</p>
2424
</div>
25-
</section>
25+
</article>
2626
);
2727
};
2828

0 commit comments

Comments
 (0)