Skip to content

Commit

Permalink
Better /i index page
Browse files Browse the repository at this point in the history
  • Loading branch information
rcy committed Oct 25, 2024
1 parent b9fe0ef commit 619d53f
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions web/templates/generatedimages.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,13 @@
max-width: 1000px;
margin: auto;
}
img {
display: block;
max-height: 60vh;
margin: auto;
transition: max-height 100ms;
transition-timing-function: ease-in-out;
}
img:hover {
max-height: 100vh;
}
</style>
</head>
<body>
{{range .images}}
<img src="/images/{{.ID}}.png" alt="{{.Prompt}}">
<a href="/i/{{.ID}}">
<img src="/images/{{.ID}}.png" alt="{{.Prompt}}" width="128" height="128" loading="lazy">
</a>
{{end}}
</body>
</html>

0 comments on commit 619d53f

Please sign in to comment.