Skip to content

Commit

Permalink
style: 화면 사이즈에 따라 너비 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
solar3070 committed Nov 20, 2023
1 parent 27c9d13 commit 31cb945
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions src/views/MainPage/components/IntroSection/IntroContent/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,16 @@ export const IntroWrapper = styled(motion.div)`

export const Intro = styled.div`
position: relative;
@media (min-width: 769px) {
padding: 0 75px;
}
`;

export const AnimatedLine = styled(motion.svg)`
position: absolute;
top: 65px;
left: -53px;
left: 16px;
z-index: 20;
width: 20px;
Expand All @@ -61,7 +65,7 @@ export const Circle = styled(motion.div)`
position: absolute;
top: -148px;
left: -410.91px;
left: -340.91px;
z-index: 30;
width: 735.833px;
Expand Down Expand Up @@ -104,14 +108,15 @@ export const Content = styled(motion.div)`
'title image'
'desc image';
grid-template-rows: auto 1fr;
grid-template-columns: minmax(250px, 1fr) minmax(323px, 1fr);
grid-gap: 24px 57px;
position: relative;
z-index: 40;
@media (max-width: 1440px) and (min-width: 769px) {
grid-template-rows: auto 1fr;
grid-gap: 24px 0px;
grid-gap: 24px 15px;
}
@media (max-width: 768px) {
Expand All @@ -120,15 +125,14 @@ export const Content = styled(motion.div)`
'title'
'desc';
grid-template-rows: auto auto 1fr;
grid-template-columns: none;
grid-gap: 16px;
font-size: 28px;
}
`;

export const ContentTitle = styled(motion.h2)`
grid-area: title;
width: 590px;
margin-top: 38px;
background: linear-gradient(93deg, #e1edf0 78.65%, #fff 128.82%, #e6eff2 137.19%);
Expand Down Expand Up @@ -158,7 +162,6 @@ export const ContentTitle = styled(motion.h2)`

export const ContentDetail = styled(motion.h3)`
grid-area: desc;
width: 590px;
color: #b9c7c8;
font-family: SUIT;
Expand Down Expand Up @@ -189,8 +192,12 @@ export const ContentImage = styled(Image)`
border-radius: 50px;
@media (max-width: 1440px) and (min-width: 769px) {
width: 540px;
height: 360px;
width: 100%;
max-width: 540px;
min-width: 323px;
min-height: 215px;
height: auto;
border-radius: 36px;
}
@media (max-width: 768px) {
Expand Down

0 comments on commit 31cb945

Please sign in to comment.