diff --git a/src/components/common/header/index.tsx b/src/components/common/header/index.tsx index 7fad426..e05db31 100644 --- a/src/components/common/header/index.tsx +++ b/src/components/common/header/index.tsx @@ -23,7 +23,7 @@ export const Header = () => { return ( <> - + Xquare Infra @@ -31,9 +31,10 @@ export const Header = () => { 소개 고객 지원 - - + + + > @@ -42,40 +43,60 @@ export const Header = () => { const Wrapper = styled.div<{ scroll: number }>` position: fixed; - transition: 0.25s linear; + transition: 0.25s ease-in-out; top: 0; left: 0; width: 100%; - height: 110px; + height: 80px; display: flex; justify-content: space-between; padding: 0 90px 0 90px; align-items: center; color: ${({ scroll }) => (scroll === 0 ? 'white' : scroll >= 408 ? 'rgba(0,0,0,0)' : 'black')}; - background-color: ${({ scroll }) => (scroll === 0 ? 'rgba(0,0,0,0)' : scroll >= 408 ? 'rgba(0,0,0,0)' : 'white')}; z-index: 999; `; +const WrapperBackground = styled.div<{ scroll: number }>` + height: ${({ scroll }) => (scroll < 408 ? '80px' : '0px')}; + background-color: white; + opacity: ${({ scroll }) => (scroll === 0 ? 0 : 1)}; + position: absolute; + transition: + opacity 0.25s linear, + height 0.5s ease-in-out; + top: 0px; + left: 0px; + width: 100vw; + z-index: -1; +`; + const Center = styled.div` width: 254px; display: flex; justify-content: space-between; + font-size: 16px; + font-weight: 500; `; -const Side = styled.div` +const Side = styled.div<{ scroll: number }>` width: 300px; display: flex; align-items: center; + justify-content: start; font-size: 30px; + font-weight: 700; > span { + transition: 0.25s ease-in-out; margin-left: 14px; + color: ${({ scroll }) => (scroll === 0 ? 'white' : scroll >= 408 ? '#9650fa' : 'black')}; } `; -const Button = styled.div` +const Button = styled.div<{ scroll: number }>` + transition: 0.25s ease-in-out; width: 192px; - height: 52px; + height: 40px; border-radius: 8px; - border: 2px white solid; - justify-self: end; + border: 2px ${({ scroll }) => (scroll === 0 ? 'white' : 'black')} solid; + margin-left: 108px; `; diff --git a/src/pages/Main.tsx b/src/pages/Main.tsx index b275be7..f430794 100644 --- a/src/pages/Main.tsx +++ b/src/pages/Main.tsx @@ -5,17 +5,29 @@ export const Main = () => { return ( - - + + + + 프로젝트를 빠르게 배포하는 경험을 할 수 있습니다. 스퀘어는 보다 쉬운 방법으로 배포할 수 있고 쉽게 모니터링 할 수 있습니다. - + 자세히 보기 + b + c + + FREE TRIAL + + 대마고 학생이라면 ‘스퀘어 인프라’ 를 + 무료로 사용할 수 있습니다. + + + ); }; @@ -35,21 +47,70 @@ const Container = styled.div` position: relative; `; -const FirstContainerBox = styled.div` +const MainContainer = styled.div` + width: 1170px; + display: flex; + flex-direction: column; + align-items: start; + justify-content: center; position: absolute; - top: 200px; - left: 214px; - width: 922px; - height: 690px; + top: 250px; + left: auto; + right: auto; color: white; + z-index: 3; > div:nth-child(1) { - font-size: 64px; - font-weight: 800; - margin-top: 20px; + font-size: 48px; + font-weight: 700; } > div:nth-child(2) { - font-size: 30px; - font-weight: 500; - margin-top: 50px; + margin: 32px 0 64px 0; + font-size: 20px; + } + > div:nth-child(3) { + width: 190px; + height: 64px; + border: 1px white solid; + border-radius: 6px; + display: flex; + align-items: center; + justify-content: center; + font-size: 16px; + font-weight: 700; + } +`; + +const SubFooter = styled.div` + width: 100%; + height: 710px; + padding-top: 150px; + display: flex; + flex-direction: column; + align-items: center; + background-color: #6fe09e; +`; + +const ImgWrapper = styled.div` + width: 100%; + height: 100%; + position: relative; + + &::after { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.3); /* 빨간색으로 변경 */ + z-index: 2; } `; + +const Img = styled.img` + width: 100%; + height: 100%; + object-fit: cover; + position: relative; + z-index: 1; +`;