-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Feature/BAR-165] 끄적이는 레이아웃 작성 & 데이터 구조화 #38
Conversation
c6f6054
to
834bbd1
Compare
4fa8677
to
6f8dc6a
Compare
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.
수고하셨습니당 👍🏻
export const value = style({ | ||
marginBottom: '16px', | ||
color: COLORS['Grey/900'], | ||
fontSize: '15px', | ||
fontWeight: '400', | ||
lineHeight: '24px', | ||
letterSpacing: '-0.2px', | ||
}); |
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.
export const content = style([
sprinkles({ typography: '15/Body/Regular' }),
{
...
},
]);
로 사용하면 될 것 같습니다!
export const dateLabelWrapper = style({ | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
marginTop: '12px', | ||
marginBottom: '24px', | ||
}); |
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.
export const dateLabelWrapper = style({ | |
display: 'flex', | |
justifyContent: 'center', | |
alignItems: 'center', | |
marginTop: '12px', | |
marginBottom: '24px', | |
}); | |
export const dateLabelWrapper = style([ | |
utils.flexCenter, | |
{ | |
marginTop: '12px', | |
marginBottom: '24px', | |
} | |
]); |
이렇게 사용하셔도 됩니다!
export const dateLabel = style({ | ||
padding: '6px 28px', | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
border: `1px solid ${COLORS['Grey/200']}`, | ||
borderRadius: '100px', | ||
}); |
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.
utils.flexJustifyCenter
도 있습니다!
src/domain/Write/History/index.tsx
Outdated
|
||
import { type WriteHisotry } from '../types'; | ||
import WriteHistoryCard from './components/Card'; | ||
import * as style from './index.css'; |
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.
import * as style from './index.css'; | |
import * as styles from './style.css'; |
엇 이렇게 작성하는 걸로 통일했던 거 같아요.
export const contentWrapper = style({ | ||
display: 'grid', | ||
gridTemplateColumns: '1fr 1fr 1fr', | ||
gap: '16px', | ||
}); |
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.
@@ -20,7 +20,7 @@ | |||
"@assets/*": ["./src/assets/*"], | |||
"@components/*": ["./src/components/*"], | |||
"@constants/*": ["./src/constants/*"], | |||
"@feature/*": ["./src/feature/*"], | |||
"@domain/*": ["./src/domain/*"], |
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.
@wonjin-dev
요건 어떤 이유로 수정된걸까요?
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.
domain 하위에 각각의 feature 폴더들이 들어가야하는건지? 궁금했습니다.
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.
수고하셨슴니당
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.
수고하셨습니다!
@dongkyun-dev @dmswl98 추가 커밋이 있어서 노티드립니다~ 리뷰 주시면, API 연결 + 페이징 처리하면서 함께 반영할게요 !
|
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.
굿굿~~ 수고하셨습니당 👍🏻
const parser = (arr: Write[]): Write[][] => { | ||
let queue1: Write[] = []; | ||
let queue2: Write[] = []; | ||
let queue3: Write[] = []; | ||
|
||
arr.forEach((history, i) => { | ||
const extra = i % 3; | ||
if (extra === 0) { | ||
queue1.push(history); | ||
} else if (extra === 1) { | ||
queue2.push(history); | ||
} else { | ||
queue3.push(history); | ||
} | ||
}); | ||
|
||
return [queue1, queue2, queue3]; | ||
}; |
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.
컴포넌트 내부말고 유틸 함수로 빼도 좋을 것 같아요!
Summary
To Reviewers
margin: 0 auto
&max-width
How To Test
/write
페이지에서 확인 가능