mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
finally get novels on the user home page (wip styling)
This commit is contained in:
@@ -121,22 +121,24 @@
|
||||
{{- if .Category == "" || .Category == "artworks" }}
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
{* NOTE: using sentence case here to be more consistent with the rest of our UI, even though pixiv uses title case *}
|
||||
<h2 class="d-flex align-items-baseline mb-0">Illustrations and manga<span class="fs-6 bg-charcoal-surface1 rounded px-2 py-1 ms-2">{{ .User.CountInfo.All }}</span></h2>
|
||||
<h2 class="d-flex align-items-baseline mb-0">Works<span class="fs-6 bg-charcoal-surface1 rounded px-2 py-1 ms-2">{{ .User.CountInfo.All }}</span></h2>
|
||||
</div>
|
||||
|
||||
{{ if .User.Artworks != 0 }}
|
||||
<h2 class="d-flex align-items-baseline">Illustrations and manga<span class="fs-6 bg-charcoal-surface1 rounded px-2 py-1 ms-2">{{ .User.CountInfo.Illustrations + .User.CountInfo.Manga }}</span></h2>
|
||||
<div class="row row-cols-2 row-cols-md-4 row-cols-lg-6 g-4">
|
||||
{{- include "fragments/small-tn" .User.Artworks }}
|
||||
</div>
|
||||
{{- end }}
|
||||
|
||||
{* TODO: the following doesn't do anything; .User.Novels isn't populated unless UserArtCategory is UserArt_Novel *}
|
||||
{{ if .User.Novels != 0 }}
|
||||
<hr class="my-4">
|
||||
<h2 class="d-flex align-items-baseline">Novels<span class="fs-6 bg-charcoal-surface1 rounded px-2 py-1 ms-2">{{ .User.CountInfo.Novels }}</span></h2>
|
||||
<div class="row row-cols-1 row-cols-lg-2 g-4">
|
||||
{{- range .User.Novels }}
|
||||
<div class="col mt-1">
|
||||
<div class="custom-novel-card bg-transparent p-3 py-4 thumbnail-hover-dark">
|
||||
{{- include "fragments/novel-tn" .User.Novels }}
|
||||
{{- include "fragments/novel-tn" . }}
|
||||
</div>
|
||||
<hr class="my-0">
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user