From 3a42657a3a0bb3d1abd395cb931c421d82a133b1 Mon Sep 17 00:00:00 2001 From: JakeBreath Date: Wed, 5 Aug 2026 14:29:19 -0500 Subject: [PATCH] html changes --- nonpacks/library/views.py | 1 + nonpacks/static/css/style.css | 14 ++++++++++++-- nonpacks/templates/landing/gate.html | 4 ++++ nonpacks/templates/landing/home.html | 2 +- nonpacks/templates/library/project_detail.html | 2 +- 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/nonpacks/library/views.py b/nonpacks/library/views.py index caf0eb3..f71170b 100644 --- a/nonpacks/library/views.py +++ b/nonpacks/library/views.py @@ -454,6 +454,7 @@ def project_detail(request, slug): 'negative': rating_negative, 'total': rating_total, 'percent': rating_percent, + 'negative_percent': 100 - rating_percent, }, 'user_rating': user_rating, 'comments': comments, diff --git a/nonpacks/static/css/style.css b/nonpacks/static/css/style.css index b9dc05f..74861ab 100644 --- a/nonpacks/static/css/style.css +++ b/nonpacks/static/css/style.css @@ -3607,8 +3607,9 @@ a.deletelink { /* Gate page */ .gate-main { display: flex; - justify-content: center; - align-items: flex-start; + flex-direction: column; + align-items: center; + justify-content: flex-start; padding: 3rem 1rem; min-height: 60vh; } @@ -3642,6 +3643,15 @@ a.deletelink { cursor: pointer; } .gate-error { color: #f38ba8 !important; font-weight: 600; margin-top: 0.5rem; } +.gate-disclaimer { + margin: 1rem 0 0; + color: var(--md-sys-color-on-surface-variant, #a6adc8); + font-size: 0.8rem; + text-align: center; + max-width: 380px; + line-height: 1.4; +} +.gate-disclaimer i { color: #f38ba8; margin-right: 0.3rem; } /* Rating tab */ .rating-summary { margin-bottom: 1rem; } diff --git a/nonpacks/templates/landing/gate.html b/nonpacks/templates/landing/gate.html index e4b1c81..6659362 100644 --- a/nonpacks/templates/landing/gate.html +++ b/nonpacks/templates/landing/gate.html @@ -20,5 +20,9 @@ +

+ + This page contains +18 content. By entering the master password you acknowledge that you are an adult. +

{% endblock %} diff --git a/nonpacks/templates/landing/home.html b/nonpacks/templates/landing/home.html index b123428..c835428 100644 --- a/nonpacks/templates/landing/home.html +++ b/nonpacks/templates/landing/home.html @@ -7,7 +7,7 @@

Packs Site

-

Hosted datapacks for Needs Of Nature & Animation Director.

+

Hosted datapacks for the Needs Of Nature mod.

Browse and download packs shared by the community. Upload your own once you have a creator account.

Browse packs diff --git a/nonpacks/templates/library/project_detail.html b/nonpacks/templates/library/project_detail.html index 015013e..f74fbdc 100644 --- a/nonpacks/templates/library/project_detail.html +++ b/nonpacks/templates/library/project_detail.html @@ -528,7 +528,7 @@ {{ rating_stats.total }} vote{{ rating_stats.total|pluralize }} · {{ rating_stats.positive }} up · {{ rating_stats.negative }} down
-
+
{% else %}