Skip to content

Commit

Permalink
fix: Page layout 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Youn-Rha committed Nov 15, 2024
1 parent 41dd413 commit 944d17c
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 19 deletions.
3 changes: 2 additions & 1 deletion src/components/PageBar/index.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import backArrow from "../../assets/backarrow.png";

export const Container = styled.div`
height: 70px;
width: 100%;
width: 440px;
margin: 0 auto;
background-color: var(--color-white);
border-bottom-style: solid;
Expand Down
16 changes: 13 additions & 3 deletions src/pages/CharacterPage/index.style.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import styled from "@emotion/styled";

export const Container = styled.div`
max-width: 400px;
max-width: 440px;
height: 100vh;
margin: 0 auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 60px;
`;
Expand Down Expand Up @@ -48,12 +47,23 @@ export const Logo = styled.button`

export const CharacterItem = styled.div`
width: 100%;
position: relative; /* 자식 요소들 위치 고정을 위한 상대 위치 */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 20px;
& > *:first-child {
position: absolute;
top: -30px; /* 상단 텍스트 위치 고정 */
}
& > *:last-child {
position: absolute;
bottom: -30px; /* 하단 텍스트 위치 고정 */
}
`;

export const BarContainer = styled.div`
Expand All @@ -79,4 +89,4 @@ export const ButtonContainer = styled.div`
display: flex;
align-items: center;
justify-content: space-between;
`;
`;
3 changes: 0 additions & 3 deletions src/pages/ChatPage/index.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ export const FixedHeader = styled.div`
position: fixed;
top: 0;
left: 0;
z-index: 10;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
`;

export const ChatContainer = styled.div`
Expand Down
4 changes: 2 additions & 2 deletions src/pages/CheckStartPage/index.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export const TextContainer = styled.div`
`;

export const Wrapper = styled.div`
margin-top: 300px;
margin-top: 200px;
display: flex;
flex-direction: column;
align-items: center;
gap: 120px;
gap: 220px;
`;
6 changes: 3 additions & 3 deletions src/pages/MainPage/index.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const Container = styled.div`
justify-content: center;
align-items: center;
gap: 40px;
gap: 20px;
`;

export const Header = styled.div`
Expand Down Expand Up @@ -56,7 +56,7 @@ export const HeaderIcons = styled.div`

export const QContainer = styled.button`
width: 100%;
min-height: 200px;
min-height: 120px;
background-color: var(--color-secondary);
Expand All @@ -66,7 +66,7 @@ export const QContainer = styled.button`
flex-direction: column;
padding: 30px;
gap: 40px;
gap: 30px;
margin-top: 20px;
Expand Down
2 changes: 0 additions & 2 deletions src/pages/PointRecordPage/index.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export const FixedHeader = styled.div`
top: 0;
left: 0;
width: 100%;
z-index: 10;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
`;

export const RecordContainer = styled.div`
Expand Down
2 changes: 0 additions & 2 deletions src/pages/RecordPage/index.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,4 @@ export const FixedHeader = styled.div`
top: 0;
left: 0;
width: 100%;
z-index: 10;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
`;
3 changes: 0 additions & 3 deletions src/pages/WriteDiaryPage/index.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ export const FixedHeader = styled.div`
position: fixed;
top: 0;
left: 0;
z-index: 10;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
`;

export const TextContainer = styled.div`
Expand Down

0 comments on commit 944d17c

Please sign in to comment.