Skip to content
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/#8] 공통 레이아웃 설정 #11

Merged
merged 15 commits into from
Jan 26, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/app/global.css
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아직 완성된 PR이 아니긴 한데 구경하다가 의문증이 생겨서 찾아왔습니다!
styled components에서 제공하는 api인 createGlobalStyle을 사용하지 않으신 이유가 있으신가요~??

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

깜빡했네 ㅠ 스타일 관리는 styled-component가 담당하는 게 좋아보여요

feat: 전역 css 관리 컴포넌트 GlobalStyle 컴포넌트 추가

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*,
*::before,
*::after {
box-sizing: border-box;
}

body {
word-break: break-all;
}

@media screen and (min-width: 450px) {
body {
background-color: rgb(245, 245, 245);
}
}
1 change: 1 addition & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@/app/global.css';
import ResponsiveRootLayout from '@/shared/components/ResponsiveRootLayout';
import ReactQueryClientProvider from '@/shared/lib/reactQuery/ReactQueryClientProvider';
import StyledComponentsRegistry from '@/shared/lib/styledComponents/StyledComponentsRegistry';
Expand Down