Skip to content

Commit e60d6be

Browse files
committed
fix: 스켈레톤 모바일 반응형 추가
1 parent b3c016e commit e60d6be

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

apps/website/src/pages/Blog/Blog/BlogList.styles.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,10 @@ export const ListContainer = styled.div<{$isTablet: boolean; $isBig: boolean; $i
143143
export const SkeletonListContainer = styled(ListContainer)``;
144144

145145
export const SkeletonCard = styled.div<{$isMobile: boolean;}>`
146-
width: 300px;
147-
height: ${(props) => (props.$isMobile ? '170px' : '200px')};
148-
border-radius: 16px;
146+
width: 100%;
147+
/* 반응형 높이: 최소 150px, 화면 커지면 증가, 최대 200px */
148+
height: clamp(150px, 14vw, 200px);
149+
border-radius: ${(props) => (props.$isMobile ? '10px' : '16px')};
149150
background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
150151
background-size: 400% 100%;
151152
animation: skeleton-shimmer 1.2s ease-in-out infinite;

apps/website/src/pages/Blog/Project/ProjectList.styles.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,10 @@ export const ListContainer = styled.div<{$isTablet: boolean; $isBig: boolean; $i
133133
export const SkeletonListContainer = styled(ListContainer)``;
134134

135135
export const SkeletonCard = styled.div<{$isMobile: boolean;}>`
136-
width: 300px;
137-
height: ${(props) => (props.$isMobile ? '170px' : '200px')};
138-
border-radius: 16px;
136+
width: 100%;
137+
/* 반응형 높이: 최소 150px, 화면 커지면 증가, 최대 200px */
138+
height: clamp(150px, 14vw, 200px);
139+
border-radius: ${(props) => (props.$isMobile ? '10px' : '16px')};
139140
background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
140141
background-size: 400% 100%;
141142
animation: skeleton-shimmer 1.2s ease-in-out infinite;

0 commit comments

Comments
 (0)