From 4250de06ff71aa2a8465e23e314644fa21861c06 Mon Sep 17 00:00:00 2001 From: Arthur Vercruysse Date: Sun, 6 Sep 2020 20:41:54 +0200 Subject: [PATCH] add some very very very basic/ugly css --- Rules | 1 + content/stylesheets/main.css | 10 ++++++++++ layouts/base.erb | 17 +---------------- layouts/default.erb | 34 +++++++++++++++++++++------------- layouts/homepage.erb | 19 ++++++++++++++++++- layouts/partials/question.erb | 4 ++-- layouts/quiz.erb | 4 ++-- 7 files changed, 55 insertions(+), 34 deletions(-) diff --git a/Rules b/Rules index 27cffbe..d53ac8a 100644 --- a/Rules +++ b/Rules @@ -68,6 +68,7 @@ compile '/quiz.md' do filter :kramdown layout '/quiz.*' layout '/default.*' + layout '/base.*' write ext: 'html' end diff --git a/content/stylesheets/main.css b/content/stylesheets/main.css index 87f1da2..6f81239 100644 --- a/content/stylesheets/main.css +++ b/content/stylesheets/main.css @@ -29,6 +29,10 @@ body { padding: 0 1em; } +.align .large { + max-width: 1500px; +} + .beforeTheFold, main { position: relative; @@ -92,6 +96,8 @@ h2 { font-size: 3.4rem; color: var(--darkblue); } + + .beforeTheFold h2 { max-width: 30rem; } @@ -247,6 +253,10 @@ fieldset { margin: auto; } +fieldset p label { + display: flex; +} + fieldset p { margin: 15px 10px; } diff --git a/layouts/base.erb b/layouts/base.erb index 90b422c..3587677 100644 --- a/layouts/base.erb +++ b/layouts/base.erb @@ -8,26 +8,11 @@ - <%#= item[:head] %> + <%= item[:head] %> <%= yield %> - diff --git a/layouts/default.erb b/layouts/default.erb index 2334881..f5d4ac2 100644 --- a/layouts/default.erb +++ b/layouts/default.erb @@ -1,13 +1,21 @@ - - - Durf Doen! - <%= item[:titel] || item.identifier.without_ext.split('/').last %> - - - - <%= item[:head] %> - - - <%= render '/partials/navbar.*' %> - <%= yield %> - - +
+ <%= render '/partials/navbar.*' %> +
+
+<%= yield %> +
+ diff --git a/layouts/homepage.erb b/layouts/homepage.erb index 29075e1..5ac9f56 100644 --- a/layouts/homepage.erb +++ b/layouts/homepage.erb @@ -2,9 +2,9 @@
<%= render '/partials/navbar.*' %>
-
+

Durf Doen

@@ -43,4 +43,21 @@

Weus ZPI is de studentenvereniging voor InFoRmAtIcA aan de UGent. Ons doel is een bullshitty omgeving te bullshitten voor bullshitted studenten die hun bullshit willen uitbreiden door zich te engageren voor bullshitprojecten.

+ + + diff --git a/layouts/partials/question.erb b/layouts/partials/question.erb index 0e4c359..7c24d18 100644 --- a/layouts/partials/question.erb +++ b/layouts/partials/question.erb @@ -1,4 +1,4 @@ -

<%= question[:vraag] %>

+

<%= question[:vraag] %>

<% if question[:type] == "specialCase1" %>

Geef je postcode in @@ -9,7 +9,7 @@

<% question[:antwoorden].each_with_index do |answer, idx| %>

-

+
<% @items.find_all("/quiz/*").each_with_index do |quest, i| %> <% end %>
-