Add hero, introduce recent audio

This commit is contained in:
Gabriel 2024-01-28 03:48:39 -05:00
parent 07e4d56f7e
commit 1e39872a80
2 changed files with 14 additions and 0 deletions

13
hero.html Normal file
View file

@ -0,0 +1,13 @@
<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"}}" style="border-radius:1rem;max-width:40%;">{{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>

1
recent-audio.html Normal file
View file

@ -0,0 +1 @@
{{partial "recent-audio" .}}