-
Notifications
You must be signed in to change notification settings - Fork 1
구현 과제 - 로그인/회원가입 모달 - 윤상 #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kys0417
wants to merge
3
commits into
main
Choose a base branch
from
11-yoonsang
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,227 @@ | ||
| /* font */ | ||
| @import url(//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSansNeo.css); | ||
|
|
||
| :root { | ||
| --text-color: #767676; | ||
| --title-color: black; | ||
| --border-color: #c4c4c4; | ||
| --warn-color: #f4492e; | ||
| --button-color: #2f80ed; | ||
| } | ||
| /* reset */ | ||
| body, | ||
| ul, | ||
| li, | ||
| h1, | ||
| h2 { | ||
| margin: 0; | ||
| padding: 0; | ||
| } | ||
| img { | ||
| vertical-align: top; | ||
| } | ||
| h1, | ||
| h2, | ||
| input { | ||
| font: inherit; | ||
| } | ||
| a { | ||
| text-decoration: none; | ||
| color: inherit; | ||
| } | ||
| button { | ||
| padding: 0; | ||
| margin: 0; | ||
| box-sizing: border-box; | ||
| font: inherit; | ||
| border: 0; | ||
| background: none; | ||
| } | ||
| button:enabled, | ||
| img:hover, | ||
| a:hover { | ||
| cursor: pointer; | ||
| } | ||
| ul, | ||
| li { | ||
| list-style: none; | ||
| } | ||
| /* layout */ | ||
| body { | ||
| display: flex; | ||
| flex-direction: column; | ||
| min-height: 100vh; | ||
| } | ||
| .modal { | ||
| width: 520px; | ||
| max-width: 100%; | ||
| margin: auto; | ||
| } | ||
| /* css */ | ||
| body { | ||
| font-family: "Spoqa Han Sans Neo", "sans-serif"; | ||
| color: var(--text-color); | ||
| } | ||
| .modal { | ||
| border-radius: 10px; | ||
| border: 1px solid var(--border-color); | ||
| font-size: 16px; | ||
| } | ||
| /* header */ | ||
| .header { | ||
| display: flex; | ||
| border-bottom: 1px solid var(--border-color); | ||
| justify-content: center; | ||
| position: relative; | ||
| } | ||
| .header img { | ||
| width: 16px; | ||
| position: absolute; | ||
| right: 24px; | ||
| top: 23px; | ||
| } | ||
| .header .title { | ||
| color: var(--title-color); | ||
| font-weight: 500; | ||
| padding: 20px 0; | ||
| } | ||
| .main { | ||
| padding: 26px 24px 25px 24px; | ||
| } | ||
| /* section1 */ | ||
| .section1 { | ||
| margin-bottom: 36px; | ||
| } | ||
| .section1 .subtitle { | ||
| color: var(--title-color); | ||
| font-size: 20px; | ||
| font-weight: 500; | ||
| } | ||
| .section1 .login-form { | ||
| margin: 24px 0 20px 0; | ||
| display: flex; | ||
| flex-direction: column; | ||
| } | ||
| [class^="input"] { | ||
| box-sizing: border-box; | ||
| padding: 15px 0 15px 16px; | ||
| border-radius: 5px; | ||
| border: 1px solid var(--border-color); | ||
| } | ||
| /* warn*/ | ||
| .section1 .input-id { | ||
| border: 2px solid var(--warn-color); | ||
| } | ||
| [class^="warn"] { | ||
| box-sizing: border-box; | ||
| padding: 6px 0 10px 0.3em; | ||
| color: var(--warn-color); | ||
| font-size: 14px; | ||
| font-weight: 400; | ||
| } | ||
| /* section1 custom-check-box */ | ||
| .section1 .check-box { | ||
| display: flex; | ||
| } | ||
| .section1 .check-box .check-hide { | ||
| overflow: hidden; | ||
| width: 1px; | ||
| height: 1px; | ||
| margin: 1px; | ||
| clip-path: inset(50%); | ||
| } | ||
| .section1 .label-check-box { | ||
| position: relative; | ||
| } | ||
| .section1 .label-check-box::before { | ||
| display: inline-block; | ||
| content: ""; | ||
| width: 22px; | ||
| height: 22px; | ||
| border: 1px solid var(--text-color); | ||
| vertical-align: -6px; | ||
| margin-right: 8px; | ||
| border-radius: 50%; | ||
| } | ||
| .check-hide:checked + .label-check-box::before { | ||
| background-color: var(--button-color); | ||
| border: 1px solid var(--button-color); | ||
| } | ||
| .section1 .label-check-box::after { | ||
| content: ""; | ||
| position: absolute; | ||
| width: 8px; | ||
| height: 5px; | ||
| left: 8px; | ||
| top: 8px; | ||
| border-left: 1px solid var(--text-color); | ||
| border-bottom: 1px solid var(--text-color); | ||
| transform: rotate(-45deg); | ||
| } | ||
| .check-hide:checked + .label-check-box::after { | ||
| border-left: 1px solid white; | ||
| border-bottom: 1px solid white; | ||
| } | ||
| /* section1 login-button */ | ||
| .section1 .login-button { | ||
| box-sizing: border-box; | ||
| background-color: var(--button-color); | ||
| color: white; | ||
| font-size: 18px; | ||
| font-weight: 600; | ||
| padding: 14px 0; | ||
| border-radius: 5px; | ||
| margin-top: 21px; | ||
| } | ||
| /* section1 help-link */ | ||
| .section1 .help-link { | ||
| font-size: 14px; | ||
| text-align: center; | ||
| } | ||
| .section1 .help-link span { | ||
| margin: 0 10px; | ||
| } | ||
| /* section2 */ | ||
| .section2 { | ||
| position: relative; | ||
| padding-top: 28px; | ||
| border-top: 1px solid var(--border-color); | ||
| } | ||
| .section2::before { | ||
| position: absolute; | ||
| content: "또는"; | ||
| padding: 0 13px; | ||
| background-color: white; | ||
| font-size: 14px; | ||
| top: -10px; | ||
| left: calc(50% - 26px); | ||
| } | ||
|
Comment on lines
+190
to
+198
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 생각지도 못한 새로운 방법이었어요!👍 |
||
| .section2 .btn-list { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 10px; | ||
| } | ||
| [class^="portal-login"] { | ||
| display: block; | ||
| border-radius: 5px; | ||
| background: #fff; | ||
| padding: 11px 0; | ||
| text-align: center; | ||
| font-weight: 500; | ||
| } | ||
| .google { | ||
| background: url("./img/Google__G__Logo\ 1.svg") no-repeat 12px center; | ||
| border: 1px solid #767676; | ||
| } | ||
| .facebook { | ||
| background: url("./img/facebook.svg") no-repeat 12px center; | ||
| border: 1px solid #2d9cdb; | ||
| } | ||
| .naver { | ||
| background: url("./img/naver-logo.svg") no-repeat 12px center; | ||
| border: 1px solid #00bf18; | ||
| } | ||
| .kakao { | ||
| background: url("./img/message-circle.svg") no-repeat 12px center; | ||
| border: 1px solid #f2c94c; | ||
| } | ||
|
Comment on lines
+204
to
+227
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 제가 찾던 방법이에요! 정말 도움이 많이 되었습니다!! 감사합니다.👍 |
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="ko"> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <link rel="stylesheet" href="modal.css"> | ||
| <title></title> | ||
| </head> | ||
|
|
||
| <body> | ||
| <article class="modal max-width"> | ||
|
|
||
| <!-- header --> | ||
| <header class="header"> | ||
| <h1 class="title">로그인 또는 회원가입</h1> | ||
| <img src="./img/close.svg" alt="닫기"> | ||
| </header> | ||
|
|
||
| <main class="main"> | ||
| <section class="section1"> | ||
| <h2 class="subtitle">위니브에서 여러분의 궁금증을 해결하세요! :)</h2> | ||
|
|
||
| <!-- form --> | ||
| <form class="login-form"> | ||
| <input class="input-id" id="input-id" type="text" placeholder="아이디"> | ||
| <label for="input-id"></label> | ||
| <strong class="warn-id">아이디를 입력해 주세요.</strong> | ||
| <input class="input-pw" id="input-pw" type="text" placeholder="비밀번호"> | ||
| <label for="input-pw"></label> | ||
| <strong class="warn-pw">아이디 혹은 비밀번호가 일치하지 않습니다.</strong> | ||
|
|
||
| <!-- 로그인 상태 유지 checkbox --> | ||
| <div class="check-box"> | ||
| <input id="keep-login" class="check-hide" type="checkbox"> | ||
| <label class="label-check-box" for="keep-login">로그인 상태 유지</label> | ||
| </div> | ||
|
|
||
| <button class="login-button" type="submit">로그인</button> | ||
| </form> | ||
|
|
||
| <!-- 회원가입 | 아이디/비밀번호 찾기 --> | ||
| <div class="help-link"> | ||
| <a href="#" class="signup">회원가입</a> | ||
| <span>|</span> | ||
| <a href="#" class="find">아이디/비밀번호 찾기</a> | ||
| </div> | ||
|
|
||
| </section> | ||
|
|
||
| <section class="section2"> | ||
|
|
||
| <!-- potal login button --> | ||
| <ul class="btn-list"> | ||
| <li> | ||
| <a href="#" class="portal-login google">구글 계정으로 로그인</a> | ||
| </li> | ||
| <li> | ||
| <a href="#" class="portal-login facebook">페이스북 계정으로 로그인</a> | ||
| </li> | ||
| <li> | ||
| <a href="#" class="portal-login naver">네이버 계정으로 로그인</a> | ||
| </li> | ||
| <li> | ||
| <a href="#" class="portal-login kakao">카카오톡 계정으로 로그인</a> | ||
| </li> | ||
| </ul> | ||
|
|
||
| </section> | ||
| </main> | ||
| </article> | ||
| </body> | ||
|
|
||
| </html> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오호 :root 까지 👍