Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
246 changes: 246 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
@font-face {
font-family: 'Spoqa Han Sans Neo';
src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SpoqaHanSansNeo-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
}
h1,
input,
h2,
p,
input,
button{
margin: 0;
padding: 0;
border:0;
}
body{
width: 100%;
min-height: 100vh;
margin:0;
display: flex;
justify-content: center;
align-items: center;
background-color: #F2F2F2;
font-family: Spoqa Han Sans Neo;
}
ul{
list-style: none;
margin: 0;
padding: 0;
}
main{
width: 520px;
background-color: #FFF;
border-radius: 10px;
border: 1px solid var(--c-4-c-4-c-4, #C4C4C4);
background: #FFF;
}
.title{
position: relative;
}
.title h1{
margin: 20px auto 18px auto;
text-align: center;
color: #000;
font-weight: 500;
border-radius: 10px;
}
.title .exit{
width: 16px;
height: 16px;
position: absolute;
background: url(../images/button_exit.svg) 0 0 /16px no-repeat ;
right:24px;
top:2px;
cursor: pointer;
}
.title div{
width: 520px;
height: 1px;
background: #C4C4C4;
}
.login{
padding-left: 24px;
}

.login h2{
margin-top: 26px;
margin-bottom: 13px;
color: #000;
font-size: 20px;
font-weight: 500;
line-height: 24px;
}
.login input#id,
.login input#pw {
width: 472px;
height: 50px;
border-radius: 5px;
border: 1px solid var(--c-4-c-4-c-4, #C4C4C4);
background: #FFF;
padding-left: 16px;
margin-top:10px;
box-sizing: border-box;
}
.login input#id{
border: 2px solid #F4492E;
}
.login .warning{
margin-top: 6px;
color: #F4492E;
font-size: 14px;
}

.login .keep-login{
display: flex;
margin-top:13px;
}
.login .keep-login input{
width: 22px;
height: 22px;
}
.login .keep-login .txt-hide{
overflow: hidden;
width: 1px;
height: 1px;
clip-path: inset(50%);

}
.labl-hold::before{
display: inline-block;
content: "";
width: 22px;
height: 22px;
margin-right: 10px;
background: url("../images/login-not-checked.svg") 0 0 / 22px no-repeat;
vertical-align: -5px;
}
.login .keep-login input:focus-visible +
.labl-hold::before {
outline: 2px solid #2F80ED ;
outline-offset: 2px;
}
.labl-hold::after{
content: "";
position: absolute;
left: 20px;
width: 22px;
height: 22px;
background: url("../images/login-checked.svg") 0 0 / 22px no-repeat;
opacity: 0;
}
.login .keep-login input:checked +
.labl-hold::after {
left: 0;
top:0.5px;
opacity: 1;
}


.labl-hold{
color: var(--767676, #767676);
font-size: 16px;
font-weight: 500;
margin-left:8px;
position: relative;
}
.login .login-button{
margin-top: 21px;
border-radius: 5px;
background: #2F80ED;
width: 472px;
height: 50px;
color: #FFF;
font-size: 18px;
font-weight: 700;
line-height: 22px;
text-align: center;
border: 0;
cursor: pointer;
}

.login .signin-container{
margin-top: 20px;
}
.login .signin-container .signin::after{
margin: 0 12px 0 12px;
color: var(--767676, #767676);
content : "|";
}
.login .signin-container ul{
display: flex;
justify-content: center;
margin-left: -24px;
}
.login .signin-container li a{
text-decoration: none;
color: var(--767676, #767676);
font-size: 14px;
}

.login .or{
position: relative;
margin-top: 30px;
}
.login .or div{
background: #C4C4C4;
width: 472px;
height: 1px;
}

.login .or p{
position: absolute;
padding: 0 13px 0 13px;
color: var(--767676, #767676);
font-size: 14px;
background-color: #FFF;
top:50%;
left: 50%;
transform: translate(-50%, -50%);

}


/* 외부 로그인 */
.external-login{
padding-top:28px;
display: flex;
flex-direction: column;
gap:10px;
justify-content: center;
align-items: center;
}
.external-login a{
cursor: pointer;
display: flex;
align-items: center;
text-decoration: none;
width: 472px;
height: 50px;
border-radius: 5px;
border: 1px solid var(--767676, #767676);
background: #FFF;
}
.external-login a img {
margin-left: 12px;
}
.external-login a p{
color: var(--767676, #767676);
text-align: center;
font-weight: 500;
flex-grow: 1;
}

.external-login .facebook{
border: 1px solid #2D9CDB;
}
.external-login .naver{
border: 1px solid #00BF18;
}
.external-login .kakao{
border: 1px solid #F2C94C;
}
.external-login:last-child{
margin-bottom:25px;
}
4 changes: 4 additions & 0 deletions images/button_exit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions images/facebook.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions images/google.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions images/kakao.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions images/login-checked.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions images/login-not-checked.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions images/naver.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html lang="ko-KR">
<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" />
<title>login page</title>
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<main>
<section class="title">
<h1>로그인 또는 회원가입</h1>
<button type="button" class="exit"></button>
<div></div>
</section>
<form class="login" action="#" method="post">
<h2>위니브에서 여러분의 궁금증을 해결하세요! : &#41;</h2>
<input type="text" name="id" id="id" placeholder="아이디" />
<p class="warning">아이디를 입력해 주세요</p>
<input type="password" name="pw" id="pw" placeholder="비밀번호" />
<p class="warning">아이디 혹은 비밀번호과 일치하지 않습니다.</p>
<div class="keep-login">
<input type="checkbox" id="inphold" class="txt-hide" />
<label for="inphold" class="labl-hold">로그인 상태 유지</label>
</div>
<button class="login-button" type="submit">로그인</button>
<div class="signin-container">
<ul>
<li class="signin"><a href="#" >회원가입</a></li>
<li><a href="#">아이디/비밀번호 찾기</a></li>
</ul>
</div>
<div class="or">
<div></div>
<p>또는</p>
</div>
</form>
<section class="external-login">
<a href="https://www.google.co.kr/?hl=ko">
<img src="./images/google.svg" alt="google-logo" />
<p>구글 계정으로 로그인</p>
</a>
<a href="https://ko-kr.facebook.com/" class="facebook">
<img src="./images/facebook.svg" alt="facebook-logo" />
<p>페이스북 계정으로 로그인</p>
</a>
<a href="https://www.naver.com/" class="naver">
<img src="./images/naver.svg" alt="naver-logo" />
<p>네이버 계정으로 로그인</p>
</a>
<a
href="https://www.kakaocorp.com/page/service/service/KakaoTalk?lang=ko"
class="kakao"
>
<img src="./images/kakao.svg" alt="kakao-logo" />
<p>카카오톡 계정으로 로그인</p>
</a>
</section>
</main>
</body>
</html>