-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: part 지원서 안내글 기능 추가 * refactor: 컴포넌트 분리 * fix: 텍스트가 있을 때만 왼쪽 점 표시 해주기 * feat: 공통 질문에 대한 안내 기능도 추가
- Loading branch information
1 parent
9541494
commit 1baa595
Showing
4 changed files
with
80 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { container, info } from './style.css'; | ||
|
||
const Info = ({ value }: { value: string }) => { | ||
return ( | ||
<article className={container}> | ||
{value.split('\n').map((text) => ( | ||
<p className={info} key={text}> | ||
{text && <>·</>} {text} | ||
</p> | ||
))} | ||
</article> | ||
); | ||
}; | ||
|
||
export default Info; |
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,17 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
import { theme } from 'styles/theme.css'; | ||
|
||
export const container = style({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
gap: 16, | ||
margin: '20px 0 50px', | ||
}); | ||
|
||
export const info = style({ | ||
color: theme.color.lighterText, | ||
...theme.font.BODY_1_18_M, | ||
whiteSpace: 'pre-line', | ||
letterSpacing: '-0.27px', | ||
}); |
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