Header.js
1.1 KB
import {
HomeIcon,
SearchIcon,
UserIcon,
CubeIcon,
MailIcon,
StarIcon
} from "@heroicons/react/outline"
import { useSession } from "next-auth/client"
import HeaderItem from "./HeaderItem"
import Islogin from "./islogin"
import Link from "next/link"
function Header() {
return (
<header className="flex flex-col sm:flex-row m-5 mt-0 pt-5 justify-between items-center">
<Link href="/" passHref>
<div className="flex cursor-pointer transform hover:scale-105">
<CubeIcon className="h-20" />
<p className="text-7xl font-extrabold" >Learn In Web</p>
</div></Link>
<div className="flex flex-grow justify-evenly max-w-sm">
<HeaderItem title='HOME' Icon={HomeIcon} link="/" />
<HeaderItem title='STAR' Icon={StarIcon} link="/" />
<HeaderItem title='SEARCH' Icon={SearchIcon} link="/" />
<HeaderItem title='ACCOUNT' Icon={UserIcon} link="/" />
<Islogin />
</div>
</header>
)
}
export default Header