From 29c5d778e2dc791d53e30fffbb5ac9894b1fcbc8 Mon Sep 17 00:00:00 2001 From: perennial Date: Wed, 4 Dec 2024 18:29:07 +1100 Subject: [PATCH] some artwork page restyling --- assets/views/fragments/artwork.jet.html | 80 ++++++++++++++----------- 1 file changed, 44 insertions(+), 36 deletions(-) diff --git a/assets/views/fragments/artwork.jet.html b/assets/views/fragments/artwork.jet.html index 06ada9d..9d52808 100644 --- a/assets/views/fragments/artwork.jet.html +++ b/assets/views/fragments/artwork.jet.html @@ -104,14 +104,16 @@
{* Artist avatar, artwork name, and artist name *}
+

{{ .Title }}

@@ -201,32 +203,24 @@
- {* View Pixiv original button *} -
- - - - View on pixiv.net - - -
+
{* Artwork description *} {* Rendered conditionally to avoid a weird empty p element that messes with spacing *} {{- if .Description }} -

{{- raw: parsePixivRedirect(.Description) }}

+

{{- raw: parsePixivRedirect(.Description) }}

{{- end }} {* Tag information *} {* text-start ensures that the content within non-emphasized tags is left-aligned while still maintaining proper wrapping behavior *} -
+
{{- if .AiType == 2 }} - AI-generated + AI-generated {{- end }} {{- range .Tags }} {* NOTE: early block to catch the R-18 tag *} {{- if isEmphasize(.Name) }} - {{ .Name }} + {{ .Name }} {{- end }} {{- end }} {{- range .Tags }} @@ -234,7 +228,7 @@ {* Intentionally empty to not render anything to avoid duplication *} {{- else }} {* NOTE: tried styling these tags similarly to the "View on pixiv.net" button, but even then they still draw too much attention and break visual hierarchy *} -
+
#{{ .Name }} {{- if .TranslatedName }} @@ -247,25 +241,39 @@ {{- end }}
+
+ {* Other artwork information (views, bookmarks, likes, creation date) *} -
-
- {{- .Views }} +
+
+
+ {{- .Views }} +
+
+ {{- .Bookmarks }} +
+
+ {{- .Likes }} +
+
+ {{- parseTime: .Date }} +
+ {{- if .Images[0].Width != 0 && .Images[0].Height != 0 }} +
+ {{ .Images[0].Width }}x{{ .Images[0].Height }} +
+ {{- end }}
-
- {{- .Bookmarks }} + + {* View Pixiv original button *} + -
- {{- .Likes }} -
-
- {{- parseTime: .Date }} -
- {{- if .Images[0].Width != 0 && .Images[0].Height != 0 }} -
- {{ .Images[0].Width }}x{{ .Images[0].Height }} -
- {{- end }}
{{- if .SeriesNavData }}