sprinkel some hate around

This commit is contained in:
ajuvercr 2020-09-16 20:45:55 +02:00
parent fd076e6950
commit 1aa935aa99
9 changed files with 52 additions and 32 deletions

BIN
content/static/Bebas Neue.otf Executable file

Binary file not shown.

BIN
content/static/CanCandB_free.ttf Executable file

Binary file not shown.

View file

@ -7,6 +7,11 @@
--yellow: #fed318; --yellow: #fed318;
} }
@font-face {
font-family: "MyWebFont";
src: url("/static/Bebas Neue.otf"); /* IE9 Compat Modes */
}
* { * {
box-sizing: border-box; box-sizing: border-box;
} }
@ -70,6 +75,10 @@ main {
padding: 1rem 2rem; padding: 1rem 2rem;
margin-right: 3rem; margin-right: 3rem;
} }
.quizSpotlight a {
padding: 0.5rem 1rem;
font-size: 1rem;
}
.quizSpotlight a:hover { .quizSpotlight a:hover {
background-color: var(--lightblue); background-color: var(--lightblue);
border: 0.4rem solid var(--lightblue); border: 0.4rem solid var(--lightblue);
@ -123,8 +132,8 @@ details[open] {
width: 100%; width: 100%;
} }
.nav-item:last-child { .nav-link__logo__wrapper {
margin-top: auto; padding: 2rem 0;
} }
.nav-link { .nav-link {
@ -258,7 +267,7 @@ details[open] {
justify-content: center; justify-content: center;
transform: rotate(-90deg); transform: rotate(-90deg);
transition: 0.4s; transition: 0.4s;
margin-bottom: 0.7rem; padding: 2rem;
} }
.navbar:hover, .navbar:hover,
@ -330,8 +339,11 @@ header {
} }
h2 { h2 {
font-family: futura, Avenir Next, Verdana, Geneva, Tahoma, sans-serif; font-family: MyWebFont, futura, Avenir Next, Verdana, Geneva, Tahoma,
sans-serif;
font-size: 3.4rem; font-size: 3.4rem;
font-weight: lighter;
color: var(--darkblue); color: var(--darkblue);
} }
@ -570,6 +582,10 @@ h2 {
fill: var(--white); fill: var(--white);
} }
.tile__title::first-letter {
text-transform: capitalize;
}
.tile:hover .tile__title { .tile:hover .tile__title {
opacity: 1; opacity: 1;
} }

View file

@ -1,10 +1,12 @@
.main_content { .main_content {
margin-top: 5rem; margin-top: 2rem;
} }
.quiz_content { .quiz_content {
max-width: 900px; max-width: 1100px;
margin: 0 auto; margin: 0 auto;
} }
.question_wrapper { .question_wrapper {
padding: 1rem 0 0 2rem; padding: 1rem 0 0 2rem;
position: relative; position: relative;
@ -82,19 +84,17 @@ h3::first-letter {
} }
.buttons { .buttons {
<<<<<<< HEAD
padding: 10px; padding: 10px;
=======
width: 70%;
margin: 20px auto;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.buttons { .question__ {
width: 70%; font-size: 2rem;
margin: 20px auto; }
>>>>>>> 85fe081... style the quiz a little again
display: flex; .small {
justify-content: space-between; padding: 1rem 1.5rem !important;
font-size: 1rem !important;
border-width: 4px !important;
} }

View file

@ -7,7 +7,7 @@
<div class="intro"> <div class="intro">
<div class="header_blueSquare backgroundSquare"></div> <div class="header_blueSquare backgroundSquare"></div>
<h2 class="studentZijn"> <h2 class="studentZijn">
<span class="underline">Student</span> zijn is <span class="underline">Student</span> zijn is<br>
<span class="underline">meer</span> dan studeren alleen <span class="underline">meer</span> dan studeren alleen
</h2> </h2>
</div> </div>

View file

@ -1,6 +1,6 @@
<nav class="navbar"> <nav class="navbar">
<ul class="navbar-nav"> <ul class="navbar-nav">
<li class="nav-item"> <li class="nav-item nav-link__logo__wrapper">
<a href="/" class="nav-link nav-link__logo"> <a href="/" class="nav-link nav-link__logo">
<img src="/assets/durfDoenClean.png" alt="" class="logo__image"> <img src="/assets/durfDoenClean.png" alt="" class="logo__image">
</a> </a>
@ -27,14 +27,14 @@
</nav> </nav>
<script> <script>
const nav_links = document.querySelectorAll(".nav-link"); // const nav_links = document.querySelectorAll(".nav-link");
nav_links.forEach(nav_link => { // nav_links.forEach(nav_link => {
if (nav_link.getAttribute("href") === "/") { // if (nav_link.getAttribute("href") === "/") {
if (window.location.pathname === "/") { // if (window.location.pathname === "/") {
nav_link.classList.add("active_link"); // nav_link.classList.add("active_link");
} // }
} else if (window.location.pathname.startsWith(nav_link.getAttribute("href"))) { // } else if (window.location.pathname.startsWith(nav_link.getAttribute("href"))) {
nav_link.classList.add("active_link"); // nav_link.classList.add("active_link");
} // }
}) // })
</script> </script>

View file

@ -1,4 +1,4 @@
<h3> <%= question[:vraag] %> </h3> <h2 class="question__"> <%= question[:vraag] %> </h2>
<% if question[:type] == "specialCase1" %> <% if question[:type] == "specialCase1" %>
<p> <p>
Geef je postcode in Geef je postcode in

View file

@ -14,10 +14,13 @@
</div> </div>
<% end %> <% end %>
</div> </div>
<div class="hidden"> <div class="hidden quiz_content">
<h3> Deze verenigingen kan je eens uitchecken ;) </h3> <h2> Misschien is een van deze verenigingen iets voor jou </h2>
<div id="resultWrapper" class="fancy_link_container"> <div id="resultWrapper" class="fancy_link_container">
</div> </div>
<div onclick="window.location.href='/quiz'" class="quizSpotlight">
<a class="small">Opnieuw</a>
</div>
</div> </div>
<div class="buttons quiz_content"> <div class="buttons quiz_content">
<div> <div>
@ -142,6 +145,7 @@
} }
if(!state.question.element) { if(!state.question.element) {
previousButton.style.display = "none";
nextButton.style.display = "none"; nextButton.style.display = "none";
resultWrapper.parentNode.classList.remove("hidden"); resultWrapper.parentNode.classList.remove("hidden");

View file

@ -1,4 +1,4 @@
<h1> <%= item[:naam] %> </h1> <h2> <%= item[:naam] %> </h2>
<div class="details-wrapper"> <div class="details-wrapper">
<div class="details-container details-text"> <div class="details-container details-text">
<%= yield %> <%= yield %>