-
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
➕ [WV-16] feat : 콘텐츠 영역 레이아웃 컴포넌트 구현 #12
Conversation
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.
코멘트 남겼습니다.
app/test/page.tsx
Outdated
|
||
<ContentsArea> | ||
<div className="h-[1000px]">asdas</div> | ||
</ContentsArea> |
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.
이거는 모든 페이지에서 다 해당하는 내용이므로 굳이 component로 뺄필요 없이 layout에 children 묶고있는 div에 넣으면 좋을것 같습니다
components/layout/contents-area.tsx
Outdated
const ContentsArea = ({ children }: { children: ReactNode }) => { | ||
return ( | ||
<div className="w-full flex justify-center"> | ||
<div className="w-[1100px] h-auto pt-10 pb-[100px]"> | ||
{children} | ||
</div> | ||
</div> | ||
) | ||
} |
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.
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.
개요
페이지 콘텐츠 영역 레이아웃 컨포넌트 구현
PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.
PR details
contents-area.tsx 컴포넌트 (경로: "components/layout/contents-area.tsx")
width 1100px로 공식 홈페이지와 동일하게 스타일링되었습니다.
예시 (사용법)
아래와 같이 레이아웃 컴포넌트 안에 요소를 넣으면 영역 안에 배치됩니다.
When modifying code...