Skip to content

Commit

Permalink
fix: 코드 형식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
cjy3458 committed Jan 27, 2025
1 parent 40811b9 commit 4a7c0f5
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/components/archiving/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ const Card = ({ id, thumbnail, title, dev_stack, category, link, subtitle }: ICa
<Link href={`${link}/${id}`}>
<Wrapper>
<ImageWrapper>
<CustomImage
src={thumbnail}
alt="썸네일"
layout="fill"
objectFit="contain"
objectPosition="center"
/>
<CustomImage src={thumbnail} alt="썸네일" layout="fill" objectFit="contain" objectPosition="center" />
</ImageWrapper>
<TextWrapper>
<Category link={link}>{category}</Category>
Expand All @@ -36,8 +30,7 @@ const Card = ({ id, thumbnail, title, dev_stack, category, link, subtitle }: ICa
};

export default Card;
const CustomImage = styled(Image)`
`;
const CustomImage = styled(Image)``;

const Wrapper = styled.div`
border-radius: 20px;
Expand Down Expand Up @@ -98,9 +91,8 @@ const TextWrapper = styled.div`
@media (min-width: 330px) and (max-width: 444px) {
width: 180px;
}
`;
const Category = styled.div<{ link: string; }>`
const Category = styled.div<{ link: string }>`
border-radius: 25px;
border: ${(props) => (props.link === '/gallery' ? 'none' : `1px solid ${GreyScale.default}`)};
display: flex;
Expand Down Expand Up @@ -135,5 +127,4 @@ const ProjectDesc = styled.div`
@media (max-width: 1300px) {
font-size: 10px;
}
`;

0 comments on commit 4a7c0f5

Please sign in to comment.