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