Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/pages/main/components/CarouselContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,17 @@ const CarouselWrapper = styled.section`
display: flex;
gap: 5rem;
width: 93rem;

cursor: pointer;
`;

const CarouselContentLayout = styled.div`
display: flex;
gap: 3.6rem;
width: 100%;
height: 24rem;
padding: 3.6rem;
width: 100%;

background-color: ${({ theme }) => theme.colors.white};
border-radius: 8px;

Expand Down
17 changes: 12 additions & 5 deletions src/pages/main/components/GroupCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ const NoImageContents = styled.span`
const Contents = styled.span`
display: -webkit-box;
width: 100%;

margin-top: 1rem;
overflow: hidden;

Expand Down Expand Up @@ -204,10 +203,11 @@ const PostCard = styled.article`
const CarouselWrapper = styled.div`
flex-direction: column;
height: 29.4rem;

cursor: default;

@media ${MOBILE_MEDIA_QUERY} {
height: 34.4rem;
padding: 0 2rem;
}
`;

Expand All @@ -234,6 +234,10 @@ const GroupButton = styled.button`
stroke: #6139d1;
}
}

@media ${MOBILE_MEDIA_QUERY} {
margin-left: 2rem;
}
`;

const CarouselLayout = styled.div`
Expand All @@ -245,6 +249,11 @@ const CarouselLayout = styled.div`
::-webkit-scrollbar {
display: none;
}

@media ${MOBILE_MEDIA_QUERY} {
padding: 0 2rem;
overflow: scroll;
}
`;

const CarouselContainer = styled(Slider)`
Expand All @@ -254,13 +263,12 @@ const CarouselContainer = styled(Slider)`
.slick-list {
width: 100%;
}

.slick-slide.slick-active:last-child {
width: 75.4rem !important;
}

@media ${MOBILE_MEDIA_QUERY} {
/* width: 45rem; */

display: flex;
gap: 2rem;
width: 100%;
Expand All @@ -277,7 +285,6 @@ const PostContainer = styled.div`
display: flex;
gap: 2rem;
width: 100%;

height: 29rem;
overflow: hidden;
`;