Merge branch 'styling'

This commit is contained in:
Midgard 2020-08-29 15:50:06 +02:00
commit e9218f5e26
Signed by: midgard
GPG key ID: 511C112F1331BBB4
12 changed files with 53 additions and 38 deletions

9
Rules
View file

@ -63,12 +63,19 @@ compile '/faq.erb' do
write '/faq/index.html' write '/faq/index.html'
end end
compile '/evenementen.erb' do
filter :erb
layout '/default.*'
layout '/base.*'
write '/evenementen/index.html'
end
compile '/verenigingen.md' do compile '/verenigingen.md' do
filter :kramdown filter :kramdown
layout '/verenigingen.*' layout '/verenigingen.*'
layout '/default.*' layout '/default.*'
layout '/base.*' layout '/base.*'
write ext: 'html' write '/verenigingen/index.html'
end end
compile '/*.md' do compile '/*.md' do

View file

@ -3,7 +3,7 @@ naam: FAQ
navigable: true navigable: true
order: 3 order: 3
--- ---
<h1>FAQ — Vaakgevraagdevragen</h1> <h1>FAQ — Vaakgestelde vragen</h1>
<% @items.find_all('/faq/*').each do |question| %> <% @items.find_all('/faq/*').each do |question| %>
<details> <details>
<summary> <summary>

View file

@ -1,5 +1,5 @@
--- ---
title: Stuver naam: Stuver
head: "<meta http-equiv=\"refresh\" content=\"0;URL='https://gentsestudentenraad.be'\"/>" head: "<meta http-equiv=\"refresh\" content=\"0;URL='https://gentsestudentenraad.be'\"/>"
--- ---
Ga naar <a href="https://gentsestudentenraad.be">de website van de Gentse Studentenraad</a>. Ga naar <a href="https://gentsestudentenraad.be">de website van de Gentse Studentenraad</a>.

View file

