Skip to content

Commit

Permalink
[ disign ] moodPiickle grid로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
NaveOWO committed Jul 22, 2022
1 parent 39175ab commit e5dcabb
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions src/components/Main/MoodPiickle/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,41 @@ export const St = {
`,

CategoryWrapper: styled.div`
display: flex;
flex-wrap: wrap;
gap: 0.8rem;
justify-content: center;
padding: 0 1.6rem;
height: 37.6rem;
width: 36rem;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, 1fr);
grid-gap: 0.8rem;
`,

CategoryOneLine: styled.div`
height: 16rem;
`,

Category: styled.article<{ imgUrl: string }>`
position: relative;
flex: 1;
flex-direction: column;
aspect-ratio: 1 / 1;
width: 16rem;
box-sizing: border-box;
Category: styled.article<{
columnStart: number;
columnEnd: number;
rowStart: number;
rowEnd: number;
imgUrl: string;
}>`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 0.1rem solid #e0e0e0;
border-radius: 1.6rem;
align-items: center;
justify-content: center;
background: url(${({ imgUrl }) => imgUrl});
background-size: cover;
grid-column-start: ${({ columnStart }) => columnStart};
grid-column-end: ${({ columnEnd }) => columnEnd};
grid-row-start: ${({ rowStart }) => rowStart};
grid-row-end: ${({ rowEnd }) => rowEnd};
`,

CategoryTitle: styled.strong`
Expand Down

0 comments on commit e5dcabb

Please sign in to comment.