-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: CommonLayout 컴포넌트 정의, Home 페이지 UI를 tailwind로 재구성
- Loading branch information
Showing
4 changed files
with
28 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import { Banner } from "./banner"; | ||
import { Feed } from "./feed/feed"; | ||
import { Feed } from "./feed"; | ||
import { SideBar } from "./side-bar"; | ||
|
||
export const Home = () => { | ||
return ( | ||
<div className="home-page"> | ||
<> | ||
<Banner /> | ||
|
||
<div className="page container"> | ||
<div className="row"> | ||
<div className="flex justify-center"> | ||
<div className="page relative"> | ||
<Feed /> | ||
<SideBar /> | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import type { PropsWithChildren } from "react"; | ||
|
||
import { Footer } from "../footer"; | ||
import { Header } from "../header"; | ||
|
||
export const CommonLayout = ({ children }: PropsWithChildren) => { | ||
return ( | ||
<body> | ||
<div className="relative min-h-[100vh]"> | ||
<Header /> | ||
<div className="pb-14 pt-10">{children}</div> | ||
<Footer /> | ||
</div> | ||
</body> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { CommonLayout } from "./common-layout"; |