-
Notifications
You must be signed in to change notification settings - Fork 46
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
[박연학] sprint11 #325
Merged
baeggmin
merged 13 commits into
codeit-bootcamp-frontend:Next-박연학
from
1022gusl:Next-박연학-sprint11
Dec 10, 2024
The head ref may contain hidden characters: "Next-\uBC15\uC5F0\uD559-sprint11"
Merged
[박연학] sprint11 #325
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5ea4f34
refactor: 페이지사이즈훅 타입 변경
1022gusl 49874c1
refactor: 베스트포스트 컴포넌트에도 페이지사이즈 타입 적용
1022gusl 01d03ab
refactor: allpost 컴포넌트 페이지네이션 컴포넌트 분리
1022gusl b398451
refactor: 코드 분리
1022gusl c56b691
feat: 주석 추가
1022gusl bbed81e
feat: 로그인페이지 임시 구현
1022gusl 88b5231
feat: 로그인페이지 구현
1022gusl 9db1793
feat: 회원가입 페이지 구현
1022gusl 0d849cd
feat: 회원가입 post 구현
1022gusl d07e69d
feat: 로그인, 회원가입 post 구현
1022gusl 1e0ca3d
feat: 기존 미션에 토큰 적용
1022gusl c7f66fa
refactor: 레이아웃 변경
1022gusl 24a8a2b
feat: api 추가
1022gusl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,92 @@ | ||
<!DOCTYPE html> | ||
<html lang="kr"> | ||
<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"> | ||
<title>판다마켓-로그인</title> | ||
<link rel="icon" href="images/logos/favicon.ico"> | ||
<link rel='stylesheet' href='style/global.css'> | ||
<link rel='stylesheet' href='style/sign.css'> | ||
</head> | ||
<body> | ||
<section id="login_home"> | ||
<div id="login_logo"> | ||
<a href="index.html"> | ||
<img src="images/logos/panda.png" alt="판다 로고"> | ||
</a> | ||
</div> | ||
<div class="info"> | ||
<form id="loginGeneral" method="post"> | ||
<div> | ||
<label for="email">이메일</label> | ||
<br> | ||
<input id="email" name="email" placeholder="이메일을 입력해주세요" required> | ||
<span id="emailEmptyError" class="form_error">이메일을 입력해 주세요</span> | ||
<span id="emailInvalidError" class="form_error">잘못된 이메일 형식입니다</span> | ||
</div> | ||
<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" | ||
/> | ||
<title>판다마켓-로그인</title> | ||
<link rel="icon" href="images/logos/favicon.ico" /> | ||
<link rel="stylesheet" href="style/global.css" /> | ||
<link rel="stylesheet" href="style/sign.css" /> | ||
</head> | ||
<body> | ||
<section id="login_home"> | ||
<div id="login_logo"> | ||
<a href="index.html"> | ||
<img src="images/logos/panda.png" alt="판다 로고" /> | ||
</a> | ||
</div> | ||
<div class="info"> | ||
<form id="loginGeneral" method="post"> | ||
<div> | ||
<label for="email">이메일</label> | ||
<br /> | ||
<input | ||
id="email" | ||
name="email" | ||
placeholder="이메일을 입력해주세요" | ||
required | ||
/> | ||
<span id="emailEmptyError" class="form_error" | ||
>이메일을 입력해 주세요</span | ||
> | ||
<span id="emailInvalidError" class="form_error" | ||
>잘못된 이메일 형식입니다</span | ||
> | ||
</div> | ||
|
||
<div class="password_label"> | ||
<label for="password">비밀번호</label> | ||
<br> | ||
<input id="password" name="password" type="password" placeholder="비밀번호를 입력해주세요" required> | ||
<img class="see_blind" src="images/logos/see.png" alt="보이게"> | ||
<!-- | ||
<img class="see_blind" src="images/logos/blind.png" alt="안보이게"> | ||
차후에 적용 | ||
--> | ||
<span id="passwordEmptyError" class="form_error">비밀번호를 입력해 주세요</span> | ||
<span id="passwordInvalidError" class="form_error">비밀번호를 8자 이상 입력해주세요</span> | ||
</div> | ||
<button type="submit" id="login_button">로그인</button> | ||
</form> | ||
</div> | ||
<div class="simple_login"> | ||
간편 로그인하기 | ||
<div class="social"> | ||
<a href="https://www.google.com/" target="_blank" rel="noopener noreferrer"> | ||
<img src="images/social/google.png" alt="구글"></a> | ||
<a href="https://www.kakaocorp.com/page/" target="_blank" rel="noopener noreferrer"> | ||
<img src="images/social/kakao.png" alt="카카오"></a> | ||
</div> | ||
</div> | ||
<div class="signup"> | ||
판다마켓이 처음이신가요? | ||
<a href="signup.html" id="signup_button"><span id="textdecoration_underline">회원가입</span></a> | ||
</div> | ||
</section> | ||
<script src="sign.js"></script> | ||
</body> | ||
</html> | ||
<div class="password_label"> | ||
<label for="password">비밀번호</label> | ||
<br /> | ||
<input | ||
id="password" | ||
name="password" | ||
type="password" | ||
placeholder="비밀번호를 입력해주세요" | ||
required | ||
/> | ||
|
||
<span id="passwordEmptyError" class="form_error" | ||
>비밀번호를 입력해 주세요</span | ||
> | ||
<span id="passwordInvalidError" class="form_error" | ||
>비밀번호를 8자 이상 입력해주세요</span | ||
> | ||
</div> | ||
<button type="submit" id="login_button">로그인</button> | ||
</form> | ||
</div> | ||
<div class="simple_login"> | ||
간편 로그인하기 | ||
<div class="social"> | ||
<a | ||
href="https://www.google.com/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<img src="images/social/google.png" alt="구글" | ||
/></a> | ||
<a | ||
href="https://www.kakaocorp.com/page/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<img src="images/social/kakao.png" alt="카카오" | ||
/></a> | ||
</div> | ||
</div> | ||
<div class="signup"> | ||
판다마켓이 처음이신가요? | ||
<a href="signup.html" id="signup_button" | ||
><span id="textdecoration_underline">회원가입</span></a | ||
> | ||
</div> | ||
</section> | ||
<script src="sign.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
"use client"; | ||
|
||
import { usePathname } from "next/navigation"; | ||
import Header from "./layout/Header"; | ||
|
||
export default function ConditionalLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
const pathname = usePathname(); | ||
|
||
if (pathname === "/login" || pathname === "/signup") { | ||
return <>{children}</>; | ||
} | ||
|
||
return ( | ||
<> | ||
<Header /> | ||
{children} | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아하 그렇군요! 흠 이유가 궁금하네요🤔
우선 알겠습니다. 확인 감사해요~