From 445257e027def660032cdad03d417f1b1a11b758 Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 15 Oct 2022 21:07:54 +0800 Subject: [PATCH] limit displayed packages to 16. add Load More button to add 16 more --- src/layouts/partials/detail-btn.html | 5 +- src/layouts/partials/package-grid.html | 73 +++++++++++++++++++++ src/layouts/partials/package-thumbnail.html | 7 +- 3 files changed, 79 insertions(+), 6 deletions(-) diff --git a/src/layouts/partials/detail-btn.html b/src/layouts/partials/detail-btn.html index f7cb2f2..eae6a94 100644 --- a/src/layouts/partials/detail-btn.html +++ b/src/layouts/partials/detail-btn.html @@ -35,7 +35,4 @@ - - - - \ No newline at end of file + diff --git a/src/layouts/partials/package-grid.html b/src/layouts/partials/package-grid.html index 9525eed..c56c275 100644 --- a/src/layouts/partials/package-grid.html +++ b/src/layouts/partials/package-grid.html @@ -18,15 +18,52 @@ {{- partial "package-thumbnail.html" .}} {{ end }} + +
+
+
SHOW MORE
+
+ + diff --git a/src/layouts/partials/package-thumbnail.html b/src/layouts/partials/package-thumbnail.html index a6ef00e..cf0b1a9 100644 --- a/src/layouts/partials/package-thumbnail.html +++ b/src/layouts/partials/package-thumbnail.html @@ -14,12 +14,14 @@

V {{- .version -}}

- {{- partial "detail-btn.html" . -}} + + {{- partial "detail-btn.html" . -}} +
@@ -32,6 +34,7 @@ div.card.card-thumbnail{ background-color: #1a1a1a; + transition: all .3s; } .card-img-top {