-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Aside 컴포넌트 퍼블리싱 #46
Merged
+134
−9
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3462f8e
style(theme): boldgray 컬러 추가
jyh071116 ff7dc8d
style(app): app container flex 방향 변경
jyh071116 af530a2
style(component): board 컴포넌트 위치, flex 방향 수정
jyh071116 065c259
chore(assets): arrowIcon에 방향, props 추가
jyh071116 efc45f3
feat(component): aside 컴포넌트 퍼블리싱
jyh071116 b039599
style(compoenet): Aside 컴포넌트 색깔 theme 사용
jyh071116 b5d4c25
style(component): 사용 지양
jyh071116 466f762
chore(component): Link 태그 사용
jyh071116 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,51 @@ | ||
import React from "react"; | ||
import Link from "next/link"; | ||
import { ArrowIcon } from "@/assets"; | ||
import { theme } from "@/styles"; | ||
import * as styles from "./style.css"; | ||
|
||
const Aside = () => { | ||
return ( | ||
<aside className={styles.container}> | ||
<div className={styles.titleBox}> | ||
<span className={styles.titleText}>최근 수정된 문서</span> | ||
</div> | ||
{Array.from({ length: 12 }, (_, i) => ( | ||
<div key={i} className={styles.docs}> | ||
<Link className={styles.docsName} href="/"> | ||
한예준(학생) | ||
</Link> | ||
<span className={styles.docsLastModified}>3시간 전</span> | ||
</div> | ||
))} | ||
<div className={styles.pageBox}> | ||
<button className={styles.pageButton}> | ||
<span className={styles.pageButtonText}> | ||
<ArrowIcon | ||
direction="left" | ||
width={11} | ||
height={11} | ||
viewBox="0 0 11 20" | ||
fill={theme.primary} | ||
/> | ||
이전 | ||
</span> | ||
</button> | ||
<button className={styles.pageButton}> | ||
<span className={styles.pageButtonText}> | ||
다음 | ||
<ArrowIcon | ||
direction="right" | ||
width={11} | ||
height={11} | ||
viewBox="0 0 11 20" | ||
fill={theme.primary} | ||
/> | ||
</span> | ||
</button> | ||
</div> | ||
</aside> | ||
); | ||
}; | ||
|
||
export default Aside; |
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,68 @@ | ||
import { style } from "@vanilla-extract/css"; | ||
import { flex, font, theme } from "@/styles"; | ||
|
||
export const container = style({ | ||
position: "sticky", | ||
width: "240px", | ||
height: "fit-content", | ||
marginTop: "20px", | ||
top: "74px", | ||
}); | ||
|
||
export const titleBox = style({ | ||
backgroundColor: theme.primary, | ||
border: `2px solid ${theme.gray}`, | ||
width: "100%", | ||
height: "50px", | ||
...flex.VERTICAL, | ||
}); | ||
|
||
export const titleText = style({ | ||
marginLeft: "20px", | ||
color: theme.white, | ||
...font.H5, | ||
}); | ||
|
||
export const docs = style({ | ||
width: "100%", | ||
height: "40px", | ||
backgroundColor: theme.white, | ||
border: `2px solid ${theme.gray}`, | ||
borderTop: "none", | ||
...flex.VERTICAL, | ||
}); | ||
|
||
export const docsName = style({ | ||
color: theme.primary, | ||
marginLeft: "10px", | ||
fontSize: "14px", | ||
fontWeight: 600, | ||
}); | ||
|
||
export const docsLastModified = style({ | ||
marginLeft: "5px", | ||
color: theme.boldgray, | ||
fontSize: "10px", | ||
}); | ||
|
||
export const pageBox = style({ | ||
...flex.FLEX, | ||
}); | ||
|
||
export const pageButton = style({ | ||
width: "56px", | ||
height: "24px", | ||
backgroundColor: theme.white, | ||
margin: "6px 2px", | ||
border: `2px solid ${theme.gray}`, | ||
borderRadius: "3px", | ||
...flex.CENTER, | ||
}); | ||
|
||
export const pageButtonText = style({ | ||
color: theme.primary, | ||
fontWeight: 600, | ||
fontSize: "12px", | ||
gap: "2.5px", | ||
...flex.CENTER, | ||
}); |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
제가 방향을 헷갈려서 실수했네요 ㅎㅎ.. 잘 수정해주셔서 감사합니당