forked from ShoroukAziz/notion_widgets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nav.html
122 lines (93 loc) · 3.64 KB
/
nav.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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html>
<head>
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
<!-- Google Font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@700&display=swap" rel="stylesheet">
<!-------->
<style>
* {
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.navMenu {
font-family: 'Advent Pro', sans-serif;
padding: 8px;
text-align: center;
margin: 7px auto;
width: fit-content;
}
.navMenu a {
color: #272727;
text-decoration: none;
text-transform: uppercase;
display: inline-block;
padding: 6px;
}
.background {
background-color: #ece5f0;
}
.border {
border: 1px solid #cccccc;
}
.navMenu a:hover {
color: #d09c0b;
}
</style>
</head>
<body>
<nav class="navMenu border">
<a id="home" onclick="navigate(this.id)" href="#"> <i class="fa-solid fa-house"></i> Home</a>
<a id="inbox" onclick="navigate(this.id)" href="#"> <i class="fa-solid fa-inbox"></i> Inbox</a>
<a id="week" onclick="navigate(this.id)" href="#"> <i class="fa-solid fa-calendar-week"></i> Planner</a>
<a id="projects" onclick="navigate(this.id)" href="#"> <i class="fa-solid fa-briefcase"></i> Projects</a>
<a id="tasks" onclick="navigate(this.id)" href="#"> <i class="fa-solid fa-list-check"></i> Tasks</a>
<a id="business" onclick="navigate(this.id)" href="#"> <i class="fa-solid fa-money-bill-wave"></i> Business</a>
<a id="knowledge" onclick="navigate(this.id)" href="#"> <i class="fa-solid fa-lightbulb"></i> Knowledge</a>
<a id="topics" onclick="navigate(this.id)" href="#"> <i class="fa-solid fa-layer-group"></i> Topics</a>
<a id="notes" onclick="navigate(this.id)" href="#"> <i class="fa-solid fa-book"></i> Notes</a>
<a id="media" onclick="navigate(this.id)" href="#"> <i class="fa-solid fa-bookmark"></i> Media</a>
<a id="resourses" onclick="navigate(this.id)" href="#"> <i class="fa-solid fa-wrench"></i> Resourses</a>
<a id="lifewiki" onclick="navigate(this.id)" href="#"> <i class="fa-solid fa-heart"></i> Lifewiki</a>
</nav>
<script>
let direction = "horizontal";
if (direction === "vertical") {
document.head.insertAdjacentHTML("beforeend", `<style>.navMenu a {display: block; text-align:left; margin:7px} i{width:15px; margin-right:5px} .navMenu{margin:3px}</style>`)
}
function navigate(id) {
if (id == 'home')
window.open("https://example.com", '_blank').focus();
else if (id == "inbox")
window.open("https://example.com", '_blank').focus();
else if (id == "week")
window.open("https://example.com", '_blank').focus();
else if (id == "month")
window.open("https://example.com", '_blank').focus();
else if (id == "projects")
window.open("https://example.com", '_blank').focus();
else if (id == "business")
window.open("https://example.com", '_blank').focus();
else if (id == "tasks")
window.open("https://example.com", '_blank').focus();
else if (id == "knowledge")
window.open("https://example.com", '_blank').focus();
else if (id == "topics")
window.open("https://example.com", '_blank').focus();
else if (id == "notes")
window.open("https://example.com", '_blank').focus();
else if (id == "media")
window.open("https://example.com", '_blank').focus();
else if (id == "resourses")
window.open("https://example.com3", '_blank').focus();
else if (id == "lifewiki")
window.open("https://example.com", '_blank').focus();
}
</script>
</body>
</html>