Skip to content

Commit

Permalink
style next hint
Browse files Browse the repository at this point in the history
  • Loading branch information
Trentiumz committed Dec 10, 2023
1 parent 585bcb5 commit 620b1a2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
21 changes: 16 additions & 5 deletions core/static/core/qr.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,21 @@ main {
margin-bottom: 2rem;
}

.hint {
opacity: 90%;
}

.hint,
.hint-top {
font-size: 1.8rem;
text-align: center;
text-align: left;
}

.hint-content {
opacity: 90%;
font-weight: lighter;
font-size: 1.5rem;
}

.text-container{
padding-left: 2em;
padding-right: 2em;
}

.padding {
Expand All @@ -30,3 +37,7 @@ main {
display: grid;
place-items: center;
}

.separator {
border: 1.5px solid white;
}
14 changes: 8 additions & 6 deletions core/templates/core/qr.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@
{% block body %}
<div class="text-container">
{% if not first and qr is not None %}
<div>
<div class="hint-top">
{% translate "your team found:" %} <br />
{% hint qr request.user.current_team as hint %}
<span class="hint">{{ hint |mistune }}</span>
<span class="hint-content">{{ hint |mistune }}</span>
{% if request.user.is_superuser %}
<br />({{ qr }} <a class="link" href="{% url 'admin:core_qrcode_change' object_id=qr.id %}">{% translate "change" %}</a>)
<span style="font-size: 1rem">({{ qr }} <a class="link" href="{% url 'admin:core_qrcode_change' object_id=qr.id %}">{% translate "change" %}</a>)</span>
{% endif %}
</div>
<hr class="separator"/>
{% endif %}
{% if not offpath %}
<div class="hint">
Expand All @@ -52,9 +53,9 @@
</div>
{% if nexthint %}
{% hint nexthint request.user.current_team as hint %}
<span class="hint">{{ hint|mistune }}</span>
<span class="hint-content">{{ hint|mistune }}</span>
{% if request.user.is_superuser %}
<br />({{ nexthint }} <a class="link" href="{% url 'admin:core_qrcode_change' object_id=nexthint.id %}">change</a>)
<span style="font-size: 1rem">({{ nexthint }} <a class="link" href="{% url 'admin:core_qrcode_change' object_id=nexthint.id %}">change</a>)</span>
{% endif %}

{% if logic_hint %}
Expand All @@ -68,7 +69,8 @@
{% ending_block request.user.current_team.hunt %}
{% translate 'Oh ho? What lieth there? Tis the light at the end of the tunnel! <br /> Congratulations valiant scavenger and thank you for playing!' %}
{% endif %}
</div></div> <!-- Why does this exist.. -->
</div>
</div> <!-- Why does this exist.. -->
{% else %}
{% translate 'Incorrect QR code, please read your hint again or contact an organizer' %}

Expand Down

0 comments on commit 620b1a2

Please sign in to comment.