Compare commits

..

2 Commits

Author SHA1 Message Date
Hazel Noack
ece0e31320 added proper styling for website images 2025-07-14 16:44:08 +02:00
Hazel Noack
7da58e1619 added raw version of website cards 2025-07-14 16:41:30 +02:00
3 changed files with 17 additions and 1 deletions

View File

@ -2,4 +2,4 @@
Port = 1234
[Template]
ActiveCard = "stores"
ActiveCard = "websites"

View File

@ -76,6 +76,7 @@ body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
color: black;
gap: 1em;
padding: 1em;
@ -91,6 +92,10 @@ body {
background-color: rgba(125, 255, 125, 0.5);
}
.card h3 {
margin: 0;
}
.card-image {
width: 100%;

View File

@ -36,6 +36,17 @@
{{- end }}
</div>
{{ end }}
{{ if eq .ActiveCard "websites" }}
<div class="cards" id="websites">
{{range $Website := .Websites }}
<a target="_blank" href="{{ $Website.Url }}" class="card">
<h3>{{ $Website.Name }}</h3>
<img class="card-image" src="{{ $Website.ImageUrl }}" alt="{{ $Website.Name }} picture">
</a>
{{- end }}
</div>
{{ end }}
</form>
<script>