Compare commits
2 Commits
39dfac77a9
...
ece0e31320
Author | SHA1 | Date | |
---|---|---|---|
|
ece0e31320 | ||
|
7da58e1619 |
2
dev.toml
2
dev.toml
@ -2,4 +2,4 @@
|
|||||||
Port = 1234
|
Port = 1234
|
||||||
|
|
||||||
[Template]
|
[Template]
|
||||||
ActiveCard = "stores"
|
ActiveCard = "websites"
|
||||||
|
@ -76,6 +76,7 @@ body {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: space-around;
|
||||||
color: black;
|
color: black;
|
||||||
gap: 1em;
|
gap: 1em;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
@ -91,6 +92,10 @@ body {
|
|||||||
background-color: rgba(125, 255, 125, 0.5);
|
background-color: rgba(125, 255, 125, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card h3 {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.card-image {
|
.card-image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -36,6 +36,17 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ 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>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user