Skip to content

Commit

Permalink
feat: 레이아웃만 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sinji2102 committed Jul 12, 2024
1 parent 0e5fab1 commit cc10eab
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/main/Main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useState } from "react";
import * as S from "./Main.styled";

import MainNavigation from "./components/mainNavigation/MainNavigation";
import Carousel from "./components/carousel/Carousel";
import Chips from "./components/chips/Chips";
import Performance from "./components/performance/Performance";
Expand All @@ -17,6 +18,7 @@ const Main = () => {

return (
<S.MainWrapper>
<MainNavigation />
<Carousel promotionList={dummyData.promotionList} />
<Chips handleGenre={handleGenre} />
<Performance genre={genre} performanceList={dummyData.performanceList} />
Expand Down
1 change: 1 addition & 0 deletions src/pages/main/components/carousel/Carousel.styled.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import styled from "styled-components";

export const CarouselWarpper = styled.div`
position: relative;
width: 100%;
overflow: hidden;
`;
Expand Down
13 changes: 13 additions & 0 deletions src/pages/main/components/mainNavigation/MainNavigation.styled.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import styled from "styled-components";

export const MainNavigationWrapper = styled.section`
position: absolute;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
width: 37.5rem;
height: 5.6rem;
color: white;
`;
8 changes: 8 additions & 0 deletions src/pages/main/components/mainNavigation/MainNavigation.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from "react";
import * as S from "./MainNavigation.styled";

const MainNavigation = () => {
return <S.MainNavigationWrapper>테스트테스트테스트</S.MainNavigationWrapper>;
};

export default MainNavigation;

0 comments on commit cc10eab

Please sign in to comment.