partners page

remotes/1693055039339581669/master
Igor Laborie 6 years ago
parent d53e8aec27
commit 0a2c8caf97
  1. 6
      content/partners/_index.html
  2. 1
      themes/devfest-theme-hugo/assets/style/main.scss
  3. 9
      themes/devfest-theme-hugo/assets/style/pages/_parteners.scss
  4. 9
      themes/devfest-theme-hugo/assets/style/partials/_partners.scss
  5. 2
      themes/devfest-theme-hugo/layouts/index.html
  6. 2
      themes/devfest-theme-hugo/layouts/partials/partner.html
  7. 24
      themes/devfest-theme-hugo/layouts/partners/list.html

@ -1,3 +1,9 @@
--- ---
title: Partners title: Partners
categories:
- platinium
- gold
- soutien
- media
- communautes
--- ---

@ -85,6 +85,7 @@
@import "pages/home"; @import "pages/home";
@import "pages/sessions"; @import "pages/sessions";
@import "pages/session"; @import "pages/session";
@import "pages/parteners";
@import "pages/speakers"; @import "pages/speakers";
@import "pages/speaker"; @import "pages/speaker";
@import "pages/blogs"; @import "pages/blogs";

@ -0,0 +1,9 @@
.page.partners {
.content {
img {
width: 50vw;
}
}
}

@ -37,12 +37,12 @@
} }
} }
.partners-group.partner-pt ul li { .partners-group.partner-platinium ul li {
height: var(--partner-platinum-height); height: var(--partner-platinum-height);
flex-basis: 320px; flex-basis: 320px;
} }
.partners-group.partner-au ul li { .partners-group.partner-gold ul li {
height: var(--partner-gold-height); height: var(--partner-gold-height);
flex-basis: 200px; flex-basis: 200px;
} }
@ -58,6 +58,7 @@
span { span {
display: inline-block; display: inline-block;
position: relative; position: relative;
text-transform: capitalize;
&:before, &:after { &:before, &:after {
top: 40%; top: 40%;
@ -81,7 +82,7 @@
} }
.partners-group.partner-pt .fancy { .partners-group.partner-platinium .fancy {
font-size: 1.5em; font-size: 1.5em;
color: var(--color-platium); color: var(--color-platium);
@ -91,7 +92,7 @@
} }
} }
.partners-group.partner-au .fancy { .partners-group.partner-gold .fancy {
font-size: 1.33em; font-size: 1.33em;
color: var(--color-gold); color: var(--color-gold);

@ -90,7 +90,7 @@
<section class="partners"> <section class="partners">
<h2>Partenaires</h2> <h2>Partenaires</h2>
{{ $site := .Site }} {{ $site := .Site }}
{{ range .Params.partners.categories }} {{ range .Site.Params.partners.categories }}
<section class="partners-group partner-{{ . }}"> <section class="partners-group partner-{{ . }}">
<h3 class="fancy"> <h3 class="fancy">
<span>{{ . }}</span> <span>{{ . }}</span>

@ -1,5 +1,5 @@
<a class="partner" <a class="partner"
href="{{ .Params.website }}" href="{{ .URL }}"
aria-label="{{ .Title }}" aria-label="{{ .Title }}"
title="{{ .Title }}" title="{{ .Title }}"
style="background-image: url({{ .Params.logo }});"></a> style="background-image: url({{ .Params.logo }});"></a>

@ -0,0 +1,24 @@
{{ define "main" }}
<div class="hero">
<h1>{{ $.Page.Params.Title }}</h1>
<div class="description">
TODO: filter and search
</div>
</div>
{{ $site := .Site }}
{{ range .Params.categories }}
<section class="partners-group partner-{{ . }}">
<h3 class="fancy">
<span>{{ . }}</span>
</h3>
<ul>
{{ range where $site.Pages "Params.category" . }}
<li>{{ partial "partner.html" . }}</li>
{{ end }}
</ul>
</section>
{{ end }}
{{ end }}
Loading…
Cancel
Save