88x31 buttons
This commit is contained in:
parent
286519acab
commit
fb13bfa0c2
10 changed files with 34 additions and 0 deletions
34
layouts/partials/buttons.html
Normal file
34
layouts/partials/buttons.html
Normal file
|
@ -0,0 +1,34 @@
|
|||
<style>
|
||||
.buttons {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
max-width: 100vw; /* Make the container as wide as the viewport */
|
||||
gap: 3px;
|
||||
margin: 0; /* Remove any default margin */
|
||||
padding: 0; /* Remove any default padding */
|
||||
}
|
||||
.button {
|
||||
display: inline-block;
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
background: none;
|
||||
image-rendering: auto;
|
||||
image-rendering: crisp-edges;
|
||||
image-rendering: pixelated;
|
||||
image-rendering: -webkit-optimize-contrast;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="buttons">
|
||||
{{ $buttons := resources.Match "buttons/*" }}
|
||||
{{ if $buttons }}
|
||||
{{ range $index, $button := $buttons }}
|
||||
<img class="button" src="{{ $button.RelPermalink }}" alt="Button {{ $button.Name | path.Base }}" />
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<p>No buttons available.</p>
|
||||
{{ end }}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue