-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement components with applied react-query lib
- Loading branch information
Showing
62 changed files
with
967 additions
and
502 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
$lg-header-height: 9.3rem; | ||
$lg-footer-height: 16.4rem; | ||
$sm-header-height: 6.3rem; | ||
$sm-footer-height: 16rem; | ||
|
||
.container { | ||
min-height: calc(100vh - ($lg-header-height + $lg-footer-height)); | ||
@include column-flexbox; | ||
|
||
@include responsive(M) { | ||
min-height: calc(100vh - ($sm-header-height + $sm-footer-height)); | ||
} | ||
width: 100%; | ||
flex-grow: 1; | ||
} |
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,3 @@ | ||
const EmptyLayout = ({ children }) => <>{children}</>; | ||
|
||
export default EmptyLayout; |
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,4 +1,5 @@ | ||
.footer { | ||
width: 100%; | ||
background-color: $dark-blue; | ||
|
||
.footer-container { | ||
|
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,5 @@ | ||
.full-layout { | ||
width: 100%; | ||
min-height: 100vh; | ||
background-color: $light-blue; | ||
} |
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,10 @@ | ||
import styles from './FullLayout.module.scss'; | ||
import classNames from 'classnames/bind'; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
const FullLayout = ({ children }) => { | ||
return <div className={cx('full-layout')}>{children}</div>; | ||
}; | ||
|
||
export default FullLayout; |
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,4 +1,5 @@ | ||
.gnb { | ||
width: 100%; | ||
background-color: $light-blue; | ||
|
||
&-container { | ||
|
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,6 @@ | ||
.main-layout { | ||
@include column-flexbox; | ||
|
||
width: 100%; | ||
min-height: 100vh; | ||
} |
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,18 @@ | ||
import classNames from 'classnames/bind'; | ||
import Header from 'components/layout/Header'; | ||
import Footer from 'components/layout/Footer'; | ||
import styles from './MainLayout.module.scss'; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
const MainLayout = ({ children }) => { | ||
return ( | ||
<div className={cx('main-layout')}> | ||
<Header /> | ||
{children} | ||
<Footer /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default MainLayout; |
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,3 @@ | ||
export * from './auth'; | ||
export * from './importImg'; | ||
export * from './listOption'; |
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,33 @@ | ||
import Link from 'next/link'; | ||
import Image from 'next/image'; | ||
import classNames from 'classnames/bind'; | ||
import { useFormContext } from 'react-hook-form'; | ||
import { ICON } from 'constants/importImg'; | ||
import styles from './AuthForm.module.scss'; | ||
|
||
const cx = classNames.bind(styles); | ||
const { logo } = ICON; | ||
|
||
const AuthFormHeader = () => { | ||
const { reset } = useFormContext(); | ||
|
||
return ( | ||
<header className={cx('auth-form-header')}> | ||
<div className={cx('auth-form-header-container')}> | ||
<h1 className={cx('logo')}> | ||
<Link href={'/'}> | ||
<Image width={210} height={38} src={logo.url} alt={logo.alt} priority /> | ||
</Link> | ||
</h1> | ||
<p className={cx('auth-form-header-info')}> | ||
회원이 아니신가요? | ||
<Link href={'/signup'} onClick={() => reset()}> | ||
<span className={cx('auth-form-header-signup')}>회원 가입하기</span> | ||
</Link> | ||
</p> | ||
</div> | ||
</header> | ||
); | ||
}; | ||
|
||
export default AuthFormHeader; |
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,28 @@ | ||
import Link from 'next/link'; | ||
|
||
import classNames from 'classnames/bind'; | ||
import styles from './AuthForm.module.scss'; | ||
|
||
import { SOCIAL_LOGIN } from 'constants/listOption'; | ||
import IconButton from 'components/common/Button/IconButton'; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
const AuthFormSocial = () => { | ||
return ( | ||
<div className={cx('auth-form-social')}> | ||
<span className={cx('auth-form-social-title')}>소셜 로그인</span> | ||
<ul className={cx('auth-form-social-list')}> | ||
{SOCIAL_LOGIN.map((item) => ( | ||
<li key={item.id} className={cx('auth-form-social-item')}> | ||
<Link href={item.url}> | ||
<IconButton svg={item.src} iconSize={42} alt={item.alt} /> | ||
</Link> | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
); | ||
}; | ||
|
||
export default AuthFormSocial; |
Oops, something went wrong.