Skip to content
Merged
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
Binary file added images/password/hide.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/password/show.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/sns/google.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/sns/kakaotalk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 9 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
<title>판다마켓</title>
</head>
<body>
<div class="container">
<header>
<a href="/">
<img src="/images/logo.png" alt="logo" class="logo">
</a>
<a class="login-button" href="/login">로그인</a>
</header>
<div class="nav">
<div class="container">
<header>
<a href="/">
<img src="/images/logo.png" alt="logo" class="logo">
</a>
<a class="login-button" href="/login/login.html">로그인</a>
</header>
</div>
</div>
<div class="sky-bg">
<section class="container ad-section">
Expand Down
46 changes: 46 additions & 0 deletions login/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" as="style" crossorigin href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard.min.css" />
<link rel="stylesheet" href="style.css">
<title>판다마켓</title>
</head>
<body>
<div class="container">
<a href="/">
<img src="/images/logo.png" alt="logo" class="logo">
</a>
<form>
<div class="form">
<label for="email">이메일</label>
<input id="email" name="email" placeholder="이메일을 입력해주세요" type="email">
</div>
<div class="form">
<label for="password">비밀번호</label>
<div class="input-wrap">
<input id="password" name="password" placeholder="비밀번호를 입력해주세요" type="password">
<img src="/images/password/hide.png" alt="비밀번호 가리기" class="hide">
</div>
</div>
<button>로그인</button>
</form>
<div class="sns-container">
<div class="snslogin">간편 로그인하기</div>
<div class="sns">
<a href="https://www.google.com">
<img src="/images/sns/google.png" alt="구글 로고">
</a>
<a href="https://www.kakaocorp.com/page/">
<img src="/images/sns/kakaotalk.png" alt="카카오톡 로고">
</a>
</div>
</div>
<div class="move">
판다마켓이 처음이신가요?
<a href="/login/signup.html">회원가입</a>
</div>
</div>
</body>
</html>
57 changes: 57 additions & 0 deletions login/signup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" as="style" crossorigin href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard.min.css" />
<link rel="stylesheet" href="style.css">
<title>판다마켓</title>
</head>
<body>
<div class="container">
<a href="/">
<img src="/images/logo.png" alt="logo" class="logo">
</a>
<form>
<div class="form">
Copy link
Collaborator

Choose a reason for hiding this comment

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

class명을 목적과 기능에 맞게 조금 더 신경 써주시면 좋을 거 같아요!

<label for="email">이메일</label>
<input id="email" name="email" placeholder="이메일을 입력해주세요" type="email">
</div>
<div class="form">
<label for="nickname">닉네임임</label>
<input id="nickname" name="nickname" placeholder="닉네임을 입력해주세요">
</div>
<div class="form">
<label for="password">비밀번호</label>
<div class="input-wrap">
<input id="password" name="password" placeholder="비밀번호를 입력해주세요" type="password">
<img src="/images/password/hide.png" alt="비밀번호 가리기" class="hide">
</div>
</div>
<div class="form">
<label for="password-confirm">비밀번호 확인</label>
<div class="input-wrap">
<input id="password-confirm" name="password-confirm" placeholder="비밀번호를 다시 한 번 입력해주세요" type="password">
<img src="/images/password/hide.png" alt="비밀번호 가리기" class="hide">
</div>
</div>
<button>회원가입</button>
</form>
<div class="sns-container">
<div class="snslogin">간편 로그인하기</div>
Copy link
Collaborator

Choose a reason for hiding this comment

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

class 이름 짓는 기준이 애매하다면, BEM을 고려해보시는 것도 좋아요!

<div class="sns">
<a href="https://www.google.com">
<img src="/images/sns/google.png" alt="구글 로고">
</a>
<a href="https://www.kakaocorp.com/page/">
<img src="/images/sns/kakaotalk.png" alt="카카오톡 로고">
Copy link
Collaborator

Choose a reason for hiding this comment

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

alt를 잘 챙겨주시는군요! 👍

</a>
</div>
</div>
<div class="move">
판다마켓이 처음이신가요?
<a href="/login/login.html">로그인</a>
</div>
</div>
</body>
</html>
137 changes: 137 additions & 0 deletions login/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
:root {
Copy link
Collaborator

Choose a reason for hiding this comment

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

변수를 정의하셨군요! 👍

--gray-900: #111827;
--gray-800: #1F2937;
Copy link
Collaborator

Choose a reason for hiding this comment

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

이렇게 공통으로 사용되는 스타일은 파일을 따로 만들어 관리 하셔도 좋습니다 :)

