partners page

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
categories:
- platinium
- gold
- soutien
- media
- communautes
---

@ -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";

@ -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);
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);

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

@ -1,5 +1,5 @@
<a class="partner"
href="{{ .Params.website }}"
href="{{ .URL }}"
aria-label="{{ .Title }}"
title="{{ .Title }}"
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