Skip to content

Commit

Permalink
update: 바텀시트 bottom 값 조정 및 카드 UI수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JoStar33 committed Aug 20, 2024
1 parent dd241d0 commit ec24c5f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/common/BottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const S = {
left: 50%;
border-radius: 20px 20px 0 0;
width: 100%;
bottom: 0px;
bottom: 80px;
overflow: hidden;
background-color: ${(props) => props.theme.colors.white};
padding: 0 10px;
Expand Down
18 changes: 15 additions & 3 deletions src/components/contents/ContentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ export default function ContentCard({ element }: IProps) {
<Dimmed />
</div>
<div className="content-card__main-info">
<h3>{element.title}</h3>
<p></p>
<h3 className="content-card__main-info__title">{element.title}</h3>
<p className="content-card__main-info__day">작성일: {element.createdAt}</p>
<p className="content-card__main-info__description">{element.description}</p>
</div>
</S.ContentCard>
);
Expand All @@ -25,11 +26,15 @@ const S = {
ContentCard: styled.div`
display: flex;
gap: 20px;
box-shadow: rgb(0 0 0 / 10%) 0px 4px 16px 0px;
padding: 10px;
border-radius: 10px;
cursor: pointer;
.content-card {
&__image-wrapper {
position: relative;
overflow: hidden;
width: 150px;
min-width: 150px;
height: 150px;
border-radius: 10px;
img {
Expand All @@ -41,6 +46,13 @@ const S = {
display: flex;
flex-direction: column;
padding: 10px 0;
gap: 10px;
&__title {
font-weight: 600;
}
&__day {
font-size: 14px;
}
}
}
`,
Expand Down

0 comments on commit ec24c5f

Please sign in to comment.