aboutsummaryrefslogtreecommitdiff
path: root/src/_includes/partials/header.njk
blob: 5ee2cf2a51bb50b1e18a144fe1ded02e59aff765 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<header class="w-full bg-main-normal-brown text-main-cream-white-1 font-bold flex flex-row md:flex-col justify-between items-center px-6 py-4">
    <nav class="w-full">
        <ul class="flex flex-col md:flex-row gap-3 md:gap-10 font-supply-regular w-full items-center text-lg md:text-xl">
            <li>
                <a href="/" class="text-lg md:text-3xl text-main-red">{ indrajith.dev } </a>
            </li>
            <li class="hover:text-lightish-50"><a href="/about" id="about" class="links">About</a></li>
            <li class="hover:text-lightish-50"><a href="/posts" id="posts" class="links">Posts</a></li>
            <li class="hover:text-lightish-50"><a href="/cv" id="cv" class="links">Timeline</a></li>
        </ul>
        <ul class="hidden md:flex flex-row gap-2 font-supply-regular font-bold right-0 -my-8 mx-6 absolute">
            <li class="hover:text-lightish-50"><a title="Twitter" target="_blank" href="https://twitter.com/indrajithKLIS" class="links">{% feather "twitter" %}</a></li>
            <li class="hover:text-lightish-50"><a title="Github" target="_blank" href="https://github.com/cooljith91112" class="links">{% feather "github" %}</a></li>
            <li class="hover:text-lightish-50"><a title="Personal - GIT" target="_blank" href="https://git.indrajith.dev/" class="links">{% feather "git-branch" %}</a></li>
            <li class="hover:text-lightish-50"><a title="LinkedIn" target="_blank" href="https://www.linkedin.com/in/indrajithklis/" class="links">{% feather "linkedin" %}</a></li>
            <li class="hover:text-lightish-50"><a title="Ko-Fi" target="_blank" href="https://ko-fi.com/indrajith" class="links">{% feather "coffee" %}</a></li>
            <li class="hover:text-lightish-50"><a title="RSS" target="_blank" href="/feed.xml" class="links">{% feather "rss" %}</a></li>
        </ul>
    </nav>
</header>

<script>
(function(){
    const currentLocation = location.pathname;
    const navs = ["about","posts","cv"];
    const currentNav = navs.find(nav=>currentLocation.includes(nav));
    if (currentNav) {
        document.getElementById(currentNav).parentElement.classList.add("text-lightish-50");
    }
})();
</script>