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 @@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.