-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rename: rename AppProviders * feat: add breakpoints and responsiveStyles method * feat: add Layout component * style: add responsive styles for tablet and mobile to SignIn page * feat: add SignUp page's path * feat: add Icon component * feat: add borderColor prop to Card component * feat: add bold prop to Typo component * feat: add bounce global animation style * feat: add useToggle hooks * fix: add borderRadius css property * feat: add onClose prop to Modal * feat: add SignUp page * rename: rename directory footer to Footer
- Loading branch information
1 parent
6d8abcf
commit 9a05c5c
Showing
45 changed files
with
554 additions
and
76 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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,9 @@ | ||
import { css } from '@emotion/react'; | ||
|
||
export const bounceAnimation = css` | ||
transition: all 0.15s ease-in-out; | ||
&:hover { | ||
transform: translate(-4px, -4px); | ||
} | ||
`; |
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,9 +1,11 @@ | ||
// styles/emotion.d.ts | ||
import '@emotion/react'; | ||
import { palettes } from './global/palettes'; | ||
import { mediaQueries } from './global/breakpoints'; | ||
|
||
declare module '@emotion/react' { | ||
export interface Theme { | ||
mediaQueries: typeof mediaQueries; | ||
palettes: typeof palettes; | ||
} | ||
} |
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,9 @@ | ||
export const breakpoints = { | ||
tablet: '768px', | ||
mobile: '480px', | ||
} as const; | ||
|
||
export const mediaQueries = { | ||
tablet: `@media (max-width: ${breakpoints.tablet})`, | ||
mobile: `@media (max-width: ${breakpoints.mobile})`, | ||
}; |
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,27 @@ | ||
import theme from '../theme'; | ||
|
||
export const responsiveSectionPadding = { | ||
default: { | ||
padding: '100px 0', | ||
}, | ||
tablet: { | ||
padding: '80px 0', | ||
}, | ||
mobile: { | ||
padding: '60px 0', | ||
}, | ||
}; | ||
|
||
export const responsiveStyle = (styles: { | ||
default?: { [key: string]: string }; | ||
tablet?: { [key: string]: string }; | ||
mobile?: { [key: string]: string }; | ||
}) => ({ | ||
...styles.default, | ||
[theme.mediaQueries.tablet]: { | ||
...styles.tablet, | ||
}, | ||
[theme.mediaQueries.mobile]: { | ||
...styles.mobile, | ||
}, | ||
}); |
9 changes: 0 additions & 9 deletions
9
src/assets/styles/images/features/layout/footer/hire_higher_Icon.svg
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
import styled from '@emotion/styled'; | ||
import { PalettesTypes } from '@assets/styles/global/palettes'; | ||
import { HTMLAttributes, ReactNode } from 'react'; | ||
|
||
interface Props extends HTMLAttributes<HTMLDivElement> { | ||
borderColor?: PalettesTypes; | ||
borderRadius?: string; | ||
children: ReactNode; | ||
} | ||
|
||
export default function Card({ borderRadius = '12px', children, ...rest }: Props) { | ||
export default function Card({ borderColor, borderRadius = '12px', children, ...rest }: Props) { | ||
return ( | ||
<CardContainer borderRadius={borderRadius} {...rest}> | ||
<CardContainer borderColor={borderColor} borderRadius={borderRadius} {...rest}> | ||
{children} | ||
</CardContainer> | ||
); | ||
} | ||
|
||
const CardContainer = styled.div<{ borderRadius: string }>` | ||
const CardContainer = styled.div<Omit<Props, 'children'>>` | ||
display: inline-block; | ||
border: 1px solid ${({ theme }) => theme.palettes.white}; | ||
box-shadow: 0px 12px 32px 0px rgba(24, 25, 28, 0.08); | ||
border: 1px solid ${({ borderColor }) => borderColor}; | ||
border-radius: ${({ borderRadius }) => borderRadius}; | ||
`; |
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,9 @@ | ||
import Employer from '@assets/icons/role/employer.svg?react'; | ||
import Worker from '@assets/icons/role/worker.svg?react'; | ||
|
||
const Role = { | ||
Employer, | ||
Worker, | ||
}; | ||
|
||
export default Role; |
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,15 @@ | ||
import Google from '@assets/icons/social/google.svg?react'; | ||
import Facebook from '@assets/icons/social/facebook.svg?react'; | ||
import Instagram from '@assets/icons/social/instagram.svg?react'; | ||
import Twitter from '@assets/icons/social/twitter.svg?react'; | ||
import Youtube from '@assets/icons/social/youtube.svg?react'; | ||
|
||
const Social = { | ||
Google, | ||
Facebook, | ||
Instagram, | ||
Twitter, | ||
Youtube, | ||
}; | ||
|
||
export default Social; |
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,9 @@ | ||
import Role from './Role'; | ||
import Social from './Social'; | ||
|
||
const Icon = { | ||
Role, | ||
Social, | ||
}; | ||
|
||
export default Icon; |
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
File renamed without changes.
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,34 @@ | ||
import { Modal, Typo, Flex, Button } from '@components/common'; | ||
import { ReactNode } from 'react'; | ||
|
||
type Props = { | ||
content: ReactNode; | ||
onClose: () => void; | ||
}; | ||
|
||
export default function RoleModal({ content, onClose }: Props) { | ||
return ( | ||
<Modal | ||
textChildren={ | ||
<div css={{ textAlign: 'center' }}> | ||
<Typo element="strong" size="18px" bold> | ||
정보를 입력해주세요. <br /> | ||
<br /> | ||
{content} | ||
<br /> | ||
<br /> | ||
<span css={{ fontWeight: '400' }}>* 추후 마이페이지에서 수정 할 수 있습니다.</span> | ||
</Typo> | ||
<br /> | ||
</div> | ||
} | ||
buttonChildren={ | ||
<Flex gap={{ x: '16px' }}> | ||
<Button theme="default">등록할게요</Button> | ||
<Button theme="outlined">괜찮아요</Button> | ||
</Flex> | ||
} | ||
onClose={onClose} | ||
/> | ||
); | ||
} |
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,16 @@ | ||
import { Flex } from '@components/common'; | ||
import RoleSelector from './RoleSelector'; | ||
import { ReactNode } from 'react'; | ||
|
||
type Props = { | ||
onRoleSelect: (modalContent: ReactNode) => void; | ||
}; | ||
|
||
export default function RoleSelection({ onRoleSelect }: Props) { | ||
return ( | ||
<Flex justifyContent="center" alignItems="center" gap={{ x: '30px' }}> | ||
<RoleSelector role="employer" onClick={onRoleSelect} /> | ||
<RoleSelector role="worker" onClick={onRoleSelect} /> | ||
</Flex> | ||
); | ||
} |
26 changes: 26 additions & 0 deletions
26
src/features/auth/components/RoleSelector/index.config.tsx
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,26 @@ | ||
import { Icon } from '@components/common'; | ||
|
||
export const roleConfig = { | ||
employer: { | ||
icon: <Icon.Role.Employer />, | ||
text: '사업주 가입', | ||
modalContent: ( | ||
<> | ||
이력서에 대한 정보가 필요해요. | ||
<br /> | ||
이력서 정보를 등록하러 가실까요? | ||
</> | ||
), | ||
}, | ||
worker: { | ||
icon: <Icon.Role.Worker />, | ||
text: '근로자 가입', | ||
modalContent: ( | ||
<> | ||
사업장에 대한 정보가 필요해요. | ||
<br /> | ||
사업주 정보를 등록하러 가실까요? | ||
</> | ||
), | ||
}, | ||
}; |
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,27 @@ | ||
import { Card, Flex, Typo } from '@components/common'; | ||
import { roleConfig } from './index.config'; | ||
import { bounceAnimation } from '@assets/styles/animations'; | ||
import { ReactNode } from 'react'; | ||
|
||
type Props = { | ||
role: 'employer' | 'worker'; | ||
onClick: (modalContent: ReactNode) => void; | ||
}; | ||
|
||
export default function RoleSelector({ role, onClick }: Props) { | ||
return ( | ||
<Card | ||
borderColor="blue" | ||
borderRadius="12px" | ||
css={[bounceAnimation, { padding: '60px 120px', cursor: 'pointer' }]} | ||
onClick={() => onClick(roleConfig[role].modalContent)} | ||
> | ||
<Flex direction="column" alignItems="center"> | ||
<div css={{ marginBottom: '24px' }}>{roleConfig[role].icon}</div> | ||
<Typo element="h2" color="blue" size="18px" bold> | ||
{roleConfig[role].text} | ||
</Typo> | ||
</Flex> | ||
</Card> | ||
); | ||
} |
Empty file.
Oops, something went wrong.