From 0a2c8caf97add5b0572de2a81dea84169d2790e3 Mon Sep 17 00:00:00 2001 From: Igor Laborie Date: Thu, 10 Jan 2019 19:01:45 +0100 Subject: [PATCH] partners page --- content/partners/_index.html | 6 +++++ .../devfest-theme-hugo/assets/style/main.scss | 1 + .../assets/style/pages/_parteners.scss | 9 +++++++ .../assets/style/partials/_partners.scss | 9 +++---- themes/devfest-theme-hugo/layouts/index.html | 2 +- .../layouts/partials/partner.html | 2 +- .../layouts/partners/list.html | 24 +++++++++++++++++++ 7 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 themes/devfest-theme-hugo/assets/style/pages/_parteners.scss create mode 100644 themes/devfest-theme-hugo/layouts/partners/list.html diff --git a/content/partners/_index.html b/content/partners/_index.html index 1c5eaa0..5114463 100644 --- a/content/partners/_index.html +++ b/content/partners/_index.html @@ -1,3 +1,9 @@ --- title: Partners +categories: + - platinium + - gold + - soutien + - media + - communautes --- \ No newline at end of file diff --git a/themes/devfest-theme-hugo/assets/style/main.scss b/themes/devfest-theme-hugo/assets/style/main.scss index 5ca9878..a86b8ad 100644 --- a/themes/devfest-theme-hugo/assets/style/main.scss +++ b/themes/devfest-theme-hugo/assets/style/main.scss @@ -85,6 +85,7 @@ @import "pages/home"; @import "pages/sessions"; @import "pages/session"; +@import "pages/parteners"; @import "pages/speakers"; @import "pages/speaker"; @import "pages/blogs"; diff --git a/themes/devfest-theme-hugo/assets/style/pages/_parteners.scss b/themes/devfest-theme-hugo/assets/style/pages/_parteners.scss new file mode 100644 index 0000000..2c1dc69 --- /dev/null +++ b/themes/devfest-theme-hugo/assets/style/pages/_parteners.scss @@ -0,0 +1,9 @@ +.page.partners { + + + .content { + img { + width: 50vw; + } + } +} \ No newline at end of file diff --git a/themes/devfest-theme-hugo/assets/style/partials/_partners.scss b/themes/devfest-theme-hugo/assets/style/partials/_partners.scss index eda3765..44b59b5 100644 --- a/themes/devfest-theme-hugo/assets/style/partials/_partners.scss +++ b/themes/devfest-theme-hugo/assets/style/partials/_partners.scss @@ -37,12 +37,12 @@ } } -.partners-group.partner-pt ul li { +.partners-group.partner-platinium ul li { height: var(--partner-platinum-height); flex-basis: 320px; } -.partners-group.partner-au ul li { +.partners-group.partner-gold ul li { height: var(--partner-gold-height); flex-basis: 200px; } @@ -58,6 +58,7 @@ span { display: inline-block; position: relative; + text-transform: capitalize; &:before, &:after { top: 40%; @@ -81,7 +82,7 @@ } -.partners-group.partner-pt .fancy { +.partners-group.partner-platinium .fancy { font-size: 1.5em; color: var(--color-platium); @@ -91,7 +92,7 @@ } } -.partners-group.partner-au .fancy { +.partners-group.partner-gold .fancy { font-size: 1.33em; color: var(--color-gold); diff --git a/themes/devfest-theme-hugo/layouts/index.html b/themes/devfest-theme-hugo/layouts/index.html index 757161b..10cf57b 100644 --- a/themes/devfest-theme-hugo/layouts/index.html +++ b/themes/devfest-theme-hugo/layouts/index.html @@ -90,7 +90,7 @@

Partenaires

{{ $site := .Site }} - {{ range .Params.partners.categories }} + {{ range .Site.Params.partners.categories }}

{{ . }} diff --git a/themes/devfest-theme-hugo/layouts/partials/partner.html b/themes/devfest-theme-hugo/layouts/partials/partner.html index 2b9cbaf..e0a1b6d 100644 --- a/themes/devfest-theme-hugo/layouts/partials/partner.html +++ b/themes/devfest-theme-hugo/layouts/partials/partner.html @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/themes/devfest-theme-hugo/layouts/partners/list.html b/themes/devfest-theme-hugo/layouts/partners/list.html new file mode 100644 index 0000000..61bf439 --- /dev/null +++ b/themes/devfest-theme-hugo/layouts/partners/list.html @@ -0,0 +1,24 @@ +{{ define "main" }} + +
+

{{ $.Page.Params.Title }}

+
+ TODO: filter and search +
+
+ +{{ $site := .Site }} +{{ range .Params.categories }} +
+

+ {{ . }} +

+
    + {{ range where $site.Pages "Params.category" . }} +
  • {{ partial "partner.html" . }}
  • + {{ end }} +
+
+{{ end }} + +{{ end }} \ No newline at end of file