html changes
This commit is contained in:
@@ -454,6 +454,7 @@ def project_detail(request, slug):
|
|||||||
'negative': rating_negative,
|
'negative': rating_negative,
|
||||||
'total': rating_total,
|
'total': rating_total,
|
||||||
'percent': rating_percent,
|
'percent': rating_percent,
|
||||||
|
'negative_percent': 100 - rating_percent,
|
||||||
},
|
},
|
||||||
'user_rating': user_rating,
|
'user_rating': user_rating,
|
||||||
'comments': comments,
|
'comments': comments,
|
||||||
|
|||||||
@@ -3607,8 +3607,9 @@ a.deletelink {
|
|||||||
/* Gate page */
|
/* Gate page */
|
||||||
.gate-main {
|
.gate-main {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
flex-direction: column;
|
||||||
align-items: flex-start;
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
padding: 3rem 1rem;
|
padding: 3rem 1rem;
|
||||||
min-height: 60vh;
|
min-height: 60vh;
|
||||||
}
|
}
|
||||||
@@ -3642,6 +3643,15 @@ a.deletelink {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.gate-error { color: #f38ba8 !important; font-weight: 600; margin-top: 0.5rem; }
|
.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 tab */
|
||||||
.rating-summary { margin-bottom: 1rem; }
|
.rating-summary { margin-bottom: 1rem; }
|
||||||
|
|||||||
@@ -20,5 +20,9 @@
|
|||||||
<button type="submit">Enter</button>
|
<button type="submit">Enter</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
<p class="gate-disclaimer">
|
||||||
|
<i class="fas fa-exclamation-triangle"></i>
|
||||||
|
This page contains +18 content. By entering the master password you acknowledge that you are an adult.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<div class="home-hero">
|
<div class="home-hero">
|
||||||
<div class="home-hero-inner">
|
<div class="home-hero-inner">
|
||||||
<h1>Packs Site</h1>
|
<h1>Packs Site</h1>
|
||||||
<p>Hosted datapacks for Needs Of Nature & Animation Director.</p>
|
<p>Hosted datapacks for the Needs Of Nature mod.</p>
|
||||||
<p class="home-hero-sub">Browse and download packs shared by the community. Upload your own once you have a creator account.</p>
|
<p class="home-hero-sub">Browse and download packs shared by the community. Upload your own once you have a creator account.</p>
|
||||||
<div class="home-hero-actions">
|
<div class="home-hero-actions">
|
||||||
<a href="{% url 'library:browse' %}" class="btn btn-primary"><i class="fas fa-search"></i> Browse packs</a>
|
<a href="{% url 'library:browse' %}" class="btn btn-primary"><i class="fas fa-search"></i> Browse packs</a>
|
||||||
|
|||||||
@@ -528,7 +528,7 @@
|
|||||||
<span class="rating-count">{{ rating_stats.total }} vote{{ rating_stats.total|pluralize }} · {{ rating_stats.positive }} up · {{ rating_stats.negative }} down</span>
|
<span class="rating-count">{{ rating_stats.total }} vote{{ rating_stats.total|pluralize }} · {{ rating_stats.positive }} up · {{ rating_stats.negative }} down</span>
|
||||||
<div class="rating-bar">
|
<div class="rating-bar">
|
||||||
<div class="rating-bar-up" style="width: {{ rating_stats.percent }}%"></div>
|
<div class="rating-bar-up" style="width: {{ rating_stats.percent }}%"></div>
|
||||||
<div class="rating-bar-down" style="width: {{ rating_stats.negative }}%"></div>
|
<div class="rating-bar-down" style="width: {{ rating_stats.negative_percent }}%"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
Reference in New Issue
Block a user