Work on styling and layout

This commit is contained in:
Midgard 2020-08-28 22:14:28 +02:00
parent ae77543870
commit a263a4f3bc
Signed by: midgard
GPG key ID: 511C112F1331BBB4
6 changed files with 137 additions and 93 deletions

8
Rules
View file

@ -4,6 +4,7 @@ compile '/verenigingen/*.md' do
filter :kramdown
layout '/vereniging.*'
layout '/default.*'
layout '/base.*'
write ext: 'html'
end
@ -11,6 +12,7 @@ compile '/events/*.md' do
filter :kramdown
layout '/event.*'
layout '/default.*'
layout '/base.*'
write ext: 'html'
end
@ -18,13 +20,14 @@ compile '/konventen/*.md' do
filter :kramdown
layout '/konvent.*'
layout '/default.*'
layout '/base.*'
write ext: 'html'
end
compile '/homepage.md' do
filter :kramdown
layout '/homepage.*'
layout '/default.*'
layout '/base.*'
write '/index.html'
end
@ -35,6 +38,7 @@ end
compile '/faq.erb' do
filter :erb
layout '/default.*'
layout '/base.*'
write '/faq/index.html'
end
@ -42,12 +46,14 @@ compile '/verenigingen.md' do
filter :kramdown
layout '/verenigingen.*'
layout '/default.*'
layout '/base.*'
write ext: 'html'
end
compile '/*.md' do
filter :kramdown
layout '/default.*'
layout '/base.*'
write ext: 'html'
end

View file

@ -3,4 +3,3 @@ titel: Home
navigable: true
order: 1
---
Huis

View file

