From eda6def0791abb28f25fd69d999f6716f029e40a Mon Sep 17 00:00:00 2001 From: YoungseoChoi23 Date: Thu, 22 Aug 2024 02:48:27 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Style=20:=20=EB=A9=94=EC=9D=B8?= =?UTF-8?q?=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=B0=98=EC=9D=91=ED=98=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/introduce/main_bottom.svg | 13 ++++++--- src/pages/IntroducePage/Main.jsx | 40 +++++++++++++++++++++------- 2 files changed, 40 insertions(+), 13 deletions(-) diff --git a/src/assets/introduce/main_bottom.svg b/src/assets/introduce/main_bottom.svg index 0efd6b23..6d1f65bd 100644 --- a/src/assets/introduce/main_bottom.svg +++ b/src/assets/introduce/main_bottom.svg @@ -1,13 +1,18 @@ - + + + - + - - + + + + + diff --git a/src/pages/IntroducePage/Main.jsx b/src/pages/IntroducePage/Main.jsx index 2cfa7eb0..44c3bebe 100644 --- a/src/pages/IntroducePage/Main.jsx +++ b/src/pages/IntroducePage/Main.jsx @@ -27,14 +27,8 @@ const Main = () => { src={main_bottom} alt="main_bottom" /> + 음악지도 보러가기 - - main_bottom_text - ); @@ -49,6 +43,7 @@ const BackgroundWrapper = styled.div` z-index: 0; `; const Wrapper = styled.div` + min-width: 1000px; position: relative; z-index: 1; `; @@ -56,18 +51,34 @@ const Center = styled.div` position: fixed; left: 50%; z-index: 1; - top: 85px; transform: translateX(-50%); + @media (min-width: 1024px) { + img { + width: 100%; /*1024px보다 클 때 width 100%*/ + } + } + @media (max-width: 1024px) { + img { + width: 100%; /*1024px보다 작을 때 width 10%*/ + } + } `; const Bottom = styled.div` + position: relative; img { width: 810.9px; height: 366.3px; position: fixed; left: 50%; bottom: 0px; + z-index: 2; transform: translateX(-50%); cursor: pointer; + @media (min-width: 1024px) { + width: 100%; /*1024px보다 클 때 width 100%*/ + } + @media (max-width: 1024px) { + } } `; const BottomText = styled.div` @@ -75,8 +86,19 @@ const BottomText = styled.div` left: 50%; bottom: 80px; transform: translateX(-50%); - z-index: 2; + z-index: 3; + color: var(--light_black, #232323); + text-align: center; + font-size: 32px; + font-style: normal; + font-weight: 700; + line-height: 40px; /* 125% */ cursor: pointer; + @media (max-width: 768px) { + postiion: absolute; + bottom: 80px; + } + white-space: nowrap; `; export default Main;