Skip to content
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

[나예진] sprint 2 #21

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 image/google_icon.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 image/kakao_icon.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 image/logo_large.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 image/visibility_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 23 additions & 22 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,37 +1,38 @@
<!DOCTYPE html>
<html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>판다마켓 </title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" as="style" crossorigin href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css" />
</head>
<body>
<header>
<div class="header">
<a href="/"><img src="image/md.png" class="logo"></a><a href="/login.html" class="login">로그인</a>
<header class="main-header">
<div class="main-header-div">
<a href="/"><img src="image/md.png" class="logo" alt="로고이미지"></a>
<a href="/login.html" class="login">로그인</a>
</div>
</header>
<section>
<div class="top-section">
<div class="content">
<div class="top-content">일상의 모든 물건을<br>거래해 보세요</div>
<a href="/items.html" class="top_btn">구경하러 가기</a>
<a href="/items.html" class="top-btn">구경하러 가기</a>
</div>
<img src="image/img_home.png" class="img_home">
<img src="image/img_home.png" class="img_home" alt="배너이미지">
</div>
</section>
<main>
<div class="main-left">
<img src="image/main_01.png" class="main-img">
<img src="image/main_01.png" class="main-img" alt="첫 번째 본문 이미지">
<div class="main-div">
<div class="title">Hot Item</div>
<div class="main-content-bold">인기 상품을<br>확인해 보세요</div>
<div class="main-content">가장 HOT한 중고거래 물품을<br> 판다 마켓에서 확인해 보세요</div>
</div>
</div>
<div class="main-right">
<img src="image/main_02.png" class="main-img">
<img src="image/main_02.png" class="main-img" alt="두 번째 본문 이미지">
<div class="main-div-right">
<div class="title">Search</div>
<div class="main-content-bold">구매를 원하는<br>상품을 검색하세요</div>
Expand All @@ -40,36 +41,36 @@

</div>
<div class="main-left">
<img src="image/main_03.png" class="main-img">
<img src="image/main_03.png" class="main-img" alt="세 번째 본문 이미지">
<div class="main-div">
<div class="title">Register</div>
<div class="main-content-bold">판매를 원하는<br>상품을 등록하세요</div>
<div class="main-content">어떤 물건이든 판매하고 싶은 상품을<br> 쉽게 등록하세요</div>
</div>
</div>
<hr>

<section>
<div class="top-section">
<div class="content">
<div class="top-content">믿을 수 있는<br>판다마켓 중고 거래</div>
</div>
<img src="image/footer.png" class="img_home">
<img src="image/footer.png" class="img_home" alt="푸터 이미지">
</div>
</section>
</main>
<footer>
<div class="footer-div">
<span>ⓒ codeit - 2024</span>
<span class="footer-link">
<span><a href="/privacy.html">Privacy Policy</a></span>
<span><a href="/faq.html">FAQ</a></span>
</span>
<span class="social-btn">
<a href="https://www.facebook.com/" target="_blank"><img src="image/facebook.png"></a>
<a href="https://x.com/" target="_blank"><img src="image/twitter.png"></a>
<a href="https://www.youtube.com/" target="_blank"><img src="image/youtube.png"></a>
<a href="https://www.instagram.com/" target="_blank"><img src="image/insta.png"></a>
</span>
<div>ⓒ codeit - 2024</div>
<div class="footer-link">
<a href="/privacy.html">Privacy Policy</a>
<a href="/faq.html" >FAQ</a>
</div>
<div class="social-btn">
<a href="https://www.facebook.com/" target="_blank"><img src="image/facebook.png" alt="페이스북 이미지"></a>
<a href="https://x.com/" target="_blank"><img src="image/twitter.png" alt="트위터 이미지"></a>
<a href="https://www.youtube.com/" target="_blank"><img src="image/youtube.png" alt="유튜브 이미지"></a>
<a href="https://www.instagram.com/" target="_blank"><img src="image/insta.png" alt="인스타그램 이미지"></a>
</div>
</div>
</footer>
</body>
Expand Down
34 changes: 32 additions & 2 deletions login.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,40 @@
<!DOCTYPE html>
<html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>Login</title>
<link rel="stylesheet" href="sign.css">
<link rel="stylesheet" as="style" crossorigin href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

as는 preload를 지정했을 때만 사용됩니다 :) 다시 한 번 확인해주세요!

https://developer.mozilla.org/ko/docs/Web/HTML/Element/link#%ED%8A%B9%EC%84%B1

<title>로그인</title>
</head>
<body>
<a href="/"><img src="image/logo_large.png" alt="로그인 로고" class="sign-logo"></a>
<form class="sign-form">
<div class="sign-form-label">
Copy link
Collaborator

Choose a reason for hiding this comment

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

크게 상관은 없지만.. 굳이 div로 감싸지 않고 label에 직접 스타일을 주셔도 될 거 같습니다 :)

<label for="login-email">이메일</label>
Copy link
Collaborator

Choose a reason for hiding this comment

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

라벨과 인풋을 잘 활용해주셨네요 👍

</div>
<input id="login-email" name="email" type="email"
placeholder="이메일을 입력해주세요" class="sign-form-input" required />

<div class="sign-form-label">
<label for="login-pwd" >비밀번호</label>
</div>
<div class="password-container">
<input id="login-pwd" name="pwd" type="password"
placeholder="비밀번호를 입력해주세요" class="sign-form-input" required/>
<img src="image/visibility_off.png" class="visibility-off" alt="비밀번호 숨기기">
</div>
<button class="sign-btn">로그인</button>

