diff --git a/src/App.tsx b/src/App.tsx index 0bd2396..666c3aa 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,11 +1,16 @@ +import LandingLayout from "@/layouts/LandingLayout"; import Home from "@/pages/home/Home"; +import Landing from "@/pages/landing/Landing"; import { Route, Routes } from "react-router"; function App() { return ( <> - } /> + {/* } /> */} + }> + } /> + ); diff --git a/src/assets/icons/ellipsisButton.svg b/src/assets/icons/ellipsisButton.svg new file mode 100644 index 0000000..f508ee3 --- /dev/null +++ b/src/assets/icons/ellipsisButton.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/icons/icons.svg b/src/assets/icons/icons.svg deleted file mode 100644 index e69de29..0000000 diff --git a/src/assets/icons/logo.png b/src/assets/icons/logo.png new file mode 100644 index 0000000..653f98d Binary files /dev/null and b/src/assets/icons/logo.png differ diff --git a/src/assets/icons/notification.svg b/src/assets/icons/notification.svg new file mode 100644 index 0000000..08ba801 --- /dev/null +++ b/src/assets/icons/notification.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/layouts/Header.tsx b/src/layouts/Header.tsx index e69de29..af6aa1b 100644 --- a/src/layouts/Header.tsx +++ b/src/layouts/Header.tsx @@ -0,0 +1,38 @@ +import logo from "@assets/icons/logo.png"; +import notificationIcon from "@assets/icons/notification.svg"; +import ellipsisButton from "@/assets/icons/ellipsisButton.svg"; +import { Link } from "react-router"; + +interface HeaderProps { + showNotification?: boolean; // 알림 아이콘을 표시할지 여부 + showMoreOptions?: boolean; // 더보기 메뉴를 표시할지 여부 +} + +function Header({ showNotification, showMoreOptions }: HeaderProps) { + console.log(showNotification); + return ( +
+ + logo + + + {/* 알림 아이콘, 더보기 메뉴 아이콘 표시 */} +
+ {/* 알림 */} + {showNotification && ( +
+ 알림 +
+ )} + {/* 더보기 메뉴 */} + {showMoreOptions && ( +
+ 더보기 +
+ )} +
+
+ ); +} + +export default Header; diff --git a/src/layouts/LandingLayout.tsx b/src/layouts/LandingLayout.tsx new file mode 100644 index 0000000..0757647 --- /dev/null +++ b/src/layouts/LandingLayout.tsx @@ -0,0 +1,15 @@ +import Header from "@/layouts/Header"; +import { Outlet } from "react-router"; + +function LandingLayout() { + return ( +
+
+
+ +
+
+ ); +} + +export default LandingLayout; diff --git a/src/pages/home/Home.tsx b/src/pages/home/Home.tsx index 0b6c7c6..35f305a 100644 --- a/src/pages/home/Home.tsx +++ b/src/pages/home/Home.tsx @@ -1,4 +1,3 @@ - import { twMerge } from "tailwind-merge"; function Home() { diff --git a/src/pages/landing/Landing.tsx b/src/pages/landing/Landing.tsx new file mode 100644 index 0000000..61bb8c7 --- /dev/null +++ b/src/pages/landing/Landing.tsx @@ -0,0 +1,5 @@ +function Landing() { + return
렌딩페이지
; +} + +export default Landing;