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

program hero

parent 06b8d59d
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,8 @@ ul.diplomas
flex-wrap: wrap
font-size: $program-essential-font-size
margin-bottom: 0
margin-top: $spacing3
@include meta
@include media-breakpoint-up(md)
@include grid(12, false, 0)
font-size: $program-essential-font-size-md
......@@ -125,9 +127,6 @@ ul.diplomas
padding-top: 0
.diplomas__term
.hero
.essential
margin-top: $spacing3
ol.programs
li
@include grid(2, md)
......
......@@ -106,4 +106,4 @@ ol.programs
table
margin-block-start: 2em
caption
@include visually-hidden
\ No newline at end of file
@include visually-hidden
{{- with . -}}
<dl class="essential meta">
<dl class="essential">
{{- if .Params.level -}}
<dt>{{ i18n "programs.level" }}</dt>
<dd>{{ partial "PrepareHTML" .Params.level }}</dd>
......
......@@ -2,7 +2,7 @@
{{- with .Params.diplomas -}}
{{- $diploma := site.GetPage (printf "/diplomas/%s" .) -}}
{{- with $diploma -}}
<dl class="essential meta">
<dl class="essential">
<dt>{{ i18n "programs.diploma" }}</dt>
<dd><a href="{{ .Permalink }}">{{ partial "PrepareHTML" .Title }}</a></dd>
{{- if .Params.level -}}
......
......@@ -4,30 +4,32 @@
{{- if .Params.breadcrumb | default true -}}
{{ partial "header/breadcrumbs.html" . }}
{{- end -}}
<div>
<div class="content">
<h1>{{ partial "PrepareHTML" $title }}</h1>
</div>
</div>
<section class="container" id="essential">
{{- partial "programs/essential" . -}}
<div class="buttons">
<div class="dropdown-share dropup">
<button type="button" id="shareProgram" data-bs-toggle="dropdown" aria-expanded="false">{{ i18n "commons.share" }}</button>
<div class="dropdown-menu">
{{ partial "commons/share.html" . }}
<div id="essential">
<div class="container">
{{- partial "programs/essential" . -}}
<div class="buttons">
<div class="dropdown-share dropup">
<button type="button" id="shareProgram" data-bs-toggle="dropdown" aria-expanded="false">{{ i18n "commons.share" }}</button>
<div class="dropdown-menu">
{{ partial "commons/share.html" . }}
</div>
</div>
</div>
{{ with .Params.downloadable_summary }}
{{- $file := partial "GetMedia" . -}}
{{- if $file -}}
{{- $url := $file.url -}}
{{- if site.Params.keycdn -}}
{{- $url = $file.direct_url -}}
{{ with .Params.downloadable_summary }}
{{- $file := partial "GetMedia" . -}}
{{- if $file -}}
{{- $url := $file.url -}}
{{- if site.Params.keycdn -}}
{{- $url = $file.direct_url -}}
{{- end -}}
<a href="{{ $url }}" download target="_blank">{{ i18n "commons.download.singular_name" }}</a>
{{- end -}}
<a href="{{ $url }}" download target="_blank">{{ i18n "commons.download.singular_name" }}</a>
{{- end -}}
{{ end }}
{{ end }}
</div>
</div>
</section>
</div>
</header>
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