Skip to content

Commit

Permalink
design: PostList 컴포넌트 레이아웃 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
shinhyojeong committed Jan 30, 2024
1 parent 43975f9 commit 300003d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
10 changes: 0 additions & 10 deletions src/components/home/ProductItem/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,7 @@ import styled from '@emotion/styled'
import { Image, ToggleButton } from '@offer-ui/react'

const Container = styled.div`
flex: 1 0 22%;
max-width: 25%;
cursor: pointer;
${({ theme }) => theme.mediaQuery.mobile} {
flex: 1 0 44%;
max-width: 48%;
}
`

const ProductImg = styled(Image)`
Expand Down
12 changes: 6 additions & 6 deletions src/components/home/ProductList/styled.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import styled from '@emotion/styled'

const ProductListWrapper = styled.div`
display: flex;
flex-wrap: wrap;
gap: 30px;
justify-content: start;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 28px 30px;
margin-top: 20px;
${({ theme }): string => theme.mediaQuery.tablet} {
gap: 18px 20px;
gap: 20px 15px;
margin-top: 20px;
}
${({ theme }): string => theme.mediaQuery.mobile} {
gap: 8px 20px;
grid-template-columns: repeat(2, 1fr);
gap: 20px 8px;
margin-top: 16px;
}
Expand Down

0 comments on commit 300003d

Please sign in to comment.