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 a Nav-Bar #10

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Binary file added Images/d36bcd94324a528f7ac00f4e6aa51f09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions Nav-bar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="nav-bar.css" />
<title>Document</title>
</head>

<body>
<div class="dropdown">
<button class="dropbtn"><img class="nav-icon" src="Images/d36bcd94324a528f7ac00f4e6aa51f09.png" alt="">
<span class="header-nav-mobile">Coding Bootcamps Europe</span>
</button>

<div class="dropdown-content">
<p class="header-nav">Coding Bootcamps Europe</p>

<div class="nav-links">
<a href="index.html">Lobby</a>
<a href="recordings.html">Recordings</a>
<a href="slides.html">Slides</a>
<a href="students.html">Students</a>
</div>
</div>
</div>
</body>

</html>
10 changes: 0 additions & 10 deletions index.html

This file was deleted.

117 changes: 117 additions & 0 deletions nav-bar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
*,
*,
::before,
::after {
box-sizing: border-box;
}

body {
margin: 0;
}

/* Dropdown Button */
.header-nav-mobile {
display: none;
}

.dropbtn {
background-color: hsla(268, 75%, 44%, 1);
border: none;
}

.nav-icon {
height: 15px;
}

/* Nav-Bar */
.header-nav {
color: white;
font-size: 1.25rem;
text-transform: uppercase;
text-align: center;
}
.dropdown {
position: absolute;
display: grid;
grid-template-columns: 1fr;
height: 100%;
box-shadow: 5px 0 0 0 hsla(268, 58%, 55%, 1);
}

/* Menü */
.dropdown-content {
display: none;
position: absolute;
min-height: 100%;
left: 100%;
background-color: hsla(268, 58%, 55%, 1);
min-width: 200px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
}

/* Links inside the Menü */
.dropdown-content a {
color: white;
padding: 12px 16px;
text-decoration: none;
border-bottom: 2px solid white;
font-size: 1.25rem;
}

.nav-links {
display: flex;
flex-direction: column;
margin: auto;
}

/* Change hover color */
.dropdown-content a:hover {
background-color: hsla(268, 75%, 44%, 1);
}

/* Show the menu on hover */
.dropdown:hover .dropdown-content {
display: flex;
flex-direction: column;
padding-left: 1rem;
padding-right: 1rem;
background-color: hsla(268, 58%, 55%, 1);
}

/* Nav-Bar end*/

@media screen and (max-width: 800px) {
.dropdown {
top: 0;
max-height: 25px;
min-width: 100%;
}

.dropdown-content {
top: 100%;
left: 0;
min-width: 100%;
text-align: center;
}

.dropbtn {
display: flex;
}

.nav-icon {
margin: auto 0;
}

.header-nav-mobile {
display: flex;
margin: auto;
font-weight: 600;
color: white;
font-size: 1.15rem;
}

.nav-links {
padding-bottom: 1.5rem;
}
}
10 changes: 0 additions & 10 deletions recordings.html

This file was deleted.

10 changes: 0 additions & 10 deletions slides.html

This file was deleted.

10 changes: 0 additions & 10 deletions students.html

This file was deleted.

Empty file removed style.css
Empty file.