@ -2,7 +2,8 @@
--white: hsl(0, 0%, 98%); --white: hsl(0, 0%, 98%);
--darkblue: #013e7a; --darkblue: #013e7a;
--lightblue: #1a77d3; --lightblue: #1a77d3;
--cyan: #aaeeff; --cyan: hsl(192, 100%, 83%);
--lightCyan: hsl(192, 100%, 94%);
--yellow: #fed318; --yellow: #fed318;
} }
@ -47,18 +48,29 @@ input {
padding: 0.1em 0.3em; padding: 0.1em 0.3em;
} }
header {
position: relative;
background-color: var(--lightCyan);
}
header.homepage {
background-color: transparent;
}
nav a { nav a {
text-decoration: none; text-decoration: none;
font-family: futura, Avenir Next, Verdana, Geneva, Tahoma, sans-serif; font-family: futura, Avenir Next, Verdana, Geneva, Tahoma, sans-serif;
color: var(--darkblue); color: var(--darkblue);
padding: 0 2rem; padding: 1rem 2rem;
margin: 0 1rem;
} }
nav ul { nav ul {
list-style: none; list-style: none;
display: flex;
justify-content: space-between; justify-content: space-between;
} }
nav li {
display: inline-block;
}
nav { nav {
display: flex; display: flex;
@ -67,6 +79,11 @@ nav {
padding: 1rem 0; padding: 1rem 0;
} }
header .logo {
width: 79px;
height: 83px;
}
h2 { h2 {
font-family: futura, Avenir Next, Verdana, Geneva, Tahoma, sans-serif; font-family: futura, Avenir Next, Verdana, Geneva, Tahoma, sans-serif;
font-size: 3.4rem; font-size: 3.4rem;
@ -76,6 +93,10 @@ h2 {
max-width: 30rem; max-width: 30rem;
} }
.intro {
position: relative;
}
.studentZijn { .studentZijn {
margin: 4rem 0 2rem 3rem; margin: 4rem 0 2rem 3rem;
margin: 11vh 0 2rem 3rem; margin: 11vh 0 2rem 3rem;
@ -166,11 +187,7 @@ h2 {
.backgroundSquare { .backgroundSquare {
z-index: -2; z-index: -2;
position: absolute; position: absolute;
background-color: var(--cyan); background-color: var(--lightCyan);
}
.intro {
position: relative;
} }
.header_blueSquare { .header_blueSquare {
@ -181,7 +198,6 @@ h2 {
top: -100vw; top: -100vw;
bottom: -1rem; bottom: -1rem;
opacity: 0.3;
z-index: -3; z-index: -3;
} }
@ -207,7 +223,5 @@ h2 {
} }
.underline, .active_link { .underline, .active_link {
padding-bottom: -2rem; box-shadow: inset 0 -0.15em 0 var(--yellow);
margin-bottom: -2rem;
box-shadow: inset 0 -8px 0 var(--yellow);
} }

View file

@ -15,7 +15,7 @@
<%= yield %> <%= yield %>
<footer> <footer class="align">
<div> <div>
<img src="" alt=""> <img src="" alt="">
<img src="" alt=""> <img src="" alt="">

View file

@ -1,5 +1,7 @@
<header> <header class="align">
<%= render '/partials/navbar.*' %> <%= render '/partials/navbar.*' %>
</header> </header>
<%= yield %> <main class="align">
<%= yield %>
</main>

View file

@ -1,4 +1,3 @@
<div class="content-wrapper">
<h1> <%= item[:naam] %> </h1> <h1> <%= item[:naam] %> </h1>
<p> georganiseerd door: <%= item[:organiser] %></p> <p> georganiseerd door: <%= item[:organiser] %></p>
<div class="details-wrapper"> <div class="details-wrapper">
@ -7,4 +6,3 @@
</div> </div>
<%= render '/partials/detail.*' %> <%= render '/partials/detail.*' %>
</div> </div>
</div>

View file

@ -1,5 +1,5 @@
<div class="beforeTheFold"> <div class="beforeTheFold">
<header class="align"> <header class="align homepage">
<%= render '/partials/navbar.*' %> <%= render '/partials/navbar.*' %>
</header> </header>

View file

@ -1,4 +1,3 @@
<div class="content-wrapper">
<h1> <%= item[:naam] %> </h1> <h1> <%= item[:naam] %> </h1>
<div class="details-wrapper"> <div class="details-wrapper">
<div class="details-container details-text"> <div class="details-container details-text">
@ -6,4 +5,3 @@
</div> </div>
<%= render '/partials/detail.*' %> <%= render '/partials/detail.*' %>
</div> </div>
</div>

View file

@ -1,5 +1,5 @@
<nav> <nav>
<img src="/assets/OmdatHetDurfDoenLogoSuckt.png" alt=""> <img src="/assets/OmdatHetDurfDoenLogoSuckt.png" alt="" class="logo">
<ul> <ul>
<% for i in navigables %> <% for i in navigables %>
<li><%= link_to(i[:naam], i, class: "nav_link") %></li> <li><%= link_to(i[:naam], i, class: "nav_link") %></li>

View file

@ -1,9 +1,7 @@
<div class="content-wrapper"> <h1> <%= item[:naam] %> </h1>
<h1> <%= item[:naam] %> </h1> <div class="details-wrapper">
<div class="details-wrapper"> <div class="details-container details-text">
<div class="details-container details-text"> <%= yield %>
<%= yield %>
</div>
<%= render '/partials/detail.*' %>
</div> </div>
<%= render '/partials/detail.*' %>
</div> </div>

View file

@ -1,9 +1,7 @@
<div class="content-wrapper"> <h1> <%= item[:naam] %> </h1>
<h1> <%= item[:naam] %> </h1> <div class="details-wrapper">
<div class="details-wrapper"> <div class="details-container details-text">
<div class="details-container details-text"> <%= yield %>
<%= yield %>
</div>
<%= render '/partials/detail.*' %>
</div> </div>
<%= render '/partials/detail.*' %>
</div> </div>