13 lines
1,003 B
HTML
13 lines
1,003 B
HTML
<div class='hero' style="{{if .Get "color"}}--hero-color:{{.Get "color"}};{{end}}display:flex;flex-direction:row;{{if .Get "bg"}}background-image:url('{{.Get "bg"}}');background-size:cover;background-position:center center;{{end}}width:100%;justify-content:space-evenly;flex-wrap:wrap;flex-direction:row{{if .Get "reverse"}}-reverse{{end}}">
|
|
{{if .Get "img"}}<img src="{{.Get "img"}}">{{end}}
|
|
<div style="display:flex;flex-direction:column;margin:0.5rem;padding:0.5rem;backdrop-filter:blur(0.15rem);border-radius:1.5rem;max-width:40rem;min-width:25%;align-items: center;">
|
|
<h2 style="text-align:center">{{.Get "title"}}</h2>
|
|
<p>{{.Get "description"}}</p>
|
|
{{ if .Get "audio"}}<audio controls style="width:100%"><source src='{{.Get "audio"}}'></audio>{{end}}
|
|
<a {{if .Get "href"}}href='{{.Get "href"}}' {{end}}>
|
|
{{if .Get "btn"}}
|
|
<button style="margin-bottom:1rem;">{{.Get "btn"}}</button>
|
|
{{end}}
|
|
</a>
|
|
</div>
|
|
</div>
|