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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Copy link
Collaborator

Choose a reason for hiding this comment

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

💊 제안
이러한 vscode 설정 파일은 github에 올라가지 않게 해주시는 것을 추천드려요.
github는 프로젝트를 공유하기 위한 공간으로 해당 프로젝트와 관련된 파일들만 올라가는 것이 좋습니다.
어떤 사람은 vscode를 쓰지 않고 다른 에디터를 쓸 수 있고 쓰더라도 port 번호를 다르게 할 수 있습니다.
따라서 이런 파일들은 변경사항에서 의도적으로 제외하시고 올리시거나 gitignore 같은 파일을 생성하셔서
자동으로 변경사항이 잡히지 않도록 하시는 것을 추천드립니다~

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
78 changes: 59 additions & 19 deletions style2.css → auth.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
view-transition-name: root;
}

html {
display: block;
font-family: Pretendard;
}

Expand All @@ -21,6 +11,11 @@ body {
margin: 0 auto;
}

.logo2 {
width: 396px;
height: 132px;
}

.logo-wrap {
display: block;
text-align: center;
Expand All @@ -30,7 +25,6 @@ body {

.form-group {
margin-bottom: 20px;
gap: 24px;
}

.form-group label {
Expand All @@ -45,12 +39,12 @@ body {
height: 48px;
padding: 16px 24px;
background-color: #f3f4f6;
border: none;
border: 1px solid #ccc;
border-radius: 12px;
font-size: 16px;
}

.form-group input ::placeholder {
.form-group input::placeholder {
font-size: 16px;
color: #1f2937;
}
Expand All @@ -60,21 +54,41 @@ body {
justify-content: space-between;
align-items: center;
position: relative;
margin-bottom: 20px;
margin-bottom: 10px;
}

.password-button {
position: absolute;
right: 24px;
width: 24;
height: 24;
right: 16px;
width: 24px;
height: 24px;
border: none;
background-color: transparent;
padding: 0;
}

.password-button img {
width: 100%;
height: auto;
}

input.error {
border-color: red;
}

.error-message {
color: red;
font-size: 14px;
margin-top: 8px;
display: block;
margin-left: 16px;
}

.login-button {
width: 100%;
border-radius: 40px;
border: none;
padding: 16px 124px;
padding: 16px;
color: #ffffff;
font-size: 20px;
font-weight: 700;
Expand All @@ -93,6 +107,11 @@ body {
margin: 24px 0;
}

.login-button:disabled {
background-color: #9ca3af;
cursor: not-allowed;
}

.login-method h3 {
font-size: 16px;
}
Expand All @@ -109,7 +128,7 @@ body {
text-align: center;
}

h3 {
.social-login-button {
font-weight: 500;
font-size: 16px;
line-height: 24px;
Expand All @@ -118,3 +137,24 @@ h3 {
.signup-go a {
color: #3182f6;
}

/* Mobile: 375px~767px */
@media (max-width: 767px) {
.container {
max-width: 432px;
padding-left: 16px;
padding-right: 16px;
margin-top: 80px;
}
.logo2 {
width: 198px;
height: 66px;
}
.form-group label {
font-size: 14px;
margin-bottom: 8px;
}
.password-button {
right: 16px;
}
}
11 changes: 0 additions & 11 deletions deletepart.html

This file was deleted.

1 change: 1 addition & 0 deletions faq.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
faq
1 change: 0 additions & 1 deletion fnq.html

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed images/ic_login.png
Binary file not shown.
Binary file modified images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 14 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>판다마켓</title>
<link rel="stylesheet" href="reset.css" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<div class="header">
<a href="/"> <img src="images/logo.png" alt="판다마켓 로고" class="logo" /></a>
<a href="/login.html"> <img src="images/ic_login.png" alt="로그인" class="login" /></a>
<a href="/login.html" class="homelogin-button">로그인</a>
</div>
</header>
<section class="headline-wrap">
Expand All @@ -20,37 +21,36 @@ <h1 class="headline-heading">
일상의 모든 물건을<br />
거래해 보세요
</h1>
<a href="/items"> <h2 class="headline-button" alt="구경하러가기">구경하러 가기</h2></a>
<a href="/items" class="headline-button">구경하러 가기</a>
</div>
<img class="headline-image" src="images/img_home_top.png" alt="판다" width="746px" height="340px" />
</div>
</section>

<section id="features" class="wrapper">
<div class="feature">
<img src="images/feature1-image.png" alt="인기 상품" width="50%" />
<img src="images/feature1.png" alt="인기 상품" />
<div class="feature-content">
<h2 class="feature-tag">Hot item</h2>
<h1>인기 상품을<br />확인해 보세요</h1>
<p class="feature-title">인기 상품을<br />확인해 보세요</p>
<p class="feature-description">가장 HOT한 중고거래 물품을<br />판다마켓에서 확인해 보세요</p>
</div>
</div>
<div class="feature">
<div class="feature-content">
<h2 class="feature-tag">Search</h2>
<h1>구매를 원하는<br />상품을 검색하세요</h1>
<p class="feature-title">구매를 원하는<br />상품을 검색하세요</p>
<p class="feature-description">
구매하고 싶은 물품은 검색해서
<br />쉽게 찾아보세요
</p>
</div>
<img src="images/feature2-image.png" alt="검색 기능" width="50%" />
<img src="images/feature2.png" alt="검색 기능" />
</div>
<div class="feature">
<img src="images/feature3-image.png" alt="판매 상품 등록" width="50%" />
<img src="images/feature3.png" alt="판매 상품 등록" />
<div class="feature-content">
<h2 class="feature-tag">Register</h2>
<h1>판매를 원하는<br />상품을 등록하세요</h1>
<p class="feature-title">판매를 원하는<br />상품을 등록하세요</p>
<p class="feature-description">
어떤 물건이든 판매하고 싶은 상품을
<br />쉽게 등록하세요
Expand All @@ -62,7 +62,7 @@ <h1>판매를 원하는<br />상품을 등록하세요</h1>
<div class="wrapper">
<div class="banner-content">
<div>
<h1>
<h1 class="headline-heading">
믿을 수 있는
<br />
판다마켓 중고거래
Expand All @@ -80,13 +80,13 @@ <h1>

<div class="footer-two">
<a href="/privacy.html">Privacy Policy</a>
<a href="/fnq.html">FAQ</a>
<a href="/faq.html">FAQ</a>
</div>

<div class="footer-icons">
<a href="https://www.facebook.com">
<img src="images/ic_facebook.png" alt="페이스북" id="facebook"
/></a>
<img src="images/ic_facebook.png" alt="페이스북" id="facebook" />
</a>
<a href="https://www.twitter.com"> <img src="images/ic_twitter.png" alt="트위터" id="twitter" /></a>
<a href="https://www.youtube.com"> <img src="images/ic_youtube.png" alt="유튜브" id="youtube" /></a>
<a href="https://www.instagram.com">
Expand All @@ -95,5 +95,6 @@ <h1>
</div>
</div>
</footer>
<script src="validation.js"></script>
Copy link
Collaborator

Choose a reason for hiding this comment

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

💊 제안

아마 script 태그를 HTML의 하단에 배치하신 이유가 script가 문서의 렌더링을 막지 않도록 하기 위해서이실 것 같아요.
하지만, script 태그에 defer나 async 속성을 사용하면 이런 문제를 해결할 수 있기 때문에 반드시 하단에 배치할 필요는 없습니다!
또한 script 태그는 상단에 있는게 구조 파악에서도 유리하기 때문에 상단 head 태그에 두시는 것을 추천드려요~

script async
script defer

지금과 같은 경우 DOM을 조작하는 JS 이니 defer 속성을 추가하시면 되겠습니다~

</body>
</html>
31 changes: 23 additions & 8 deletions login.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,45 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>판다마켓-로그인</title>
<link rel="stylesheet" href="style2.css" />
<link rel="stylesheet" href="reset.css" />
<link rel="stylesheet" href="auth.css" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main class="container">
<div class="logo-wrap">
<a href="/"> <img src="images/logo.png" alt="판다마켓 로고" /></a>
<a href="/"> <img src="images/logo.png" alt="판다마켓 로고" class="logo2" /></a>
</div>
<form method="post">
<div class="form-group">
<label for="email">이메일</label>
<div><input type="email" id="email" name="email" placeholder="이메일을 입력해주세요" /></div>
<div>
<input
type="email"
id="email-login"
name="email"
placeholder="이메일을 입력해주세요"
required />
<span class="error-message"></span>
</div>
</div>
<div class="form-group">
<label for="password">비밀번호</label>
<div class="password-wrap">
<input type="password" id="password" name="password" placeholder="비밀번호를 입력해 주세요" />
<!--<button class="password-button" type="button"><img href="images/unvisible_eye.png" /></button>-->
<!--눈아이콘을 만들고 싶었는데 작동하지 않아요-->
<input
type="password"
id="password-login"
name="password"
placeholder="비밀번호를 입력해 주세요"
required />
<button class="password-button" type="button"><img src="images/unvisible_eye.png" /></button>
</div>
<span class="error-message"></span>
</div>
<button class="login-button" type="submit">로그인</button>
<button class="login-button" type="button" id="login-btn" disabled>로그인</button>
</form>
<div class="login-method-container">
<h3>간편 로그인하기</h3>
<h3 class="social-login-button">간편 로그인하기</h3>
<div class="login-method-wrap">
<a href="https://www.google.com/">
<img src="images/google_logo.png" alt="구글 로그인" width="42" />
Expand All @@ -40,5 +54,6 @@ <h3>간편 로그인하기</h3>
</div>
<div class="signup-go">판다마켓이 처음이신가요?<a href="signup.html">회원가입</a></div>
</main>
<script src="validation.js"></script>
</body>
</html>
Loading
Loading