Header.js 1.12 KB
import {
    HomeIcon,
    SearchIcon,
    UserIcon,
    TerminalIcon,
    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">
                    <TerminalIcon 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="/search/" />
                <HeaderItem title='ACCOUNT' Icon={UserIcon} link="/" />
                <Islogin />
            </div>
        </header>
    )
}

export default Header