aboutsummaryrefslogtreecommitdiff
path: root/src/views/layout.ecr
blob: abb2daedfdce7522b16e37bb939759cf6db0d10e (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> <%= page_title %> | {indrajith.dev}</title>
    <link rel="stylesheet" href="/css/styles.css">
    <script src="https://unpkg.com/htmx.org@2.0.0"></script>
    <link rel="icon" href="/favicon.ico">
</head>
<body>
    <header class="header">
        <div class="logo-container">
            <a class="logo" href="/">{indrajith.dev}</a>
        </div>
        <h4 class="slogan">(Software is Art)</h4>
        <nav>
            <ul>
                <li><a href="/" id="home" class="hvr-underline-reveal links">home</a></li>
                <li><a href="/posts" class="hvr-underline-reveal links" id="posts">posts</a></li>
                <li><a href="/timeline" class="hvr-underline-reveal links" id="cv">timeline</a></li>
                <li><a href="/about"  class="hvr-underline-reveal links" id="about">about</a></li>
                <li><a href="https://git.indrajith.dev" class="hvr-underline-reveal links" id="cv">git</a></li>
                <li><a href="/contact" id="cv" class="links hvr-underline-reveal">contact</a></li>
                <li><a href="/feed.xml" id="cv" class="links hvr-underline-reveal">feed</a></li>
            </ul>
        </nav>
        <hr>
    </header>

    <main id="content" hx-ext="response-targets">
        <%= content %>
    </main>

    <footer>
        <hr>
        <ul>
            <li>
                <p>&copy; 2024 Indrajith K L </p>
            </li>
        </ul>
        <img src="/images/indrajith.dev.gif" class="etyone" alt="">
    </footer>
    <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>
</body>
</html>