@ -1,24 +1,25 @@
:root{
--darkblue: #013E7A;
--lightblue: #1A77D3;
--cyan: #AAEEFF;
--yellow: #FED318;
:root {
--white: #ffffff;
--darkblue: #013e7a;
--lightblue: #1a77d3;
--cyan: #aaeeff;
--yellow: #fed318;
}
html, body{
width: 100%;
html, body {
height: 100%;
}
body{
width: 1280px;
body {
margin: 0 auto;
padding: 0 1em;
max-width: 1280px;
font-family: futura, Avenir Next, Verdana, Geneva, Tahoma, sans-serif;
}
header{
.beforeTheFold, main {
position: relative;
height: 100%;
min-height: 100%;
}
nav a {
@ -41,19 +42,21 @@ nav {
padding: 1rem 0;
}
h2{
h2 {
font-family: futura, Avenir Next, Verdana, Geneva, Tahoma, sans-serif;
font-size: 3.4rem;
width: 30rem;
color: var(--darkblue);
}
.beforeTheFold h2 {
max-width: 30rem;
}
.studentZijn {
padding-top: 4rem;
padding-left: 3rem;
padding: 4rem 0 2rem 3rem;
}
.scroll {
display: block;
position: absolute;
bottom: 2rem;
left: 0;
@ -69,37 +72,51 @@ h2{
display: none;
}
.quote p{
font-size: 1.5rem;
width: 25rem;
font-family: Avenir Next, Verdana, Geneva, Tahoma, sans-serif;
font-style: italic;
font-weight: lighter;
padding-left: 2rem;
}
.quote {
display: flex;
}
.quote img {
width: 103px;
height: 185px;
margin-right: 2rem;
}
.randomVerenigingen {
position: absolute;
bottom: 5rem;
right: 0;
.quote p {
max-width: 25rem;
font-size: 1.5rem;
font-family: Avenir Next, Verdana, Geneva, Tahoma, sans-serif;
font-style: italic;
font-weight: 500;
margin: 0.5em 0;
}
.quizSpotlight {
text-align: right;
font-size: 4rem;
font-size: 3rem;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
line-height: 0;
color: var(--lightblue);
}
@media (min-width: 1000px) and (max-width: 1000px) {
.quizSpotlight {
position: absolute;
bottom: 5rem;
right: 0;
}
}
.quizSpotlight a {
text-decoration: none;
color: var(--white);
background-color: var(--lightblue);
padding: 1rem;
}
.aside_blueSquare {
right: 3rem;
height: 100%;
width: 20%;
}
.backgroundSquare {
@ -123,12 +140,12 @@ h2{
color: transparent;
}
.randomVerenigingen p{
.randomVerenigingen p {
text-transform: uppercase;
}
.underline, .active_link{
.underline, .active_link {
padding-bottom: -2rem;
margin-bottom: -2rem;
box-shadow: inset 0 -8px 0 var(--yellow);
}
}

35
layouts/base.erb Normal file
View file

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="nl">
<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> Durf Doen! - <%= item[:titel] || abbreviation(item) %> </title>
<link rel="stylesheet" href="/stylesheets/main.css">
<link rel="shortcut icon" href="/assets/favicon.png">
<%#= item[:head] %>
</head>
<body>
<%= yield %>
<footer>
<div>
<img src="" alt="">
<img src="" alt="">
<img src="" alt="">
<img src="" alt="">
<img src="" alt="">
<img src="" alt="">
<img src="" alt="">
</div>
<p>©2020 Gentse studentenraad</p>
<div lang="en">
<p>Made with ♥ by</p>
<img src="" alt="">
</div>
</footer>
</body>
</html>

View file

@ -1,39 +1,5 @@
<!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> Durf Doen! - <%= item[:titel] || abbreviation(item) %> </title>
<link rel="stylesheet" href="/stylesheets/main.css">
<link rel="shortcut icon" href="/assets/favicon.png">
<%#= item[:head] %>
</head>
<body>
<header>
<div class="header_blueSquare backgroundSquare"></div>
<%= render '/partials/navbar.*' %>
<%#= yield :header %>
</header>
<%= yield %>
<footer>
<div>
<img src="" alt="">
<img src="" alt="">
<img src="" alt="">
<img src="" alt="">
<img src="" alt="">
<img src="" alt="">
<img src="" alt="">
</div>
<p>©2020 Gentse studentenraad</p>
<div>
<p>Made with ♥ by</p>
<img src="" alt="">
</div>
</footer>
</body>
</html>

View file

@ -1,32 +1,53 @@
<article>
<h1 class="hidden">Durf Doen</h1>
<h2 class="studentZijn"><span class="underline">Student</span> zijn is <span class="underline">meer</span> dan
studeren</h2>
<div class="quote"><img src="/assets/durfdoenlogo.png" alt="">
<p>Lorem ipsum dolor zie van hier da ik latijn ga beginnen spreken Lorem ipsum dolor zie van hier da ik latijn ga
beginnen spreken</p></div>
</article>
<aside class="randomVerenigingen">
<div class="aside_blueSquare backgroundSquare"></div>
<% for vereniging in verenigingen_random(6) %>
<p><%= vereniging["naam"] %></p>
<% end %>
</aside>
<div>
<p class="scroll">Scroll naar beneden</p>
</div>
</header>
<div class="header_blueSquare backgroundSquare"></div>
<main>
<div class="beforeTheFold">
<header>
<%= render '/partials/navbar.*' %>
</header>
<article class="intro">
<h1 class="hidden">Durf Doen</h1>
<h2 class="studentZijn">
<span class="underline">Student</span> zijn is
<span class="underline">meer</span> dan studeren
</h2>
<div class="quote">
<div>
<img src="/assets/durfdoenlogo.png" alt="">
</div>
<div>
<p>Durf Doen wil jou de vereniging laten kennen die je op het lijf geschreven is.</p>
<p>Btw Facebook is onethisch. Geef ze geen geld.</p>
</div>
</div>
</article>
<div class="quizSpotlight">
<a href="test">Doe de test</a>
</div>
<div>
<a href="#main" class="scroll">Scroll naar beneden</a>
</div>
</div>
<main id="main">
<article>
<%= yield %>
</article>
<article>
<h2>Doe hier <span class="underline">de test</span></h2>
<p>Wil je weten welke studentenclub, werkgroep of kring het beste bij jou past? Doe onze test en vindt het uit</p>
<p>Wil je weten welke studentenclub, werkgroep of kring het beste bij jou past? Ontdek het</p>
</article>
<article>
<h2><span class="underline">Uitgelichte</span> Verenigingen</h2>
<h2><span class="underline">Random</span> Verenigingen</h2>
<section class="randomVerenigingen">
<% for vereniging in verenigingen_random(6) %>
<p><%= vereniging["naam"] %></p>
<% end %>
</section>
<section>
<h3>Zeus WPI</h3>
<p>Hier stond een tekst die niet online mocht komen omdat het over niet politiek correcte dingen ging</p>