Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new-nav.html #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions new-nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<!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=Source+Code+Pro&display=swap" rel="stylesheet">
<!-------->

<style>
* {
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}


.navMenu {
font-family: 'Source Code 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: #fbffde;
}

/* .border {
border: 1px solid #cccccc;

} */
.border{
border-right: 3px solid #cccccc;
height: 100vh;
}

.navMenu a:hover {

color: rgba(211, 145, 23, 0.781);
}
</style>
</head>

<body>

<nav class="navMenu border background">
<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 = "vertical";
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>