-
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.
* [feat] add Button style, seperate regExp from validate * [feat] add AdditionalInfoPage - src/pages/AdditionalInfoPage/components/ - add AdditionalLink - add InterestCheckbox - add MyInterestField - add utils/dynamicWidth.ts - src/assets/icons/ - add circle.close.svg - add close.svg * [style] added response mobile style * [feat] applied mobile responsive style, added preventing duplicate myInterests * [feat] added preprocessing form data logic * [feat] added myInterests input focus style, replace duplicate logic to use interests list * [feat] fix MyInterestField isDuplicate logic - when occuring onKeyDown with remove component, onBlur event was occured at the same time. - fix only onBlur event to be occured when isEditing state is true. * [feat] when checking duplicate myInterest, exclude empty word * [refact] seperate logics to custom hooks - seperate useAdditionalInfoForm and useAdditionalInfoFieldArray from AdditionalInfoPage component * [style] update Field component style * [style] apply top-level background to gray
- Loading branch information
1 parent
19123df
commit cdf217b
Showing
32 changed files
with
719 additions
and
26 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,6 +1,8 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
import { vars } from '@styles/theme.css'; | ||
|
||
export const container = style({ | ||
width: '100%', | ||
height: '100vh', | ||
backgroundColor: vars.colors['gray-9'], | ||
}); |
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,11 @@ | ||
const REG_EXP = { | ||
EMAIL: | ||
/^[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*@[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*\.[a-zA-Z]{2,3}$/i, | ||
PASSWORD: | ||
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[#$@$!%*?&.,])[A-Za-z\d$@$!%*?&.,]/, | ||
NICKNAME: /^(?=.*[a-z0-9가-힣_.])[a-z0-9가-힣_.]{2,16}$/i, | ||
CONFIRM: /[\d]$/, | ||
ONLY_ENG_NUM: /^[a-zA-Z0-9]*$/, | ||
}; | ||
|
||
export { REG_EXP }; |
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,12 @@ | ||
export const RECOMMANED_INTERESTS = [ | ||
'java', | ||
'javascript', | ||
'aws', | ||
'react', | ||
'git', | ||
'spring', | ||
'android', | ||
'html', | ||
'css', | ||
'linux', | ||
]; |
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,102 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
import { vars } from '@styles/theme.css'; | ||
import { responsiveStyle } from '@styles/styles.css'; | ||
|
||
export const container = style([ | ||
{ | ||
width: '100%', | ||
height: '100%', | ||
padding: '50px 30px', | ||
backgroundColor: vars.colors.white, | ||
}, | ||
responsiveStyle({ | ||
desktop: { | ||
padding: '100px', | ||
}, | ||
}), | ||
]); | ||
|
||
export const subTitle = style([ | ||
{ | ||
fontSize: vars.font['bold-20'].fontSize, | ||
fontWeight: vars.font['bold-20'].fontWeight, | ||
marginTop: '40px', | ||
marginBottom: '20px', | ||
}, | ||
responsiveStyle({ | ||
desktop: { | ||
marginTop: '50px', | ||
marginBottom: '30px', | ||
}, | ||
}), | ||
]); | ||
|
||
export const linkField = style([ | ||
{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
marginBottom: '10px', | ||
}, | ||
responsiveStyle({ desktop: { marginBottom: '30px' } }), | ||
]); | ||
|
||
const addtionalDefaultButton = style([ | ||
{ | ||
padding: '5px 15px', | ||
':hover': { | ||
background: vars.colors['primary-1'], | ||
color: vars.colors['gray-9'], | ||
borderColor: vars.colors['primary-1'], | ||
}, | ||
':active': { | ||
background: vars.colors['primary-1'], | ||
color: vars.colors['gray-9'], | ||
borderColor: vars.colors['primary-1'], | ||
}, | ||
}, | ||
responsiveStyle({ desktop: { padding: '10px 15px' } }), | ||
]); | ||
|
||
export const addLinkButton = style([ | ||
addtionalDefaultButton, | ||
{ | ||
height: '1.75rem', | ||
}, | ||
responsiveStyle({ desktop: { height: '2.5rem' } }), | ||
]); | ||
|
||
const defaultFieldBox = style({ | ||
display: 'flex', | ||
flexDirection: 'row', | ||
flexWrap: 'wrap', | ||
}); | ||
|
||
export const interestsFieldBox = style([ | ||
defaultFieldBox, | ||
{ | ||
gap: '10px', | ||
}, | ||
]); | ||
|
||
export const myInterestErrorMessage = style({ | ||
marginBottom: '10px', | ||
fontSize: vars.font['body-12'].fontSize, | ||
color: vars.colors.red, | ||
}); | ||
|
||
export const myInterestFieldBox = style([ | ||
defaultFieldBox, | ||
{ | ||
marginBottom: '60px', | ||
}, | ||
responsiveStyle({ desktop: { marginBottom: '120px' } }), | ||
]); | ||
|
||
export const addInterestButton = style([ | ||
addtionalDefaultButton, | ||
{ | ||
width: '4.625rem', | ||
height: '41px', | ||
}, | ||
]); |
Oops, something went wrong.