</form>
<div class="simple-login-div">
<div class="simple-login-txt">간편 로그인하기</div>
<div class="simple-login-icon">
<a href="https://www.google.com/"><img src="image/google_icon.png"class="google-icon" alt="구글 간편로그인 아이콘"></a>
<a href="https://www.kakaocorp.com/page/"><img src="image/kakao_icon.png" class="kakao-icon" alt="카카오 간편로그인 아이콘"></a>
</div>
</div>
<div class="footer">판다마켓이 처음이신가요?
<a href="/signup.html" class="footer-signup-link">회원가입</a>
</div>
</body>
</html>
133 changes: 133 additions & 0 deletions sign.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
* {
box-sizing: border-box;
}

:root {
Copy link
Collaborator

Choose a reason for hiding this comment

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

변수를 잘 정의하셨네요 👍

--gray900 : #111827;
Copy link
Collaborator

Choose a reason for hiding this comment

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

앱 전체에서 공통으로 사용될 가능성이 크다면, 파일을 따로 분리하셔서 관리하시는 것도 좋습니다 :)

--gray800 : #1f2937;
--gray700 : #374151;
--gray600 : #4b5563;
--gray500 : #6b7280;
--gray400 : #9ca3af;
--gray200 : #e5e7eb;
--gray100 : #f3f4f6;
--gray50 : #f9fafb;
--blue:#3692ff;
}

body {
font-family: "pretendard", sans-serif;
margin: 0 auto;
width: 640px;
margin-top: 231px;
}

.sign-logo {
display: block;
width: 396px;
height: 132px;
margin: 0 auto;
margin-bottom: 40px;
}

.sign-form-label {
font-size: 18px;
font-weight: 700;
line-height: 26px;
color: var(--gray800);
margin-bottom: 16px;
}

.sign-form-input {
width: 100%;
height: 56px;
border: none;
border-radius: 12px;
background-color: var(--gray100);
padding : 16px 24px;
margin-bottom: 24px;
}

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

.sign-form-input::placeholder {
font-size: 16px;
line-height: 26px;
font-weight: 300;
color: var(--gray400);
}

.password-container {
position: relative;
}

.visibility-off {
position:absolute;
width: 24px;
height: 24px;
top: 16px;
bottom: 16px;
right: 24px;
}

.sign-btn {
width: 100%;
border: none;
border-radius: 40px;
padding: 16px 124px;
background-color: var(--gray400);
font-size: 20px;
font-weight: 500;
color: var(--gray100);
cursor:pointer;
}

.sign-btn:hover {
background-color: var(--blue);
}

.simple-login-div {
display: flex;
justify-content: space-between;
align-items: center;
margin: 24px 0;
padding :16px 23px;
width: 100%;
background-color: #e6f2ff;
}

.simple-login-txt {
font-size: 16px;
font-weight: 500;
color: var(--gray800);
}

.simple-login-icon {
display: flex;
gap: 16px;
}

.simple-login-icon img{
width: 42px;
height: 42px;
}

.footer {
display: flex;
justify-content: center;
font-size: 14px;
color: var(--gray800);
gap: 4px;
}

.footer-signup-link {
color: var(--blue);
}


.footer-signup-link:hover {
color : #1251aa
}

56 changes: 56 additions & 0 deletions signup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="sign.css">
<link rel="stylesheet" as="style" crossorigin href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css" />
<title>회원가입</title>
</head>
<body>
<a href="/"><img src="image/logo_large.png" alt="회원가입 로고" class="sign-logo"></a>
<form class="sign-form">
<div class="sign-form-label">
<label for="login-email">이메일</label>
</div>
<input id="login-email" name="email" type="email"
placeholder="이메일을 입력해주세요" class="sign-form-input" required />

<div class="sign-form-label">
<label for="login-nickname">닉네임</label>
</div>
<input id="login-nickname" name="nickname"
placeholder="닉네임을 입력해주세요" class="sign-form-input" required />

<div class="sign-form-label">
<label for="login-pwd" >비밀번호</label>
</div>
<div class="password-container">
<input id="login-pwd" name="pwd" type="password"
placeholder="비밀번호를 입력해주세요" class="sign-form-input" required/>
<img src="image/visibility_off.png" class="visibility-off" alt="비밀번호 숨기기">
</div>

<div class="sign-form-label">
<label for="login-pwd-confirm" >비밀번호 확인</label>
</div>
<div class="password-container">
<input id="login-pwd-confirm" name="pwd-confirm" type="password"
placeholder="비밀번호를 다시 한 번 입력해주세요" class="sign-form-input" required/>
<img src="image/visibility_off.png" class="visibility-off" alt="비밀번호 숨기기">
</div>

<button class="sign-btn">회원가입</button>

</form>
<div class="simple-login-div">
<div class="simple-login-txt">간편 로그인하기</div>
<div class="simple-login-icon">
<a href="https://www.google.com/"><img src="image/google_icon.png"class="google-icon" alt="구글 간편로그인 아이콘"></a>
<a href="https://www.kakaocorp.com/page/"><img src="image/kakao_icon.png" class="kakao-icon" alt="카카오 간편로그인 아이콘"></a>
</div>
</div>
<div class="footer">이미 회원이신가요?
<a href="/login.html" class="footer-signup-link">로그인</a>
</div>
</body>
</html>
Loading
Loading