Skip to content

Commit

Permalink
fix: 메인페이지 카드 너비, 정렬 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Songhyejeong committed Dec 13, 2024
1 parent a5bc660 commit fd1faf3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/common/slider/sliderSetting.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ const sliderSettings = {
},

{
breakpoint: 420,
breakpoint: 500,
settings: {
centerMode: true,
centerMode: false,
slidesToShow: 1,
slidesToScroll: 1,
initialSlide: 0,
Expand Down
11 changes: 9 additions & 2 deletions src/components/main/slider/StoreCardWrap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Orange } from '../../../color';

const StoreCardWrapper = ({ ranking, store, index }) => {
return (
<div>
<CardWrapper>
{ranking && <RankingText>{index + 1}</RankingText>}
<StoreCard
image={store.imageUrls}
Expand All @@ -15,7 +15,7 @@ const StoreCardWrapper = ({ ranking, store, index }) => {
keyword={store.positiveKeywords}
name={store.name}
/>
</div>
</CardWrapper>
);
};
export default StoreCardWrapper;
Expand All @@ -25,3 +25,10 @@ const RankingText = styled.p`
font-weight: bold;
font-size: 24px;
`;

const CardWrapper = styled.div`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
`;
2 changes: 1 addition & 1 deletion src/components/storeCard/StoreCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const StoreCardContainer = styled.div`
}
@media screen and (max-width: 500px) {
width: 200px;
width: 300px;
margin: 5px;
height: 280px;
Expand Down

0 comments on commit fd1faf3

Please sign in to comment.