diff --git a/app/components/Footer.tsx b/app/components/Footer.tsx new file mode 100644 index 0000000..e1e6cd6 --- /dev/null +++ b/app/components/Footer.tsx @@ -0,0 +1,52 @@ +import React from "react"; +import Image from "next/image"; +import { FaGithub } from "react-icons/fa"; +import { FaXTwitter, FaTelegram } from "react-icons/fa6"; + +const Footer = () => { + return ( + + ); +}; + +export default Footer; diff --git a/app/components/Header.tsx b/app/components/Header.tsx index fb377d6..eb92270 100644 --- a/app/components/Header.tsx +++ b/app/components/Header.tsx @@ -1,5 +1,6 @@ import { useState, Dispatch, SetStateAction } from "react"; -import { MagnifyingGlassIcon, XMarkIcon } from "@heroicons/react/24/outline"; +import { IoCloseOutline } from "react-icons/io5"; +import { IoIosSearch } from "react-icons/io"; interface IHeaderProps { name: string; @@ -33,9 +34,9 @@ const Header = ({ name, setName, setSearchQuery }: IHeaderProps) => { />
{name === "" ? ( - + ) : ( - setMouseHover(true)} onMouseLeave={() => setMouseHover(false)} diff --git a/app/page.tsx b/app/page.tsx index affa14f..67aa909 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -3,6 +3,7 @@ import { useState, useEffect } from "react"; import { CharactersPage } from "./components/CharactersPage"; import { handleSearch } from "./utils/handleSearch"; import Header from "./components/Header"; +import Footer from "./components/Footer"; export default function Home() { const [pageNo, setPageNo] = useState(1); @@ -23,6 +24,8 @@ export default function Home() { searchQuery={searchQuery} /> )} + + {searchQuery === "" && pageNo === 1 &&