-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/GU-99/grow-up-fe into fe…
…ature/#62-team-ui
- Loading branch information
Showing
22 changed files
with
9,720 additions
and
669 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,22 @@ | ||
import { FormEvent, ReactNode } from 'react'; | ||
|
||
type AuthFormProps = { | ||
children: ReactNode; | ||
onSubmit: (e: FormEvent<HTMLFormElement>) => void; | ||
marginTop: 'mt-34.9' | 'mt-40'; | ||
}; | ||
|
||
export default function AuthForm({ children, onSubmit, marginTop }: AuthFormProps) { | ||
return ( | ||
<> | ||
<section className="mt-40 text-large text-main"> | ||
Welcome to our site! | ||
<br /> | ||
Grow Up your Life with us. | ||
</section> | ||
<form onSubmit={onSubmit} className={`${marginTop} flex h-screen w-300 flex-col justify-center gap-8 py-30`}> | ||
{children} | ||
</form> | ||
</> | ||
); | ||
} |
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,57 @@ | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
type FooterLinksProps = { | ||
type: 'signIn' | 'searchId' | 'searchPassword'; | ||
}; | ||
|
||
const texts = { | ||
signIn: '로그인', | ||
findId: '아이디 찾기', | ||
findPassword: '비밀번호 찾기', | ||
}; | ||
|
||
const paths = { | ||
signIn: '/signin', | ||
findId: '/search/id', | ||
findPassword: '/search/password', | ||
}; | ||
|
||
const links = { | ||
signIn: [ | ||
{ text: texts.findId, path: paths.findId }, | ||
{ text: texts.findPassword, path: paths.findPassword }, | ||
], | ||
searchId: [ | ||
{ text: texts.signIn, path: paths.signIn }, | ||
{ text: texts.findPassword, path: paths.findPassword }, | ||
], | ||
searchPassword: [ | ||
{ text: texts.signIn, path: paths.signIn }, | ||
{ text: texts.findId, path: paths.findId }, | ||
], | ||
}; | ||
|
||
export default function FooterLinks({ type }: FooterLinksProps) { | ||
const nav = useNavigate(); | ||
|
||
return ( | ||
<> | ||
<div className="flex flex-row justify-center"> | ||
{links[type].map((link, index) => ( | ||
<div key={link.text} className="flex flex-row"> | ||
<button type="button" className="cursor-pointer bg-inherit font-bold" onClick={() => nav(link.path)}> | ||
{link.text} | ||
</button> | ||
{index < links[type].length - 1 && <p className="mx-8">|</p>} | ||
</div> | ||
))} | ||
</div> | ||
<div className="mb-35 mt-15 flex flex-row items-center justify-center gap-8"> | ||
<p className="items-center font-bold">회원이 아니신가요?</p> | ||
<button type="button" className="auth-btn" onClick={() => nav('/signup')}> | ||
회원가입 | ||
</button> | ||
</div> | ||
</> | ||
); | ||
} |
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
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,7 @@ | ||
.rbc-off-range-bg { | ||
background: #f4f4f4; | ||
} | ||
|
||
.rbc-selected-cell { | ||
background: var(--color-sub); | ||
} |
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,8 @@ | ||
import { useOutletContext } from 'react-router-dom'; | ||
import { Project } from '@/types/ProjectType'; | ||
|
||
export type ProjectContext = { project: Project }; | ||
|
||
export default function useProjectContext() { | ||
return useOutletContext<ProjectContext>(); | ||
} |
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
Oops, something went wrong.