diff --git a/assets/common/logo-mobile.svg b/assets/common/logo-mobile.svg new file mode 100644 index 000000000..c5a4cb440 --- /dev/null +++ b/assets/common/logo-mobile.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/common/meta-image.png b/assets/common/meta-image.png new file mode 100644 index 000000000..158e4f5f5 Binary files /dev/null and b/assets/common/meta-image.png differ diff --git a/css/common.css b/css/common.css index 4be3af42c..e61d853e5 100644 --- a/css/common.css +++ b/css/common.css @@ -1,5 +1,5 @@ @import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css"); - +@import url("https://fonts.googleapis.com/css2?family=Abel&display=swap"); * { font-family: Pretendard, sans-serif; box-sizing: border-box; @@ -77,4 +77,4 @@ body { .button:disabled { background-color: var(--disabled); -} +}/*# sourceMappingURL=common.css.map */ \ No newline at end of file diff --git a/css/common.css.map b/css/common.css.map new file mode 100644 index 000000000..81d9db510 --- /dev/null +++ b/css/common.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["../scss/common.scss","common.css"],"names":[],"mappings":"AAAQ,2GAAA;AACA,yEAAA;AAER;EACE,mCAAA;EACA,sBAAA;EACA,UAAA;EACA,SAAA;ACAF;;ADGA;EACE,qBAAA;EACA,2BAAA;EACA,4BAAA;EACA,oBAAA;EACA,yBAAA;EACA,kBAAA;EACA,kBAAA;EACA,kBAAA;EACA,kBAAA;EACA,kBAAA;EACA,kBAAA;EACA,0BAAA;EACA,kBAAA;EACA,kBAAA;EACA,kBAAA;EACA,iBAAA;ACAF;;ADGA;EACE,eAAA;EACA,qBAAA;ACAF;;ADGA;EACE,kBAAA;EACA,uCAAA;EACA,gBAAA;EACA,oBAAA;ACAF;;ADGA,YAAA;AACA;EACE,qBAAA;EACA,mCAAA;EACA,cAAA;EACA,qBAAA;EACA,kBAAA;EACA,eAAA;EACA,gBAAA;EACA,SAAA;ACAF;;ADGA;EACE,YAAA;EACA,YAAA;EACA,kBAAA;EACA,kBAAA;EACA,iBAAA;ACAF;;ADGA;EACE,YAAA;EACA,YAAA;EACA,mBAAA;EACA,mBAAA;EACA,iBAAA;EACA,kBAAA;ACAF;;ADGA;EACE,yCAAA;ACAF;;ADGA;EACE,0CAAA;ACAF;;ADGA;EACE,iCAAA;ACAF","file":"common.css"} \ No newline at end of file diff --git a/css/index.css b/css/index.css index 27e63db93..1cad50523 100644 --- a/css/index.css +++ b/css/index.css @@ -1,22 +1,19 @@ -/* Header */ -header { +/* Heading nav */ +header#gnb { display: flex; justify-content: space-between; - border-bottom: #dfdfdf 1px solid; position: fixed; top: 0; left: 0; - width: 100%; height: 70px; padding: 10px 200px; background-color: #ffffff; - z-index: 999; } -#gnb { +nav#heading-nav { display: flex; justify-content: space-between; align-items: center; @@ -27,6 +24,10 @@ header { width: 153px; } +.logo-mobile { + display: none; +} + /* Banners */ .banner { position: relative; @@ -38,14 +39,12 @@ header { background-size: auto; background-position: 80% bottom; } - -.home-main-top.banner { +.banner.home-main-top { background-image: url("../assets/index/Img_home_top.png"); margin-top: 70px; padding: 0 200px; } - -.home-main-bottom.banner { +.banner.home-main-bottom { background-image: url("../assets/index/Img_home_bottom.png"); padding: 0 200px; } @@ -54,17 +53,16 @@ header { width: 100%; max-width: 1200px; height: 540px; - display: flex; justify-content: center; align-items: flex-start; flex-direction: column; - text-align: left; gap: 32px; } .home-main-title { + display: inline-block; font-size: 2.5rem; font-weight: 700; line-height: 56px; @@ -72,50 +70,58 @@ header { color: var(--gray700); } +h1.home-main-title { + width: 320px; +} + /* Contents */ .home-main-section { display: flex; justify-content: center; align-items: center; - width: 100%; - max-width: 100vw; + max-width: 1920px; height: 720px; + margin: 0 auto; + margin-bottom: 24px; } .home-main-content { display: flex; justify-content: flex-start; align-items: center; - - width: 100%; width: 1200px; - padding: 138px 0; + padding: 0 0; gap: 64px; } -.home-main-content.home-main-reverse { - flex-direction: row-reverse; - text-align: right; -} - .home-main-service { display: flex; flex-direction: column; gap: 18px; } +.home-main-reverse.home-main-content { + flex-direction: row-reverse; + text-align: right; +} +.home-main-reverse .home-main-service { + align-items: flex-end; +} + p.service-title { font-size: 1.125rem; font-weight: 700; - line-height: 25.2px; color: var(--brand-blue); -} /* h2 = .home-main-title */ +} + +h2.home-main-title { + width: 300px; +} p.service-desc { font-size: 1.5rem; font-weight: 500; - line-height: 28.8px; letter-spacing: 0.08em; } @@ -129,48 +135,183 @@ footer { padding: 30px 200px; background-color: var(--gray900); } - -.home-main-footer-content { +footer .home-main-footer-content { width: 100%; max-width: 1520px; display: flex; justify-content: space-between; - align-items: center; } - -.footer-left { +footer .footer-left { flex: 1; text-align: left; } - -.footer-left p { +footer .footer-left p { color: var(--gray400); + font-family: "Abel", sans-serif; } - -.footer-center { +footer .footer-center { display: flex; flex: 1; justify-content: center; text-align: center; gap: 30px; } - -.footer-center a { +footer .footer-center a { text-align: center; text-decoration: none; color: var(--gray200); + font-family: "Abel", sans-serif; } - -.footer-right { +footer .footer-right { + display: flex; + justify-content: right; + align-items: flex-start; flex: 1; - text-align: right; } - -.footer-icons a { +footer .footer-icons li { + display: flex; + justify-content: flex-start; + align-items: center; margin-left: 10px; } - -.footer-icons img { +footer .footer-icons img { width: 20px; height: 20px; } + +/* =============================== */ +/* ========= Tablet Size ========= */ +/* =============================== */ +@media (max-width: 1199px) { + header#gnb { + padding: 10px 24px; + } + .logo { + width: 153px; + } + h1.home-main-title { + width: 100%; + } + /* Banners */ + .banner { + background-position: center bottom; + } + .banner.home-main-top { + padding: 0 24px 0 24px; + height: 771px; + } + .banner.home-main-bottom { + height: 927px; + } + .home-main-desc { + padding-top: 60px; + justify-content: flex-start; + align-items: center; + text-align: center; + height: 771px; + gap: 32px; + } + /* Contents */ + .home-main-section { + height: auto; + padding: 24px; + } + .home-main-content { + flex-direction: column; + justify-content: flex-start; + align-items: center; + width: 100%; + max-width: 1200px; + height: auto; + gap: 36px; + } + .home-main-content.home-main-reverse { + text-align: right; + flex-direction: column; + } + .home-main-content img { + width: 100%; + } + .home-main-service { + width: 100%; + } + p.service-title { + font-size: 1.125rem; + font-weight: 700; + color: var(--brand-blue); + } + h2.home-main-title { + width: 100%; + font-size: 2rem; + line-height: 44.8px; + } + p.service-desc { + font-size: 1.125rem; + font-weight: 500; + letter-spacing: 0.08em; + } + /* Footer */ + footer { + padding: 30px 160px; + } +} +/* =============================== */ +/* ========= Mobile Size ========= */ +/* =============================== */ +@media (max-width: 767px) { + /* Heading nav */ + .logo { + display: none; + } + .logo-mobile { + display: block; + } + h1.home-main-title { + width: 310px; + font-size: 2rem; + line-height: 44.8px; + } + /* Banners */ + .banner.home-main-top { + padding: 0 24px 0 24px; + height: 540px; + background-size: auto 50%; + } + .banner.home-main-bottom { + height: 540px; + background-size: auto 50%; + } + .banner.home-main-bottom .home-main-desc { + padding-top: 84px; + } + .home-main-desc { + padding-top: 44px; + justify-content: flex-start; + align-items: center; + text-align: center; + height: 540px; + gap: 32px; + } + .home-main-desc .btn-large { + width: 154px; + height: 48px; + border-radius: 40px; + padding: 12px 20px; + font-size: 1rem; + } + /* Footer */ + footer { + padding: 0px; + } + footer .home-main-footer-content { + padding: 30px 30px 30px 30px; + } + footer .footer-left { + position: absolute; + left: 30px; + bottom: 30px; + } + footer .footer-center { + justify-content: flex-start; + } +}/*# sourceMappingURL=index.css.map */ \ No newline at end of file diff --git a/css/index.css.map b/css/index.css.map new file mode 100644 index 000000000..68ad2e177 --- /dev/null +++ b/css/index.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["../scss/index.scss","index.css"],"names":[],"mappings":"AAAA,gBAAA;AACA;EACE,aAAA;EACA,8BAAA;EAEA,gCAAA;EACA,eAAA;EACA,MAAA;EACA,OAAA;EAEA,WAAA;EACA,YAAA;EACA,mBAAA;EACA,yBAAA;EAEA,YAAA;ACFF;;ADKA;EACE,aAAA;EACA,8BAAA;EACA,mBAAA;EACA,WAAA;ACFF;;ADKA;EACE,YAAA;ACFF;;ADKA;EACE,aAAA;ACFF;;ADKA,YAAA;AACA;EACE,kBAAA;EACA,aAAA;EACA,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A;IACA,mBAAA;IACA,kBAAA;IACA,eAAA;EC9CJ;EDkDA,WAAA;EACA;IACE,YAAA;EChDF;EDkDE;IACE,4BAAA;EChDJ;EDmDE;IACE,kBAAA;IACA,UAAA;IACA,YAAA;ECjDJ;EDmDE;IACE,2BAAA;ECjDJ;AACF","file":"index.css"} \ No newline at end of file diff --git a/css/login.css b/css/login.css index 2f9235eca..8932f6482 100644 --- a/css/login.css +++ b/css/login.css @@ -19,6 +19,7 @@ header { form { display: flex; flex-direction: column; + width: 640px; gap: 24px; } @@ -49,19 +50,21 @@ form label { border: #3692ff 1px solid; } +.form-input::-moz-placeholder { + color: var(--gray400); +} + .form-input::placeholder { color: var(--gray400); } a.password-inv { position: absolute; - top: 56px; - right: 20px; - + bottom: 16px; + right: 24px; display: inline-block; width: 24px; height: 24px; - background-image: url("../assets/login/btn_visibility_off_24px.svg"); background-repeat: no-repeat; background-position: center; @@ -76,7 +79,6 @@ a.password-inv { display: flex; justify-content: space-between; align-items: center; - width: 640px; height: 74px; border-radius: 8px; @@ -115,3 +117,69 @@ a.password-inv { .bottom-link { color: #3182f6; } + +/* =============================== */ +/* ========= Mobile Size ========= */ +/* =============================== */ +@media (max-width: 767px) { + body { + padding: 0 24px; + } + main { + width: 100%; + max-width: 400px; + } + header { + margin: 47px 24px 24px 24px; + } + .logo { + width: 198px; + } + /* Form */ + form { + width: 100%; + max-width: 400px; + } + .form-group { + gap: 12px; + } + form label { + font-weight: 700; + font-size: 0.875rem; + display: inline-block; + } + .form-input { + width: 100%; + height: 56px; + padding: 16px 24px 16px 24px; + border-radius: 12px; + border: 0; + gap: 10px; + background-color: var(--gray100); + } + .form-input:focus { + border: #3692ff 1px solid; + } + .form-input::-moz-placeholder { + color: var(--gray400); + } + .form-input::placeholder { + color: var(--gray400); + } + a.password-inv { + position: absolute; + bottom: 16px; + right: 24px; + display: inline-block; + width: 24px; + height: 24px; + } + .button.btn-large.login-button { + width: 100%; + font-size: 16px; + } + /* Social Login */ + .social-login-div { + width: 100%; + } +}/*# sourceMappingURL=login.css.map */ \ No newline at end of file diff --git a/css/login.css.map b/css/login.css.map new file mode 100644 index 000000000..6a446cb22 --- /dev/null +++ b/css/login.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["../scss/login.scss","login.css"],"names":[],"mappings":"AAAA;;EAEE,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,sBAAA;EACA,SAAA;ACCF;;ADEA;EACE,2BAAA;ACCF;;ADEA;EACE,YAAA;ACCF;;ADEA,SAAA;AACA;EACE,aAAA;EACA,sBAAA;EACA,YAAA;EACA,SAAA;ACCF;;ADEA;EACE,kBAAA;EACA,aAAA;EACA,sBAAA;EACA,SAAA;ACCF;;ADEA;EACE,gBAAA;EACA,mBAAA;EACA,qBAAA;ACCF;;ADEA;EACE,WAAA;EACA,YAAA;EACA,4BAAA;EACA,mBAAA;EACA,SAAA;EACA,SAAA;EACA,gCAAA;ACCF;;ADEA;EACE,yBAAA;ACCF;;ADEA;EACE,qBAAA;ACCF;;ADFA;EACE,qBAAA;ACCF;;ADEA;EACE,kBAAA;EACA,YAAA;EACA,WAAA;EAEA,qBAAA;EACA,WAAA;EACA,YAAA;EAEA,oEAAA;EACA,4BAAA;EACA,2BAAA;ACDF;;ADIA;EACE,YAAA;ACDF;;ADIA,iBAAA;AACA;EACE,aAAA;EACA,8BAAA;EACA,mBAAA;EAEA,YAAA;EACA,YAAA;EACA,kBAAA;EACA,eAAA;EACA,yBAAA;ACFF;;ADKA;EACE,qBAAA;EACA,OAAA;EACA,gBAAA;ACFF;;ADKA;EACE,qBAAA;EACA,qBAAA;EACA,WAAA;EACA,YAAA;ACFF;;ADKA;EACE,yBAAA;EACA,yBAAA;EACA,wDAAA;EACA,4BAAA;EACA,2BAAA;ACFF;;ADKA;EACE,yBAAA;EACA,uDAAA;EACA,4BAAA;EACA,2BAAA;ACFF;;ADKA;EACE,cAAA;ACFF;;ADKA,oCAAA;AACA,oCAAA;AACA,oCAAA;AAEA;EACE;IACE,eAAA;ECHF;EDMA;IACE,WAAA;IACA,gBAAA;ECJF;EDOA;IACE,2BAAA;ECLF;EDQA;IACE,YAAA;ECNF;EDSA,SAAA;EACA;IACE,WAAA;IACA,gBAAA;ECPF;EDUA;IACE,SAAA;ECRF;EDWA;IACE,gBAAA;IACA,mBAAA;IACA,qBAAA;ECTF;EDYA;IACE,WAAA;IACA,YAAA;IACA,4BAAA;IACA,mBAAA;IACA,SAAA;IACA,SAAA;IACA,gCAAA;ECVF;EDaA;IACE,yBAAA;ECXF;EDcA;IACE,qBAAA;ECZF;EDWA;IACE,qBAAA;ECZF;EDeA;IACE,kBAAA;IACA,YAAA;IACA,WAAA;IAEA,qBAAA;IACA,WAAA;IACA,YAAA;ECdF;EDiBA;IACE,WAAA;IACA,eAAA;ECfF;EDkBA,iBAAA;EACA;IACE,WAAA;EChBF;AACF","file":"login.css"} \ No newline at end of file diff --git a/html/index.html b/html/index.html index f214350ef..9e1a336f9 100644 --- a/html/index.html +++ b/html/index.html @@ -3,37 +3,67 @@ + + + + + + + + + + + + + + + + + 판다마켓 - - - + + + + - -
- -
- - 로그인 -
+ +
+
- 홈 이미지 1 + 홈 이미지 1

