Skip to content

Commit

Permalink
Basis styling and changed foldername
Browse files Browse the repository at this point in the history
  • Loading branch information
Casburggraaf committed Feb 7, 2018
1 parent 394ca9e commit c372b06
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 26 deletions.
27 changes: 27 additions & 0 deletions app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="static/style.css">
</head>
<body>
<section class="active"id="start">
<h1>Start</h1>
<img src="https://unsplash.com/photos/YadCgbsLHcE/download?force=true" alt="">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
</section>
<section id="best-practices">
<h1>Best Praticess</h1>
<img src="https://unsplash.com/photos/6njoEbtarec/download?force=true" alt="">
<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</section>
<nav>
<li><a href="#start">Start</a></li>
<li><a href="#best-practices">Best Pratices</a></li>
</nav>
<script src="static/app.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions opdracht 5 - spa/static/app.js → app/static/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
sections.toggle(location.hash.substr(1));
}

// Listing to hashchange
window.addEventListener("hashchange",function(){
var route = location.hash.substr(1);
sections.toggle(route);
Expand Down
Empty file removed app/static/css/styles.css
Empty file.
Empty file removed app/static/js/script.js
Empty file.
41 changes: 41 additions & 0 deletions app/static/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
body {
background-color: grey;
padding: 3%;
display: flex;
flex-direction: column;
height: 97vh;
}

section img {
width: 90%;
max-height: 50vh;
}

section:not(.active) {
display: none;
}

nav {
margin-top: auto;
height: 3em;
display: flex;
width: 100%;
border-top: 1px solid white;
}

nav li {
display: flex;
justify-content: center;
align-items: center;
list-style: none;
width: 50%;
height: 100%;
}

nav li:first-of-type {
border-right: 1px solid white;
}

nav a {
color: white;
}
23 changes: 0 additions & 23 deletions opdracht 5 - spa/index.html

This file was deleted.

3 changes: 0 additions & 3 deletions opdracht 5 - spa/static/style.css

This file was deleted.

0 comments on commit c372b06

Please sign in to comment.