-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnavbar.html
53 lines (46 loc) · 2.28 KB
/
navbar.html
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
<script>
function openSubreddit() {
plausible("Subreddit")
window.open("https://reddit.com/r/Scrivano", "_self")
}
</script>
<nav class="bg-gray-800">
<div class="max-w-7xl mx-auto">
<div class="-ml-5 md:ml-0 flex items-center justify-between h-16">
<div class="flex items-center text-4xl ml-5 md:ml-0 myfont text-left">
<img class="fill-current h-12 w-12 mr-2" src="assets/scrivano_icon.png" />
<h1 class="text-4xl text-white">Scrivano</h1>
</div>
<div class="text-right">
<div class="flex-1 flex items-center justify-center ">
<div class="sm:block sm:ml-6">
<div class="hidden md:flex space-x-4">
<!-- Current: "bg-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" -->
<a id="home_link" href="index.html"
class="bg-gray-800 text-white px-3 py-2 rounded-md text-sm font-medium" aria-current="page">Home</a>
<a id="support_link" href="mailto:scrivanolabs@gmail.com"
class="text-gray-300 bg-gray-800 hover:bg-gray-500 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Support</a>
<a id="subreddit_link" href="javascript:openSubreddit();"
class="text-gray-300 bg-gray-800 hover:bg-gray-500 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Subreddit</a>
<a id="changelog_link" href="changelog.html"
class="text-gray-300 bg-gray-800 hover:bg-gray-500 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Changelog</a>
</div>
</div>
</div>
</div>
<div class="md:hidden flex items-center mr-4">
<button class="outline-none" id="mobile-menu-button">
<svg class="w-6 h-6 text-gray-500" x-show="!showMenu" fill="none" stroke-linecap="round"
stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" stroke="currentColor">
<path d="M4 6h16M4 12h16M4 18h16"></path>
</svg>
</button>
</div>
<script>
var btn = document.getElementById("mobile-menu-button");
const menu = document.querySelector(".mobile-menu");
btn.addEventListener("click", () => {
menu.classList.toggle("hidden");
});
</script>
</nav>