feat(style): custom colors

This commit is contained in:
Anhgelus Morhtuuzh 2024-11-09 23:53:27 +01:00
parent 5b98185aa6
commit bbacda44f8
No known key found for this signature in database
GPG key ID: CAD341EFA92DDDE5
4 changed files with 55 additions and 35 deletions

View file

@ -1,5 +1,5 @@
{{define "body"}}
<main style="{{ .GetBackground }}">
<main style="{{ .GetBackground }}{{ .GetTextColor }}">
<div class="presentation">
<figure>
<img src="{{ getStaticPath .Person.Image }}" alt="{{ .Person.Name }}'s image">
@ -12,7 +12,9 @@
<p class="description">{{ .Description }}</p>
<div class="links">
{{ range $link := .Links }}
<div class="link" style="{{ $link.GetBackground }}"><a href="{{ $link.Link }}">{{ $link.Content }}</a></div>
<div class="link" style="{{ .GetBackground }}">
<a href="{{ .Link }}" style="{{ .GetLinkColor }}">{{ .Content }}</a>
</div>
{{end}}
</div>
</main>