aboutsummaryrefslogtreecommitdiff
path: root/_includes/navbar.html
blob: 780772aa9a1811350f9671a845d0a32bab31fcf9 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<nav class="bg-background navbar hidden 
            relative md:flex w-full flex-row items-center 
            justify-start py-4 text-gray-500 shadow-lg">
    
    <div class="ml-2 flex flex-grow flex-row">
      <a href="/" class="ml-2 rounded font-mono text-xl
      text-white transition-all px-2 pt-1 pb-0
      hover:bg-gray-800">~/compromyse</a>
  
      <a href="/blog" class="ml-3 rounded font-mono px-2
      transition-all pt-1 pb-0
      hover:bg-gray-800">/dev/blog</a>
  
      <a href="/about" class="ml-3 rounded font-mono px-2
      transition-all hover:bg-gray-800 pt-1 pb-0">/usr/about</a>
  
      <a href="/ctf" class="ml-3 rounded font-mono px-2
      transition-all hover:bg-gray-800 pt-1 pb-0">/bin/ctf</a>

			<a href="/projects" class="ml-3 rounded font-mono px-2
      transition-all hover:bg-gray-800 pt-1 pb-0">/etc/projects</a>
    </div>
</nav>

<div id="mySidenav" class="sidenav bg-background font-mono">
  <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
  <a href="/blog">Blog</a>
  <a href="/about">About</a>
  <a href="/ctf">CTF</a>
  <a href="/projects">Projects</a>
</div>

<nav class="bg-background navbar md:hidden flex 
            relative w-full flex-row items-center 
            justify-start py-4 text-gray-500 shadow-lg">
    
    <div class="ml-2 flex flex-grow flex-row">
      <a href="/" class="ml-2 rounded font-mono text-xl
      text-white transition-all px-2 pt-1 pb-0
      hover:bg-gray-700">~/compromyse</a>
  
    <button class="fa fa-bars mr-5 rounded ml-auto
                        px-2 pt-2" style="cursor: pointer;" onclick="openNav()"></button>
    </div>
</nav>

<script>
function openNav() {
  document.getElementById("mySidenav").style.width = "200px";
}

function closeNav() {
  document.getElementById("mySidenav").style.width = "0";
}
</script>

<style>
body {
  font-family: "Lato", sans-serif;
}

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}
</style>