From 7922ab972a247c7070f80ea44429d3d6f12ca862 Mon Sep 17 00:00:00 2001 From: jinhojang6 Date: Thu, 28 Mar 2024 03:02:59 +0900 Subject: [PATCH] feat: homepage featured section --- src/components/PostCard/PostCard.Label.tsx | 10 +++-- src/containers/HomePage/HomePage.tsx | 49 ++++++++++++++++++++++ 2 files changed, 56 insertions(+), 3 deletions(-) diff --git a/src/components/PostCard/PostCard.Label.tsx b/src/components/PostCard/PostCard.Label.tsx index ba380dc..3006663 100644 --- a/src/components/PostCard/PostCard.Label.tsx +++ b/src/components/PostCard/PostCard.Label.tsx @@ -20,9 +20,9 @@ export const PostCardLabel: FC = ({ }) => { return ( - - {contentType.toUpperCase()} - + + {contentType} + {date && ( <> @@ -59,3 +59,7 @@ const Container = styled.div` const Date = styled(Typography)` text-transform: uppercase; ` + +const ContentType = styled(Typography)` + text-transform: capitalize; +` diff --git a/src/containers/HomePage/HomePage.tsx b/src/containers/HomePage/HomePage.tsx index 85bbabe..dd982f8 100644 --- a/src/containers/HomePage/HomePage.tsx +++ b/src/containers/HomePage/HomePage.tsx @@ -87,6 +87,23 @@ export const HomePage: React.FC = ({ }, ]} /> + + +
0}> lsdUtils.breakpoint(props.theme, 'xs', 'exact')} { + margin-top: var(--lsd-spacing-40); + margin-bottom: var(--lsd-spacing-80); + + .post-card-wrapper { + width: 327px; + + & > div { + width: 327px; + } + } + + & > div > div { + display: flex !important; + overflow-x: auto !important; + } + } +`