From e8855c8de43562cfa2cb8de83531e5f43dbd51ef Mon Sep 17 00:00:00 2001 From: ajuvercr Date: Sat, 12 Sep 2020 14:12:13 +0200 Subject: [PATCH] themes are feeling a bit blue --- content/assets/themas_icon/cultuur.svg | 2 +- content/assets/themas_icon/diversiteit.svg | 2 +- .../themas_icon/duurzaamheid en groen.svg | 2 +- .../themas_icon/economie en development.svg | 2 +- content/assets/themas_icon/engagement.svg | 2 +- content/assets/themas_icon/faculteit.svg | 2 +- content/assets/themas_icon/home.svg | 2 +- content/assets/themas_icon/internationaal.svg | 2 +- content/assets/themas_icon/lifestyle.svg | 2 +- .../themas_icon/politiek en filosofisch.svg | 2 +- .../themas_icon/wetenschap en techniek.svg | 2 +- content/stylesheets/main.css | 18 ++++++++++++++++-- layouts/verenigingen.erb | 6 ++++-- nanoc.yaml | 2 +- 14 files changed, 32 insertions(+), 16 deletions(-) diff --git a/content/assets/themas_icon/cultuur.svg b/content/assets/themas_icon/cultuur.svg index 6a70a9c..4fe14ec 100644 --- a/content/assets/themas_icon/cultuur.svg +++ b/content/assets/themas_icon/cultuur.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/content/assets/themas_icon/diversiteit.svg b/content/assets/themas_icon/diversiteit.svg index faa861b..760bccb 100644 --- a/content/assets/themas_icon/diversiteit.svg +++ b/content/assets/themas_icon/diversiteit.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/content/assets/themas_icon/duurzaamheid en groen.svg b/content/assets/themas_icon/duurzaamheid en groen.svg index b19ad82..ca1aa6c 100644 --- a/content/assets/themas_icon/duurzaamheid en groen.svg +++ b/content/assets/themas_icon/duurzaamheid en groen.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/content/assets/themas_icon/economie en development.svg b/content/assets/themas_icon/economie en development.svg index 66c500b..93b77c9 100644 --- a/content/assets/themas_icon/economie en development.svg +++ b/content/assets/themas_icon/economie en development.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/content/assets/themas_icon/engagement.svg b/content/assets/themas_icon/engagement.svg index 72e9b95..a45477c 100644 --- a/content/assets/themas_icon/engagement.svg +++ b/content/assets/themas_icon/engagement.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/content/assets/themas_icon/faculteit.svg b/content/assets/themas_icon/faculteit.svg index b2dc6b3..e3874db 100644 --- a/content/assets/themas_icon/faculteit.svg +++ b/content/assets/themas_icon/faculteit.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/content/assets/themas_icon/home.svg b/content/assets/themas_icon/home.svg index 7d08d0c..055b87b 100644 --- a/content/assets/themas_icon/home.svg +++ b/content/assets/themas_icon/home.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/content/assets/themas_icon/internationaal.svg b/content/assets/themas_icon/internationaal.svg index 325aae1..3ea0312 100644 --- a/content/assets/themas_icon/internationaal.svg +++ b/content/assets/themas_icon/internationaal.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/content/assets/themas_icon/lifestyle.svg b/content/assets/themas_icon/lifestyle.svg index b6b04b6..5652952 100644 --- a/content/assets/themas_icon/lifestyle.svg +++ b/content/assets/themas_icon/lifestyle.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/content/assets/themas_icon/politiek en filosofisch.svg b/content/assets/themas_icon/politiek en filosofisch.svg index ccd25b0..6200bad 100644 --- a/content/assets/themas_icon/politiek en filosofisch.svg +++ b/content/assets/themas_icon/politiek en filosofisch.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/content/assets/themas_icon/wetenschap en techniek.svg b/content/assets/themas_icon/wetenschap en techniek.svg index e410128..e59459d 100644 --- a/content/assets/themas_icon/wetenschap en techniek.svg +++ b/content/assets/themas_icon/wetenschap en techniek.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/content/stylesheets/main.css b/content/stylesheets/main.css index a9f1186..150cdb8 100644 --- a/content/stylesheets/main.css +++ b/content/stylesheets/main.css @@ -350,8 +350,8 @@ fieldset p label input { max-width: 33%; } -.tile--white { - background-color: antiquewhite; +.tile--blue { + background-color: var(--darkblue); } .tile::before { @@ -370,6 +370,20 @@ fieldset p label input { transition: ease-in 0.2s; transition-property: filter; + + display: flex; + justify-content: center; +} + +.tile__image--svg { + width: 80%; + height: auto; + + fill: var(--white); +} + +.tile__image svg { + width: 100%; } .tile:hover .tile__image { diff --git a/layouts/verenigingen.erb b/layouts/verenigingen.erb index e20c9fb..62f0585 100644 --- a/layouts/verenigingen.erb +++ b/layouts/verenigingen.erb @@ -3,8 +3,10 @@

Thema's

<% for thema in themas %> -
- <%= thema[:naam] %> +
+
+ <%= @items["/assets/themas_icon/"+thema[:naam]+".svg"].compiled_content %> +

<%= thema[:naam] %>

<% end %> diff --git a/nanoc.yaml b/nanoc.yaml index 12c5273..3e4a4e7 100644 --- a/nanoc.yaml +++ b/nanoc.yaml @@ -1,7 +1,7 @@ # A list of file extensions that Nanoc will consider to be textual rather than # binary. If an item with an extension not in this list is found, the file # will be considered as binary. -text_extensions: [ 'adoc', 'asciidoc', 'atom', 'coffee', 'css', 'erb', 'haml', 'handlebars', 'hb', 'htm', 'html', 'js', 'less', 'markdown', 'md', 'ms', 'mustache', 'php', 'rb', 'rdoc', 'sass', 'scss', 'slim', 'tex', 'txt', 'xhtml', 'xml', 'yml' ] +text_extensions: [ 'adoc', 'asciidoc', 'atom', 'coffee', 'css', 'erb', 'haml', 'handlebars', 'hb', 'htm', 'html', 'js', 'less', 'markdown', 'md', 'ms', 'mustache', 'php', 'rb', 'rdoc', 'sass', 'scss', 'slim', 'tex', 'txt', 'xhtml', 'xml', 'yml', 'svg' ] base_url: http://localhost:3000