-
Notifications
You must be signed in to change notification settings - Fork 1
[feat] add auth layout #61
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
73ba85b
:sparkles: feat: add zustand store and fix login functionality
naseungyeop d5c641f
:bug: fix: linting issues
naseungyeop 73498ce
:bug: refactor: refactor update types in zustand store
naseungyeop b35f2e5
:bug: refactor: update types in zustand store2
naseungyeop 3abcc12
:recycle: refactor: authStore for token handling
naseungyeop b33f755
:sparkles: feat: add login page
naseungyeop 39b0182
:sparkles: feat: add login page
naseungyeop b89d0f9
:fire: remove: styled components
naseungyeop ee6d924
:fix: chore: restore package-lock.json
naseungyeop 2e55407
:sparkles: feat: add authlayout component and implement responsive deβ¦
naseungyeop de8a9dc
:recycle: refactor: modify authlayout structure
naseungyeop d5a393c
:recycle: refactor: rename layout file update login page structure anβ¦
naseungyeop 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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,51 @@ | ||
| .authContainer { | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: center; | ||
| align-items: center; | ||
| min-height: 100vh; | ||
| width: 100%; | ||
| background-color: var(--white); | ||
| } | ||
|
|
||
| .authContent { | ||
| width: 100%; | ||
| max-width: 400px; | ||
| box-sizing: border-box; | ||
| display: flex; | ||
|
|
||
| justify-content: center; | ||
| background-color: var(--white); | ||
| border-radius: 8px; | ||
| padding: 20px; | ||
| } | ||
|
|
||
| .logoContainer { | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: center; | ||
| align-items: center; | ||
| margin: 16px 0; | ||
| } | ||
|
|
||
| .logo { | ||
| width: 100%; | ||
| height: auto; | ||
| } | ||
|
|
||
| .greeting { | ||
| margin-top: 16px; | ||
| font-size: 20px; | ||
| text-align: center; | ||
| } | ||
| @media screen and (min-width: 768px) { | ||
| .authContent { | ||
| max-width: 351px; | ||
| } | ||
| } | ||
|
|
||
| @media screen and (min-width: 1200px) { | ||
| .authContent { | ||
| max-width: 520px; | ||
| } | ||
| } |
This file contains hidden or 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,31 @@ | ||
| 'use client'; | ||
|
|
||
| import React from 'react'; | ||
| import styles from './AuthLayout.module.css'; | ||
| import Image from 'next/image'; | ||
| import { useRouter } from 'next/navigation'; | ||
|
|
||
| interface AuthLayoutProps { | ||
| children: React.ReactNode; | ||
| } | ||
|
|
||
| export default function AuthLayout({ children }: AuthLayoutProps) { | ||
| const router = useRouter(); | ||
|
|
||
| return ( | ||
| <div className={styles.authContainer}> | ||
| <div className={styles.logoContainer}> | ||
| <Image | ||
| src="/images/logo_main.svg" | ||
| alt="λ‘κ³ " | ||
| width={100} | ||
| height={100} | ||
| className={styles.logo} | ||
| onClick={() => router.push('/')} | ||
| style={{ cursor: 'pointer' }} | ||
| /> | ||
| </div> | ||
| <div className={styles.authContent}>{children}</div> | ||
| </div> | ||
| ); | ||
| } |
This file contains hidden or 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 hidden or 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
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.
맨μ€λ₯Έμͺ½ λμ΄μ°κΈ°λ μΌλΆλ¬ λ£μΌμ 건κ°μ?
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.
λ€..κ³΅λ°±μ΄ μλκ² λ μ΄λ»λ³΄μ¬μ
Uh oh!
There was an error while loading. Please reload this page.
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.
@naseungyeop μ.. μ μ¬μ΄μ¬μ΄ κ°κ²©μ μ΄λ κ² νμ ¨κ΅°μ..!
λ€μλ²μ cssλ‘ μ²λ¦¬νλ λ°©ν₯ κ³ λ €ν΄μ£Όμλ©΄ μ’μκ²κ°λ€μ~
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.
λ΅