Skip to content

Commit

Permalink
update shared album photo styles
Browse files Browse the repository at this point in the history
  • Loading branch information
broneks committed Nov 30, 2024
1 parent f6719a0 commit 5ed8922
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/shared_album.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{{ template "head" . }}

<div style="max-width: 600px; margin: 10% auto 0; padding: 16px;">
<div style="max-width: 600px; margin: 3rem auto 0; padding: 1rem;">
<header>
<h1>{{.Album.Name.String}}</h1>
<time>{{.Album.CreatedAt.Time}}</time>

{{if .CoverPhoto}}
<img src="{{.CoverPhoto.Url}}" alt="" style="max-width: 600px;" loading="lazy" draggable="false" />
<img src="{{.CoverPhoto.Url}}" alt="" style="width: 100%; height: auto; max-width: 600px;" loading="lazy" draggable="false" />
{{end}}
</header>

<h3>Photos:</h3>
<ul>
{{range .Photos}}
<li><img src="{{.Url}}" alt="{{.Filename}}" style="max-width: 600px;" loading="lazy" draggable="false" /></li>
<li><img src="{{.Url}}" alt="{{.Filename}}" style="width: 100%; height: auto; max-width: 600px;" loading="lazy" draggable="false" /></li>
{{end}}
</ul>
</div>
Expand Down

0 comments on commit 5ed8922

Please sign in to comment.