--gray-700: #374151;
--gray-600: #4B5563;
--gray-500: #6B7280;
--gray-400: #9CA3AF;
--gray-200: #E5E7EB;
--gray-100: #F3F4F6;
--gray-50: #F9FAFB;
--blue: #3692FF;
--blue-400: #CFE5FF;
}

* {
box-sizing: border-box;
}

body {
font-family: Pretendard, sans-serif;
margin: 0;
}

.container {
width: 640px;
margin: auto;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 40px;
}

form {
display: flex;
flex-direction: column;
gap: 24px;
width: 100%;
}

.form {
display: flex;
flex-direction: column;
justify-content: center;
align-items: start;
gap: 16px;
}

.logo {
width: 396px;
}

label {
color: var(--gray-800);
font-size: 18px;
font-weight: 700;
line-height: 26px;
}

input {
width: 100%;
background-color: var(--gray-100);
border-radius: 12px;
padding: 16px 24px;
font-size: 16px;
font-weight: 400;
line-height: 26px;
border: 0px;
}

input:focus {
outline-color: var(--blue);
}

button {
background-color: var(--gray-400);
color: var(--gray-100);
font-size: 20px;
font-weight: 600;
line-height: 32px;
text-align: center;
padding: 16px 124px;
border-radius: 40px;
width: 100%;
border: 0px;
}

.sns-container {
width: 100%;
border-radius: 8px;
padding: 16px 23px;
display: flex;
justify-content: space-between;
align-items: center;
background-color: #E6F2FF;
}

.snslogin {
font-size: 16px;
font-weight: 500;
line-height: 26px;
color: var(--gray-800);
}

.sns {
display: flex;
gap: 16px;
}

.sns img {
width: 42px;
}

.move {
font-size: 14px;
font-weight: 500;
line-height: 24px;
color: var(--gray-800);
}

.move a {
color: var(--blue);
}

.input-wrap {
width: 100%;
position: relative;
}

.input-wrap .hide {
position: absolute;
right: 20px;
top: 30%;
width: 24px;
cursor: pointer;
}
40 changes: 30 additions & 10 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
:root {
--gray-900: #111827;
--gray-800: #1F2937;
--gray-700: #374151;
--gray-600: #4B5563;
--gray-500: #6B7280;
--gray-400: #9CA3AF;
--gray-200: #E5E7EB;
--gray-100: #F3F4F6;
--gray-50: #F9FAFB;
--blue: #3692FF;
--blue-400: #CFE5FF;
}

* {
box-sizing: border-box;
}
Expand All @@ -20,8 +34,14 @@ header {
padding: 10px 15px;
}

.nav {
position: sticky;
top: 0;
background-color: #FFFFFF;
}

footer {
background-color: #111827;
background-color: var(--gray-900);
height: 160px;
}

Expand All @@ -35,14 +55,14 @@ a {

.login-button {
padding: 12px 37px;
background-color: #3692FF;
background-color: var(--blue);
border-radius: 8px;
color: #ffffff;
text-decoration: none;
}

.sky-bg {
background-color: #CFE5FF;
background-color: var(--blue-400);
}

.ad-section {
Expand Down Expand Up @@ -73,17 +93,17 @@ a {
font-size: 40px;
font-weight: 700;
line-height: 56px;
color: #374151;
color: var(--gray-700);
}

.button {
text-decoration: none;
background-color: #3692FF;
background-color: var(--blue);
padding: 16px 124px;
border-radius: 40px;
font-size: 20px;
font-weight: 600;
color: #F9FAFB;
color: var(--gray-50);
margin-bottom: 60px;
}

Expand Down Expand Up @@ -131,14 +151,14 @@ a {
.tag {
font-size: 18px;
font-weight: 700;
color: #3692FF;
color: var(--blue);
}

.description {
font-size: 24px;
font-weight: 500;
line-height: 32px;
color: #374151;
color: var(--gray-700);
}

.footer-contents {
Expand All @@ -149,7 +169,7 @@ a {
}

.footer-codeit {
color: #9ca3af;
color: var(--gray-400);
font-size: 16px;
font-weight: 400;
}
Expand All @@ -161,7 +181,7 @@ a {

.footer-link a {
text-decoration: none;
color: #e5e7eb;
color: var(--gray-200);
font-size: 16px;
font-weight: 400;
}
Expand Down
Loading