Hot Item

-

인기 상품을
확인해 보세요

+

인기 상품을 확인해 보세요

가장 HOT한 중고거래 물품을
판다 마켓에서 확인해 보세요 @@ -44,12 +74,10 @@

인기 상품을
확인해 보세요

- 홈 이미지 2 + 홈 이미지 2

Search

-

- 구매를 원하는
상품을 검색하세요 -

+

구매를 원하는 상품을 검색하세요

구매하고 싶은 물품은 검색해서
쉽게 찾아보세요 @@ -60,12 +88,10 @@

- 홈 이미지 3 + 홈 이미지 3

Register

-

- 판매를 원하는
상품을 등록하세요 -

+

판매를 원하는 상품을 등록하세요

어떤 물건이든 판매하고 싶은 상품을
쉽게 등록하세요 @@ -80,6 +106,7 @@

믿을 수 있는
판다마켓 중고거래

+

diff --git a/html/login.html b/html/login.html index b40c099f2..df01a3d4b 100644 --- a/html/login.html +++ b/html/login.html @@ -40,11 +40,9 @@ /> -
- -
+
diff --git a/scss/common.scss b/scss/common.scss new file mode 100644 index 000000000..0170207b2 --- /dev/null +++ b/scss/common.scss @@ -0,0 +1,81 @@ +@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css"); +@import url("https://fonts.googleapis.com/css2?family=Abel&display=swap"); + +* { + font-family: Pretendard, sans-serif; + box-sizing: border-box; + padding: 0; + margin: 0; +} + +:root { + --brand-blue: #3692ff; + --brand-blue-hover: #1967d6; + --brand-blue-active: #1251aa; + --brand-red: #f74747; + --error: var(--brand-red); + --gray900: #111827; + --gray800: #1f2937; + --gray700: #374151; + --gray600: #4b5563; + --gray500: #6b7280; + --gray400: #9ca3af; + --disabled: var(--gray400); + --gray300: #d1d5db; + --gray200: #e5e7eb; + --gray100: #f3f4f6; + --gray50: #f9fafb; +} + +html { + font-size: 16px; + color: var(--gray800); +} + +body { + position: relative; + font-family: "Pretendard", "sans-serif"; + font-weight: 400; + word-break: keep-all; +} + +/* Buttons */ +.button { + display: inline-block; + background-color: var(--brand-blue); + color: #ffffff; + text-decoration: none; + text-align: center; + cursor: pointer; + font-weight: 600; + border: 0; +} + +.btn-small { + width: 128px; + height: 48px; + border-radius: 8px; + padding: 12px 20px; + line-height: 24px; +} + +.btn-large { + width: 355px; + height: 56px; + border-radius: 40px; + padding: 16px 114px; + line-height: 24px; + font-size: 1.25rem; // 20px; +} + +.button:hover { + background-color: var(--brand-blue-hover); +} + +.button:active { + background-color: var(--brand-blue-active); +} + +.button:disabled { + background-color: var(--disabled); +} diff --git a/scss/index.scss b/scss/index.scss new file mode 100644 index 000000000..4b53cca85 --- /dev/null +++ b/scss/index.scss @@ -0,0 +1,368 @@ +/* Heading nav */ +header#gnb { + display: flex; + justify-content: space-between; + + border-bottom: #dfdfdf 1px solid; + position: fixed; + top: 0; + left: 0; + + width: 100%; + height: 70px; + padding: 10px 200px; + background-color: #ffffff; + + z-index: 999; +} + +nav#heading-nav { + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; +} + +.logo { + width: 153px; +} + +.logo-mobile { + display: none; +} + +/* Banners */ +.banner { + position: relative; + display: flex; + justify-content: center; + align-items: center; + background-color: #cfe5ff; + background-repeat: no-repeat; + background-size: auto; + background-position: 80% bottom; + + &.home-main-top { + background-image: url("../assets/index/Img_home_top.png"); + margin-top: 70px; + padding: 0 200px; + } + + &.home-main-bottom { + background-image: url("../assets/index/Img_home_bottom.png"); + padding: 0 200px; + } +} + +.home-main-desc { + width: 100%; + max-width: 1200px; + height: 540px; + + display: flex; + justify-content: center; + align-items: flex-start; + flex-direction: column; + + text-align: left; + gap: 32px; +} + +.home-main-title { + display: inline-block; + font-size: 2.5rem; // 40px + font-weight: 700; + line-height: 56px; + letter-spacing: 0.02em; // 2% + color: var(--gray700); +} + +h1.home-main-title { + width: 320px; +} + +/* Contents */ +.home-main-section { + display: flex; + justify-content: center; + align-items: center; + + width: 100%; + max-width: 1920px; + height: 720px; + margin: 0 auto; + margin-bottom: 24px; +} + +.home-main-content { + display: flex; + justify-content: flex-start; + align-items: center; + + width: 1200px; + padding: 0 0; + gap: 64px; +} + +.home-main-service { + display: flex; + flex-direction: column; + gap: 18px; +} + +.home-main-reverse { + &.home-main-content { + flex-direction: row-reverse; + text-align: right; + } + & .home-main-service { + align-items: flex-end; + } +} + +p.service-title { + font-size: 1.125rem; // 18px + font-weight: 700; + color: var(--brand-blue); +} + +h2.home-main-title { + width: 300px; +} + +p.service-desc { + font-size: 1.5rem; // 24px + font-weight: 500; + letter-spacing: 0.08em; // 8% +} + +/* Footer */ +footer { + display: flex; + justify-content: center; + width: 100%; + max-width: 100vw; + height: 160px; + padding: 30px 200px; + background-color: var(--gray900); + + & .home-main-footer-content { + width: 100%; + max-width: 1520px; + display: flex; + justify-content: space-between; + } + + & .footer-left { + flex: 1; + text-align: left; + p { + color: var(--gray400); + font-family: "Abel", sans-serif; + } + } + + & .footer-center { + display: flex; + flex: 1; + justify-content: center; + text-align: center; + gap: 30px; + + a { + text-align: center; + text-decoration: none; + color: var(--gray200); + font-family: "Abel", sans-serif; + } + } + + & .footer-right { + display: flex; + justify-content: right; + align-items: flex-start; + flex: 1; + } + + & .footer-icons { + li { + display: flex; + justify-content: flex-start; + align-items: center; + margin-left: 10px; + } + + img { + width: 20px; + height: 20px; + } + } +} + +/* =============================== */ +/* ========= Tablet Size ========= */ +/* =============================== */ + +@media (max-width: 1199px) { + header#gnb { + padding: 10px 24px; + } + + .logo { + width: 153px; + } + + h1.home-main-title { + width: 100%; + } + + /* Banners */ + .banner { + background-position: center bottom; + + &.home-main-top { + padding: 0 24px 0 24px; + height: 771px; + } + + &.home-main-bottom { + height: 927px; + } + } + + .home-main-desc { + padding-top: 60px; + justify-content: flex-start; + align-items: center; + text-align: center; + height: 771px; + gap: 32px; + } + + /* Contents */ + .home-main-section { + height: auto; + padding: 24px; + } + + .home-main-content { + flex-direction: column; + justify-content: flex-start; + align-items: center; + + width: 100%; + max-width: 1200px; + height: auto; + gap: 36px; + + &.home-main-reverse { + text-align: right; + flex-direction: column; + } + + & img { + width: 100%; + } + } + + .home-main-service { + width: 100%; + } + + p.service-title { + font-size: 1.125rem; // 18px + font-weight: 700; + color: var(--brand-blue); + } + + h2.home-main-title { + width: 100%; + font-size: 2rem; // 32px + line-height: 44.8px; + } + + p.service-desc { + font-size: 1.125rem; // 18px + font-weight: 500; + letter-spacing: 0.08em; // 8% + } + + /* Footer */ + footer { + padding: 30px 160px; + } +} + +/* =============================== */ +/* ========= Mobile Size ========= */ +/* =============================== */ + +@media (max-width: 767px) { + /* Heading nav */ + .logo { + display: none; + } + + .logo-mobile { + display: block; + } + + h1.home-main-title { + width: 310px; + font-size: 2rem; // 32px + line-height: 44.8px; + } + + /* Banners */ + .banner { + &.home-main-top { + padding: 0 24px 0 24px; + height: 540px; + background-size: auto 50%; + } + + &.home-main-bottom { + height: 540px; + background-size: auto 50%; + + & .home-main-desc { + padding-top: 84px; + } + } + } + + .home-main-desc { + padding-top: 44px; + justify-content: flex-start; + align-items: center; + text-align: center; + height: 540px; + gap: 32px; + + & .btn-large { + width: 154px; + height: 48px; + border-radius: 40px; + padding: 12px 20px; + font-size: 1rem; // 16px + } + } + + /* Footer */ + footer { + padding: 0px; + + & .home-main-footer-content { + padding: 30px 30px 30px 30px; + } + + & .footer-left { + position: absolute; + left: 30px; + bottom: 30px; + } + & .footer-center { + justify-content: flex-start; + } + } +} diff --git a/scss/login.scss b/scss/login.scss new file mode 100644 index 000000000..fc42e7c3a --- /dev/null +++ b/scss/login.scss @@ -0,0 +1,195 @@ +body, +main { + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + gap: 24px; +} + +header { + margin: 60px 24px 24px 24px; +} + +.logo { + width: 396px; +} + +/* Form */ +form { + display: flex; + flex-direction: column; + width: 640px; + gap: 24px; +} + +.form-group { + position: relative; + display: flex; + flex-direction: column; + gap: 16px; +} + +form label { + font-weight: 700; + font-size: 1.125rem; // 18px + display: inline-block; +} + +.form-input { + width: 100%; + height: 56px; + padding: 16px 24px 16px 24px; + border-radius: 12px; + border: 0; + gap: 10px; + background-color: var(--gray100); +} + +.form-input:focus { + border: #3692ff 1px solid; +} + +.form-input::placeholder { + color: var(--gray400); +} + +a.password-inv { + position: absolute; + bottom: 16px; + right: 24px; + + display: inline-block; + width: 24px; + height: 24px; + + background-image: url("../assets/login/btn_visibility_off_24px.svg"); + background-repeat: no-repeat; + background-position: center; +} + +.button.btn-large.login-button { + width: 640px; +} + +/* Social Login */ +.social-login-div { + display: flex; + justify-content: space-between; + align-items: center; + + width: 640px; + height: 74px; + border-radius: 8px; + padding: 0 24px; + background-color: #e6f2ff; +} + +.social-login-div span { + display: inline-block; + flex: 1; + font-weight: 600; +} + +.circular-button { + display: inline-block; + border-radius: 9999px; + width: 42px; + height: 42px; +} + +.google-social-login { + border: 1px solid #f9fafb; + background-color: #ffffff; + background-image: url("../assets/login/Google-icon.svg"); + background-repeat: no-repeat; + background-position: center; +} + +.kakao-social-login { + background-color: #f5e14b; + background-image: url("../assets/login/kakao-icon.svg"); + background-repeat: no-repeat; + background-position: center; +} + +.bottom-link { + color: #3182f6; +} + +/* =============================== */ +/* ========= Mobile Size ========= */ +/* =============================== */ + +@media (max-width: 767px) { + body { + padding: 0 24px; + } + + main { + width: 100%; + max-width: 400px; + } + + header { + margin: 47px 24px 24px 24px; + } + + .logo { + width: 198px; + } + + /* Form */ + form { + width: 100%; + max-width: 400px; + } + + .form-group { + gap: 12px; + } + + form label { + font-weight: 700; + font-size: 0.875rem; // 14px + display: inline-block; + } + + .form-input { + width: 100%; + height: 56px; + padding: 16px 24px 16px 24px; + border-radius: 12px; + border: 0; + gap: 10px; + background-color: var(--gray100); + } + + .form-input:focus { + border: #3692ff 1px solid; + } + + .form-input::placeholder { + color: var(--gray400); + } + + a.password-inv { + position: absolute; + bottom: 16px; + right: 24px; + + display: inline-block; + width: 24px; + height: 24px; + } + + .button.btn-large.login-button { + width: 100%; + font-size: 16px; + } + + /* Social Login */ + .social-login-div { + width: 100%; + } +}