Skip to content
Snippets Groups Projects
Commit f6eb5036 authored by alexisben's avatar alexisben
Browse files

style hero

parent 0794452d
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,34 @@
&:not(.full-width)
.project-sidebar
@include sidebar
.hero
.content
align-items: stretch
.hero-text
display: flex
flex-direction: column
gap: $spacing-3
@include media-breakpoint-up(sm)
.hero
.project-infos
width: columns(8)
@include media-breakpoint-up(md)
.hero
.project-infos
width: columns(6)
@include media-breakpoint-up(desktop)
.hero
.content
align-items: stretch
.hero-text
justify-content: space-between
gap: $spacing-5
width: columns(6)
.project-infos
width: columns(4)
figure
width: columns(6)
.project-infos
@include section__page-infos
......@@ -43,6 +43,10 @@
<a href="{{ .target }}" class="btn">{{ .label }}</a>
{{ end }}
{{ end }}
{{ if .hero_text_complement }}
{{ partial .hero_text_complement .context }}
{{ end }}
</div>
{{ if .image }}
......
......@@ -4,5 +4,6 @@
"title" $title
"image" .Params.image
"sizes" site.Params.image_sizes.sections.projects.hero_single
"hero_text_complement" "projects/project-infos.html"
"context" .
) -}}
......@@ -7,7 +7,7 @@
{{ with .Params.summary }}<meta itemprop="abstract" content="{{ . | safeHTML }}">{{ end }}
{{ with .Summary }}<meta itemprop="description" content="{{ . | safeHTML }}">{{ end }}
{{ partial "projects/sidebar.html" . }}
{{/* {{ partial "projects/sidebar.html" . }} */}}
{{ partial "projects/summary.html" (dict
"context" .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment