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
255 changes: 255 additions & 0 deletions css/login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
@import url(//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSansNeo.css);

/* **************** 초기설정 **************** */

body {
font-family: 'Spoqa Han Sans Neo', 'sans-serif';
background-color: #F2F2F2;
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
}

a {
text-decoration: none;
color: inherit;
}

button:enabled {
cursor: pointer;
}

img {
vertical-align: top;
}

.a11y-hidden {
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
width: 1px;
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
}

/* **************** container **************** */
.container {
display: flex;
flex-direction: column;
margin: auto;
width: 520px;
border-radius: 10px;
border: 1px solid #C4C4C4;
background: #FFF;
}

/* **************** header - 제목 **************** */
header {
position: relative;
margin: 0 24px;
}

header h1 {
text-align: center;
margin: 20px 0;
font-weight: 500;
font-size: 16px;
}

header .close-btn {
position: absolute;
background: none;
border: none;
right: 12px;
top: 50%;
transform: translate(50%, -50%);
}

.close-btn img {
width: 16px;
height: 16px;
}

.underline {
width: 100%;
height: 1px;
flex-shrink: 0;
background-color: #C4C4C4;
}

/* **************** main - 본문 **************** */
main {
margin: 0 24px;
}
main h2 {
margin: 26px 0;
line-height: 24px;
font-weight: 500;
font-size: 20px;
}

/* **************** 로그인 폼 **************** */
.login-form {
color: #767676;
display: flex;
flex-direction: column;
}

.login-insert {
display: flex;
flex-direction: column;
gap: 10px;
}

.login-insert input {
width: 472px;
height: 50px;
border: 1px solid #C4C4C4;
border-radius: 5px;
padding: 15px 16px;
font-size: 16px;
}

.warning-id, .warning-match {
margin: 6px 0 10px 4px;
font-size: 14px;
font-weight: 400;
color: #F4492E;
}

.login-hold {
display: flex;
margin-top: 17px;
}

.login-hold label {
margin-left: 8px;
cursor: pointer;
}


/* 체크하기 전 상태 */
input#login-hold+label:before{
content: '';
display: inline-block;
width: 22px;
height: 22px;
background-image: url('../images/checkbox.svg');
vertical-align: middle;
margin-right: 8px;
}

/* 체크 된 상태 */
input#login-hold:checked+label:before{
content: '';
background-image: url('../images/checkedbox.svg');
background-repeat: no-repeat;
background-position: 50%;
}

.login-btn {
width: 472px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
border-radius: 5px;
}

.login-form button {
font-size: 18px;
font-weight: 700;
margin: 20px 0;
border: none;
background: #2F80ED;
color: #FFF;
}

.href-group {
margin: 0 auto 10px auto;
font-size: 14px;
font-weight: 400;
}

.href-group span {
margin: 0 12px;
}

.href-group a:hover {
text-decoration: underline;
font-weight: 500;
}

/* 구분선 */
.divider {
position: relative;
margin: 20px 0px;
text-align: center;
color: #767676;
}

.divider::after{
content: "";
height: 1px;
width: 100%;
background-color: #C4C4C4;
position: absolute;
top: 0.5em;
left: 0;
}

.divider span {
font-size: 14px;
padding: 0 10px;
background-color: #FFF;
z-index: 2;
position: relative;
}
Comment on lines +195 to +211
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after로 하나의 선을 그려준 뒤 span에 z-index를 활용해서 위로 오게 만드셨군요👍


/* **************** sns 로그인 **************** */
.btn-group {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 25px;

}
.sns-login {
background: #FFF;
background: none;
border: 1px solid #767676;
color: #767676;
}

.login-btn img {
width: 28px;
height: 28px;
margin-left: 12px;
}

.login-btn span {
margin: auto;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저는 텍스트가 당연히 중앙일거라고 생각했는데 지금보니 텍스트가 완벽한 중앙 정렬이 아니었네요
매의 눈이십니다 👍

font-size: 16px;
}

.login-btn:hover {
font-weight: 600;
border-width: 3px;
}
Comment on lines +239 to +242
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

커서가 어떤 버튼 위에 있는지 한 눈에 들어와서 좋았습니다! 그리고 버튼을 눌렀을 때 해당 웹 사이트로 이동하는 센스 재밌었습니다👍

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

너무 심심해서 넣어봤어요ㅎㅎㅎ~~ 꼼꼼히 봐주셔서 감사합니당👍👍


.fb-btn {
border: 1px solid #2D9CDB;
}

.nv-btn {
border: 1px solid #00BF18;
}

.kt-btn {
border: 1px solid #F2C94C;
}

63 changes: 63 additions & 0 deletions css/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

body,
h1,
h2,
div,
p,
button,
input,
label,
span,
a {
margin: 0;
padding: 0;
box-sizing: border-box;
}
Binary file added images/.DS_Store
Binary file not shown.
Binary file added images/Google__G__Logo 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions images/checkbox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions images/checkedbox.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/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/message-circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/naver-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading