-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/signup kkm #69
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
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.
λ©μ§κ³ κ³ λ§μμ!!!!! 리뷰 μ½λ©νΈ λ¬μλ¨μ΄μ-
μ€λλ§μ μμ ν΄λ³΄μλ μ΄λ μ κ°μ k k μ΄λ¬λ€ λ€μ FE μΈκ³ μ€λ κ±° μλκ°λͺ°λΌ~
λ©μΈ νμ΄μ§ μ’μΈ‘ λ°°λμμ νμκ°μ μ λ€μ΄κ°λ κ²½μ° μ΄μ§ νλ νμ(λ λλ§ κΉλΉ‘)μ΄ λ°μνλ κ² κ°μλ° μΆν νμΈμ΄ νμν κ² κ°μ΅λλ€.
νμΈν΄λ³΄λ, μΆμΈ‘μ
pages/login.tsx
μμ isAniTime
μΌλ‘ μ λλ©μ΄μ
1μ΄κ° μ€ννλλ°
λ€μ νμ΄μ§λ‘ λμ΄κ° λ κ·Έ νμ΄μ§ νμΌμ λΆλ¬μ€λ λμ λ‘κ·ΈμΈ νμ΄μ§λ₯Ό 보μ¬μ£Όλ κ² κ°μμ
리μ‘νΈμμλ λμμ΄ λΉ¨λΌμ μ κ·Έλ¬λλ° λ₯μ€νΈμμλ MPA νΉμ±μ html νμΌμ λΆλ¬μ€λ μκ°μ΄ μλ€λ³΄λκΉ κ°κ·Ήμ΄ μ‘°κΈ μκΈ°λ보λ€μ
νμκ°μ
νΌμ²λΌ framer-motion
μΌλ‘ μΈλ§μ΄νΈ λ λμ μ λλ©μ΄μ
μ λ¬μμ£Όμ΄μΌ ν κ² κ°μμ!
-> μ κ° μ£Όλ§μ ν κ²μ! νκ³ μΆμΌλ©΄ ν λν ~
components/signup/SignupForm.tsx
Outdated
@@ -35,10 +36,14 @@ export default function SignupForm(props: SignupFormProps) { | |||
</> | |||
); | |||
|
|||
const linkOfCondition = referralLinkLIst[0].href; |
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.
μ ~~~ λ³μ μμ± μ’λ€μ! !!
pages/signup/index.tsx
Outdated
if (formDataKeyIndex === "email") { | ||
LocalStorage.setItem("booktez-email", loginFormData["email"]); | ||
} | ||
} else { | ||
setError(formDataKeyIndex, { type: "server", message }); |
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.
(μ μ) μ ν¬ "email", "server" stringμ const μμλ‘ ννν¨μ μ΄λ¨κΉμ??
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.
μ λμ¨ νμ μΌλ‘ μ μν΄λλ κ²λ μ’λ€κ΅¬ μκ°ν©λλΉ~
pages/signup/index.tsx
Outdated
if (isValid) { | ||
setNextStep(key); | ||
if (formDataKeyIndex === "email") { | ||
LocalStorage.setItem("booktez-email", loginFormData["email"]); | ||
} | ||
} else { | ||
setError(formDataKeyIndex, { type: "server", message }); |
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.
(κΆμ₯) else ꡬ문μ μ΅λν νΌν΄μΌ κ°λ μ±μ΄ μ’μμ§λ€κ³ μκ°ν΄μ
!isValid
λ‘ μλ¬ μ²λ¦¬λ₯Ό ν νμ return μν€κ³ , κ·Έ μλμ λ‘μ§μ ꡬμ±ν¨μ μ΄λ¨κΉμ??
if (isValid) { | ||
setNextStep(inputValue); | ||
|
||
if (formDataKeyIndex === "email") { | ||
LocalStorage.setItem("booktez-email", loginFormData["email"]); | ||
} | ||
|
||
return; | ||
} | ||
setError(formDataKeyIndex, { type: "server", message }); |
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.
μνΈ μ΄λ κ² λμκ΅°μ!!
μ΄κ²λ μ’μ§λ§, μμμ λ§ ν κ²μ²λΌ μλ¬ μ²΄νΉμ μλ‘ μ¬λ¦¬λ©΄, if μ λμ€κ° κΉμ΄μ§μ§ μμ μ μμ κ² κ°μμ
setValue(formDataKeyIndex, ""); | ||
setValue(formDataKeyIndex, "", { shouldDirty: true }); |
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.
ππππ
const NICKNAME_REGEX = /^(?=.*[a-z0-9κ°-ν£])[a-z0-9κ°-ν£]{2,10}$/i; | ||
|
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.
ππ
pages/signup/index.tsx
Outdated
if (formDataKeyIndex == "nickname" || formDataKeyIndex == "password") { | ||
const prevFormDataKeyIndex = formDataKeyIndex == "password" ? "nickname" : "email"; | ||
|
||
history.pushState(null, "", ""); | ||
window.onpopstate = () => { | ||
setFormDataKeyIndex(prevFormDataKeyIndex); | ||
}; | ||
} else { | ||
window.onpopstate = () => { | ||
// μ΄κΈ°ν | ||
}; | ||
} |
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.
switchλ¬Έ μ¬μ©νλ κ² μ’ λ μμ보기 μ¬μ°λ €λ μΆλ€μ!
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.
(κΆμ₯) if-elseμ, μΌνμ°μ°κΉμ§ μμΌλ μ΄λ€ μ½λμΈμ§ λͺ
νν μ μλΏλ κ² κ°μμ
formDataKeyIndex
κ°μΌλ‘ switch λ¬Έ νμ©νλ©΄ μ’μ κ² κ°μ΅λλ·
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.
κ·λ―Όμ΄ μ½λλ₯Ό λ€μ λ³΄κ² λλ€λ λ μ°λ.. λ€μ λμμ~ λμμ λμμ~~
components/signup/SignupForm.tsx
Outdated
@@ -35,10 +36,14 @@ export default function SignupForm(props: SignupFormProps) { | |||
</> | |||
); | |||
|
|||
const linkOfCondition = referralLinkLIst[0].href; |
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.
μ ~~~ λ³μ μμ± μ’λ€μ! !!
pages/signup/index.tsx
Outdated
if (formDataKeyIndex === "email") { | ||
LocalStorage.setItem("booktez-email", loginFormData["email"]); | ||
} | ||
} else { | ||
setError(formDataKeyIndex, { type: "server", message }); |
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.
μ λμ¨ νμ μΌλ‘ μ μν΄λλ κ²λ μ’λ€κ΅¬ μκ°ν©λλΉ~
& > a { | ||
text-decoration: underline; | ||
} |
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.
μ κ° νΌκ·Έλ§λ₯Ό νμΈνμ§λ λͺ»νλλ°, νΉμ μ΄ νμκ° κ°μΈμ 보 μμ§ λ° μ΄μ© μ½κ΄μ λμν©λλ€.
μ μ²΄κ° μλ κ°μΈμ 보 μμ§ λ° μ΄μ© μ½κ΄
μλ§ ν΄λΉλλ κ²μ μλκ°μ₯?
setValue(formDataKeyIndex, ""); | ||
setValue(formDataKeyIndex, "", { shouldDirty: true }); |
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.
ππππ
setNextStep(inputValue); | ||
|
||
if (formDataKeyIndex === "email") { | ||
LocalStorage.setItem("booktez-email", loginFormData["email"]); |
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.
λ‘컬μ€ν λ¦¬μ§ ν€λ₯Ό μμλ νμ μΌλ‘ μ μν΄λλ©΄ (λμ€μ μ½λλ₯Ό κ³ μΉ λκ΅°κ°κ° νΈν΄μ§ κ² κ°μμ)μ’μ κ² κ°λ€λ μκ°μ΄ λλλ°, νμλ μλλλΉ(κ·Όλ° ν΄μ£Όλ©΄ μ’μ κ² κ°μ λλμ λ)
pages/signup/index.tsx
Outdated
if (formDataKeyIndex == "nickname" || formDataKeyIndex == "password") { | ||
const prevFormDataKeyIndex = formDataKeyIndex == "password" ? "nickname" : "email"; | ||
|
||
history.pushState(null, "", ""); | ||
window.onpopstate = () => { | ||
setFormDataKeyIndex(prevFormDataKeyIndex); | ||
}; | ||
} else { | ||
window.onpopstate = () => { | ||
// μ΄κΈ°ν | ||
}; | ||
} |
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.
μ¬κΈ°μλ μ§μ§ λ³κ±° μλλ°, ===
κ° μλ ==
μΈ μ΄μ κ° μλμ€?
λμμ μμ²ν©λλ€!!γ
γ
π μμ μ€ λ²κ·Έκ° λ°μν λ²νΌ νμ±ν λ¬Έμ λ λ€μκ³Ό κ°μ΅λλ€.
π ν λΉλ μμ μ€ μμ λ¬Έμ κ° ν΄κ²°λμ§ λͺ»ν΄ μ§ννμ§ λͺ»ν μμ μ λ€μκ³Ό κ°μ΅λλ€.
|
π λ μ΄λ° κ±° νμ΄μ
λ°μ€ + λ§ν¬λ₯Ό μΆκ°νμκ³ , μ½κ΄ 체ν¬λ₯Ό νμ§ μμλ€λ©΄ 'λ€μ κ³λ¨'μ λΉνμ±ν μνλ‘ λ§λ€μ΄μ£Όμμ΅λλ€.
2λ¨κ³λ‘ λμ΄μ¨ μ§νμλ μ무κ²λ μ λ ₯λμ΄μμ§ μκΈ° λλ¬Έμ 'λ€μ κ³λ¨'μ λΉνμ±ν μνλ‘ λ§λ€μ΄μ£Όμμ΅λλ€.
#μ΄λ & κ°μ νΉμλ¬Έμκ° νμ©λκ³ μμλλ°, λλ€μ λ‘μ§μμλ μλ²μμ μ ν¨μ± κ²μ¬λ₯Ό ν΄μ£Όκ³ μμμ΅λλ€.
μλ² μΈ‘μμ μμ μ²λ¦¬λ₯Ό ν΄μ£Όλ κ²λ μ’κ² μ§λ§, μ ν¨μ± κ²μ¬ μ체λ ν΄λΌμ΄μΈνΈμ μλ² μ μΈ‘μμ λͺ¨λ ν΄μ£Όλ κ²μ΄ μ’λ€κ³ λ
μκ³ μμ΄μ μ κ·μ μΆκ° κ²μ¬λ₯Ό ν΄μ£Όμμ΅λλ€.
문ꡬλ₯Ό λ³κ²½νμμ΅λλ€.
λΉλ°λ²νΈ μ λ ₯ νλ©΄ 문ꡬ μμ μμ
νμ κ°μ νλ©΄μμ λ€λ‘ κ°κΈ° μ μλ‘κ³ μΉ¨ λλ μνμμ μ΄μ λ¨κ³ νλ©΄(μ€μ λ‘λ μ»΄ν¬λνΈλ§ λ³κ²½)μΌλ‘ μ΄λνλλ‘ νμμ΅λλ€.
π λ μ΄λ° κ±° μκ² λμμ΄μ
π λ μ΄λ° κ±° κΆκΈν΄μ