diff options
| author | 2025-11-04 14:49:41 +0300 | |
|---|---|---|
| committer | 2025-11-04 14:49:41 +0300 | |
| commit | 77a43ebb42d80e3c6bbdf39b16a38f0f3ec4b30c (patch) | |
| tree | a098615be83bf760a4643e5752f990ef9f29fe98 /views/pages | |
| parent | ce86bf8e7a32a98aeab696bf38b0cc2f4ada4905 (diff) | |
| parent | 05d7fe78450219e85ebe9c4372a20f8edd264d8d (diff) | |
| download | web-77a43ebb42d80e3c6bbdf39b16a38f0f3ec4b30c.tar.gz web-77a43ebb42d80e3c6bbdf39b16a38f0f3ec4b30c.zip | |
v0.11.3 (#20)v0.11.3
- [fix: correctly pack galleries on
mobiles](https://github.com/SayaAndy/saya-today-web/commit/c52a07e3fa738135eaa5272d9f115e4740b60c61)
- [feat: move published date info from header into start of the
body](https://github.com/SayaAndy/saya-today-web/commit/05d7fe78450219e85ebe9c4372a20f8edd264d8d)
- feat: show action date on any screen
- feat: show short description together with dates in page's body
- feat: switch masonry to packery
- debug: log app shutdown more
Diffstat (limited to 'views/pages')
| -rw-r--r-- | views/pages/blog-page.html | 12 | ||||
| -rw-r--r-- | views/pages/language-pick.html | 2 |
2 files changed, 10 insertions, 4 deletions
diff --git a/views/pages/blog-page.html b/views/pages/blog-page.html index 7170ad8..f95c23b 100644 --- a/views/pages/blog-page.html +++ b/views/pages/blog-page.html @@ -1,9 +1,15 @@ {{ define "body" }} <div class="bg-background-light flex flex-col inset-shadow-[0_0_0.4rem_black] px-8 py-4 overflow-y-auto"> <p class="max-xs:block [@media(max-height:32rem)]:block hidden font-andika text-2xl font-bold italic text-main-hard tracking-[.0125rem] mb-1">{{ .Title }}</p> - <p class="max-xs:block [@media(max-height:32rem)]:block hidden grow text-lg font-andika text-secondary">{{ .L.Metadata.Published }}: {{ .PublishedDate }}</p> - <p class="max-xs:block [@media(max-height:32rem)]:block hidden grow text-lg font-andika text-secondary">{{ .L.Metadata.Action }}: {{ .ActionDate }}</p> - <hr class="max-xs:block [@media(max-height:32rem)]:block hidden border-t-2 border-dotted border-main-hard mt-1 mb-2 w-full ml-auto mr-auto"> + <p class="block grow text-lg font-andika text-secondary"> + <b>{{ .L.Metadata.Published }}</b>: + <span hx-get="/api/v1/tz" hx-vals='js:{timestamp: "{{ .PublishedDate }}", tz: clientTimeZone}' hx-target="this" hx-swap="innerHTML" hx-trigger="load"> + {{ .PublishedDate }} + </span> + </p> + <p class="block grow text-lg font-andika text-secondary"><b>{{ .L.Metadata.Action }}</b>: {{ .ActionDate }}</p> + <p class="block grow text-md font-andika italic text-main-hard">{{ .ShortDescription }}</p> + <hr class="block border-t-2 border-dotted border-main-hard mt-1 mb-2 w-full ml-auto mr-auto"> {{ .ParsedMarkdown }} {{- if .MapLocationX }} <hr class="border-t-3 border-dotted border-main-hard mt-1 mb-2 w-[80%] ml-auto mr-auto"> diff --git a/views/pages/language-pick.html b/views/pages/language-pick.html index 5a9d229..775c18e 100644 --- a/views/pages/language-pick.html +++ b/views/pages/language-pick.html @@ -1,5 +1,5 @@ {{ define "body" }} -<div class="flex flex-col justify-center text-3xl h-[100%]"> +<div class="flex flex-col justify-center text-3xl h-full"> {{- range .AvailableLanguages }} <hr class="border-t-2 border-dotted border-main-hard"> <div class="nth-[2n+1_of_div]:bg-(--background-medium-color)/50 nth-[2n_of_div]:bg-(--background-light-color)/50 p-2.5 flex flex-row justify-center justify-items-center"> |