Skip to content

Commit

Permalink
Added the Navbar en footer to the contactpage
Browse files Browse the repository at this point in the history
  • Loading branch information
leonvsc committed Oct 13, 2021
1 parent fdd1fd0 commit 9d84c5f
Show file tree
Hide file tree
Showing 5 changed files with 322 additions and 147 deletions.
88 changes: 64 additions & 24 deletions contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,45 +7,44 @@
<title>Contact - Premaz</title>
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/contact.css" />
<!-- <link rel="stylesheet" href="css/bootstrap-grid.css" /> -->
<link rel="stylesheet" href="css/navigatiebalk.css" />
<link rel="stylesheet" href="css/footer.css" />
</head>

<body>
<header>
<nav>
<ul class="nav_links">
<li class="left">
<a href="index.html">
<img
src="img/logo-premaz-website.png"
alt="Premaz logo"
class="nav_logo"
id="logo"
/>
</a>
</li>
<li class="center">
<a class="nav_link" href="#section">Over ons</a>
</li>
<!--Navigation menu and logo-->
<nav class="navbar">
<a href="https://www.premaz.nl/">
<img
src="img/logo-premaz-website.png"
alt="Premaz logo"
class="nav-logo"
/>
</a>
<ul class="nav-links">
<li class="center">
<a class="nav_link" href="https://www.google.nl/">
<a class="nav-link" href="#section--1">
Meer informatie
</a>
</li>
<li class="center">
<a class="nav_link" href="https://www.google.nl/">
Referenties
<a class="nav-link" href="https://www.google.nl/">
Onze diensten
</a>
</li>

<li class="center">
<a class="nav_link" href="contact.html">Contact</a>
</li>
<li class="right">
<a class="nav_link" href="https://www.google.nl/">
Login
<a class="nav-link" href="https://www.google.nl/">
Contact
</a>
</li>
</ul>
<div class="hamburger">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</div>
</nav>
</header>
<div class="container">
Expand Down Expand Up @@ -200,5 +199,46 @@
</div>
</div>
</div>
<!-- Footer van de website -->
<footer class="footer">
<ul class="footer-nav">
<li class="footer-item">
<a class="footer-link" href="#">Home</a>
</li>
<li class="footer-item">
<a class="footer-link" href="#section--1">
Meer informatie
</a>
</li>
<li class="footer-item">
<a class="footer-link" href="https://google.com">
Onze diensten
</a>
</li>
<li class="footer-item">
<a class="footer-link" href="https://google.com">Contact</a>
</li>
</ul>
<a href="https://www.premaz.nl/">
<img
src="img/logo-premaz-website.png"
alt="Logo"
class="footer-logo"
/>
</a>
<p class="footer-copyright">
&copy; Copyright by
<a
class="footer-link twitter-link"
target="_blank"
href="https://premaz.nl/"
>
Premaz
</a>
. Dit is een website voor een schoolopdracht, Premaz is een
fictief bedrijf.
</p>
</footer>
<script src="js/navBar.js"></script>
</body>
</html>
65 changes: 65 additions & 0 deletions css/footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
.footer {
padding: 2rem 3rem;
background-image: linear-gradient(#c5c5c550, #91919150);
border-radius: 25px;
}

.footer-nav {
list-style: none;
display: flex;
justify-content: center;
margin-bottom: 5rem;
}

.footer-item {
margin-right: 2.5%;
margin-left: 2.5%;
}

.footer-link {
font-size: 1.6rem;
color: rgb(0, 0, 0);
text-decoration: none;
}

.footer-link:hover {
color: rgb(116, 116, 116);
}

.footer-logo {
height: 8rem;
display: block;
margin: 0 auto;
margin-bottom: 5rem;
}

.footer-copyright {
font-size: 1.4rem;
color: rgb(0, 0, 0);
text-align: center;
}

.footer-copyright .footer-link {
font-size: 1.4rem;
}

@media only screen and (max-width: 768px) {
.footer-link {
font-size: 1.2rem;
}
.footer-item {
margin-right: 2rem;
}
.footer-logo {
margin-bottom: 1rem;
}
.footer-nav {
margin-bottom: 1rem;
}
.footer-copyright {
font-size: 1.2rem;
}
.footer-copyright .footer-link {
font-size: 1.2rem;
}
}
104 changes: 104 additions & 0 deletions css/navigatiebalk.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
.nav-logo {
height: 8rem;
width: auto;
}

.nav-links {
display: flex;
align-items: center;
list-style: none;
}

.center {
transition: 0.3s;
margin-left: 15px;
width: 140px;
height: 25px;
background: #002ca56c;
padding: 10px;
text-align: center;
border-radius: 5px;
color: white;
font-weight: bold;
line-height: 25px;
}

.center:hover {
background: #002ca59f;
box-shadow: 0px 0px 2px 2px #888888;
transition: 0.3s;
}

.nav-link:link,
.nav-link:visited {
font-size: 1.7rem;
font-weight: 400;
color: inherit;
text-decoration: none;
display: block;
transition: all 0.3s;
}

.bar {
display: block;
width: 25px;
height: 3px;
margin: 5px auto;
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
background-color: #101010;
}

.hamburger {
display: none;
}

.navbar {
display: flex;
justify-content: center;
align-items: center;
padding: 1rem 1.5rem;
}

/* Navbar for mobile */
@media only screen and (max-width: 768px) {
.nav-links {
position: fixed;
right: -150%;
top: 8rem;
flex-direction: column;
background-color: rgba(65, 65, 65, 0.637);
width: 60%;
border-radius: 10px;
text-align: center;
justify-content: center;
transition: 0.3s;
box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
}

.nav-links.active {
right: 0;
z-index: 3;
}

.center {
margin: 2.5rem 0;
}

.hamburger {
display: block;
cursor: pointer;
}

.hamburger.active .bar:nth-child(2) {
opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}
}
Loading

0 comments on commit 9d84c5f

Please sign in to comment.