From 7b53e81351e7b3efa91d7e3a22843c6f52d8ecd9 Mon Sep 17 00:00:00 2001 From: ckdwns1221 Date: Wed, 23 Oct 2024 15:23:51 +0900 Subject: [PATCH 1/4] =?UTF-8?q?feat(#3):=20=EA=B2=BD=EB=A1=9C=EC=97=90=20?= =?UTF-8?q?=EB=A7=9E=EA=B2=8C=20=EB=B2=84=ED=8A=BC=ED=99=9C=EC=84=B1?= =?UTF-8?q?=ED=99=94=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/Footer.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/common/Footer.jsx b/src/components/common/Footer.jsx index df875a1..b73016f 100644 --- a/src/components/common/Footer.jsx +++ b/src/components/common/Footer.jsx @@ -3,21 +3,22 @@ import styled from 'styled-components'; import { FiGift } from 'react-icons/fi'; import { LuCalendarHeart } from 'react-icons/lu'; import { images } from '../Images'; -import { Link } from 'react-router-dom'; +import { Link, useLocation } from 'react-router-dom'; const Footer = () => { + const location = useLocation(); const [activeTab, setActiveTab] = useState(null); const tabs = [ { key: 'gift', - icon: , + icon: , text: '나눔', link: '/#', }, { key: 'health', - icon: , + icon: , text: '건강관리', link: '/#', }, @@ -41,7 +42,7 @@ const Footer = () => { handleTabClick(key)}> {icon ? icon : } - {text} + {text} ))} From 8c82f915d13e1e928dc06cc0dd88df9f645309a3 Mon Sep 17 00:00:00 2001 From: EunSeok Date: Thu, 24 Oct 2024 09:47:50 +0900 Subject: [PATCH 2/4] feat(#5): page create --- src/Router.jsx | 4 + src/components/common/Footer.jsx | 6 +- src/components/common/Nav.jsx | 6 +- src/pages/PetItemPage/PetItemDetailPage.jsx | 11 ++ src/pages/PetItemPage/PetItemListPage.jsx | 21 ++ src/pages/PetItemPage/PetItemPage.jsx | 203 ++++++++++++++++++++ 6 files changed, 245 insertions(+), 6 deletions(-) create mode 100644 src/pages/PetItemPage/PetItemDetailPage.jsx create mode 100644 src/pages/PetItemPage/PetItemListPage.jsx create mode 100644 src/pages/PetItemPage/PetItemPage.jsx diff --git a/src/Router.jsx b/src/Router.jsx index 206d42e..8177513 100644 --- a/src/Router.jsx +++ b/src/Router.jsx @@ -3,6 +3,8 @@ import MainPage from './pages/MainPage/MainPage.jsx'; import Nav from './components/common/Nav.jsx'; import Footer from './components/common/Footer'; import ScrollTop from './components/common/ScrollTop.jsx'; +import PetItemPage from './pages/PetItemPage/PetItemPage.jsx'; +import PetItemListPage from './pages/PetItemPage/PetItemListPage.jsx'; function Router() { return ( @@ -11,6 +13,8 @@ function Router() {