Files
landing_page/qdrant-landing/themes/qdrant-2024/layouts/partials/vsd/vsd-hero.html
T

28 lines
1.2 KiB
HTML

{{ $root := .Scratch.Get "vsdContentRoot" | default "/vsd" }}
{{ with (.Site.GetPage (printf "%s/vsd-hero" $root)) }}
<section class="vsd-hero{{ if eq $root "/vsd-recap" }} vsd-hero--recap{{ end }}">
<div class="container">
<div class="vsd-hero__banner">
<div class="vsd-hero__place">
<p>{{ .Params.place }}</p>
<p>{{ .Params.eventDate }}</p>
{{ with .Params.time }}
<p>{{ . }}</p>
{{ end }}
</div>
<h1 class="vsd-hero__title">{{ .Params.title | safeHTML }}</h1>
<div class="vsd-hero__buttons">
<a href="{{ .Params.button.url }}" class="button button_contained button_lg vsd-hero__button"{{ if strings.HasPrefix .Params.button.url "http" }} target="_blank" rel="noopener noreferrer"{{ end }}>
{{ .Params.button.text }}
</a>
{{ with .Params.secondaryButton }}
<a href="{{ .url }}" class="button button_outlined button_lg vsd-hero__button"{{ if strings.HasPrefix .url "http" }} target="_blank" rel="noopener noreferrer"{{ end }}>
{{ .text }}
</a>
{{ end }}
</div>
</div>
</div>
</section>
{{ end }}