Skip to content

Commit

Permalink
fix: 학습하기 메인페이지 마진 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
cjy3458 committed Aug 26, 2024
1 parent b7de5ee commit 429b135
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
6 changes: 5 additions & 1 deletion src/components/common/common.styled.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import styled from "styled-components";

export const Margin = styled.div`
width: 100%;
min-height: 80px;
`;

export const CommonWrapper = styled.div`
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -74,7 +79,6 @@ export const MainWrapper = styled.div`
align-items: flex-start;
gap: 3rem;
padding-top: 3rem;
padding-bottom: 140px;
`;

export const Shelf = styled.img`
Expand Down
5 changes: 0 additions & 5 deletions src/components/common/tabBar/TabBar.styled.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import styled from "styled-components";

export const Margin = styled.div`
width: 100%;
min-height: 120px;
`;

export const TabBarContainer = styled.div`
width: 100%;
height: 80px;
Expand Down
3 changes: 2 additions & 1 deletion src/components/common/tabBar/TabBar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useLocation, useNavigate } from "react-router-dom";
import * as S from "./TabBar.styled";
import { Margin } from "../common.styled";

const TabBar = () => {
const location = useLocation();
Expand All @@ -21,7 +22,7 @@ const TabBar = () => {

return (
<>
<S.Margin />
<Margin />
<S.TabBarContainer>
{tabs.map((tab) => (
<S.TabWrapper key={tab.id}>
Expand Down
3 changes: 2 additions & 1 deletion src/components/learn/learnMain/Learn.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MainWrapper } from "@components/common/common.styled";
import { MainWrapper, Margin } from "@components/common/common.styled";
import TabBar from "@components/common/tabBar/TabBar";
import Word from "./word/Word";
import UnLearned from "./unLearned/UnLearned";
Expand All @@ -11,6 +11,7 @@ const Learn = () => {
<Word />
<UnLearned />
<Learned />
<Margin />
</MainWrapper>
<TabBar />
</>
Expand Down
2 changes: 1 addition & 1 deletion src/components/tales/createMain/CreateMain.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const Wrapper = styled.div`
flex-direction: column;
justify-content: space-between;
align-items: center;
overflow-x: hidden;
overflow-x: hidden; // 스크롤 생기는거 괜찮은지 물어보기
gap: 2.5rem;
#topGraphic {
width: 100%;
Expand Down

0 comments on commit 429b135

Please sign in to comment.