diff --git a/FE/src/components/Header.tsx b/FE/src/components/Header.tsx index 51058c9..87773e6 100644 --- a/FE/src/components/Header.tsx +++ b/FE/src/components/Header.tsx @@ -6,8 +6,9 @@ import useSearchInputStore from 'store/useSearchInputStore.ts'; import logoPng from 'assets/logo.png'; import logoWebp from 'assets/logo.webp'; import { checkAuth, logout } from 'service/auth.ts'; -import { useEffect } from 'react'; +import { useEffect, useState } from 'react'; import Toast from './Toast'; +import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline'; export default function Header() { const { toggleModal } = useLoginModalStore(); @@ -16,6 +17,7 @@ export default function Header() { const { searchInput } = useSearchInputStore(); const location = useLocation(); const navigate = useNavigate(); + const [isMenuOpen, setIsMenuOpen] = useState(false); useEffect(() => { const check = async () => { @@ -42,24 +44,24 @@ export default function Header() { return; } navigate(to); + setIsMenuOpen(false); }; return (
-
+
- - {'Logo'} + + Logo -

JuGa

+

+ JuGa +

-
+ {/* Desktop Navigation */} +
); diff --git a/FE/src/components/News/Card.tsx b/FE/src/components/News/Card.tsx index 5b3bb03..66a8d3b 100644 --- a/FE/src/components/News/Card.tsx +++ b/FE/src/components/News/Card.tsx @@ -7,26 +7,26 @@ type CardWithImageProps = { export default function Card({ data }: CardWithImageProps) { return (
-
-

+
+

{data.title}

- + {formatDate(data.pubDate)}

-
-

+

+

{data.description}

- + {data.query}
diff --git a/FE/src/components/News/News.tsx b/FE/src/components/News/News.tsx index 2d9de3e..24a7ad4 100644 --- a/FE/src/components/News/News.tsx +++ b/FE/src/components/News/News.tsx @@ -19,7 +19,7 @@ export default function News() {

주요 뉴스

-
+
{data.news .slice(randomNewsIndex, randomNewsIndex + 4) .map((news: NewsDataType, index: number) => ( diff --git a/FE/src/components/Search/index.tsx b/FE/src/components/Search/index.tsx index 21b2390..5a84c32 100644 --- a/FE/src/components/Search/index.tsx +++ b/FE/src/components/Search/index.tsx @@ -47,7 +47,7 @@ export default function SearchModal() {
toggleSearchModal()} />