Skip to content

Commit

Permalink
Merge pull request #118 from woowacourse-teams/feature/#117
Browse files Browse the repository at this point in the history
desktop 환경에서의 max width 적용 및 상수화
  • Loading branch information
jaeml06 authored Jul 25, 2024
2 parents 90c73b6 + 4b1ef56 commit 29a3f21
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
4 changes: 4 additions & 0 deletions frontend/src/common/reset.style.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { DISPLAY_MAX_WIDTH } from '@_constants/styles';
import { css } from '@emotion/react';

const reset = css`
Expand Down Expand Up @@ -109,6 +110,9 @@ const reset = css`
}
body {
position: relative;
max-width: ${DISPLAY_MAX_WIDTH};
margin: 0 auto;
line-height: 1;
}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/constants/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const DISPLAY_MAX_WIDTH = '60rem';
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { DISPLAY_MAX_WIDTH } from '@_constants/styles';
import { css } from '@emotion/react';

// TODO: 바텀 버튼 UI에 대한 기획 논의 필요
export const bottomFixedStyle = css`
position: fixed;
bottom: 26px;
width: 100%;
max-width: ${DISPLAY_MAX_WIDTH};
padding: 0 16px;
`;
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import { DISPLAY_MAX_WIDTH } from '@_constants/styles';
import { css } from '@emotion/react';

export const fixedWrapperStyle = css`
position: fixed;
right: 22px;
bottom: 26px;
display: flex;
justify-content: right;
width: 100%;
max-width: ${DISPLAY_MAX_WIDTH};
padding-right: 4rem;
`;
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { DISPLAY_MAX_WIDTH } from '@_constants/styles';
import { css } from '@emotion/react';

// TODO: 바텀 버튼 UI에 대한 기획 논의 필요
export const bottomFixedStyle = css`
position: fixed;
bottom: 26px;
width: 100%;
max-width: ${DISPLAY_MAX_WIDTH};
padding: 0 16px;
`;

0 comments on commit 29a3f21

Please sign in to comment.