mirror of
https://github.com/tjsga/scavenger-hunt-2021.git
synced 2025-04-09 22:10:18 -04:00
fix: fixed cosmetic bugs, removed footer, and added support page
This commit is contained in:
parent
244503d305
commit
5cf5b3d2c8
|
@ -8,5 +8,6 @@ urlpatterns = [
|
|||
path("", views.index, name="index"),
|
||||
path("overview/", views.overview, name="overview"),
|
||||
path("validate/", views.validate_flag, name="validate_flag"),
|
||||
path("support/", views.support, name="support"),
|
||||
path("challenge/<int:challenge_id>", views.challenge_detail, name="challenge_detail")
|
||||
]
|
|
@ -74,4 +74,7 @@ def validate_flag(request):
|
|||
return JsonResponse(response)
|
||||
else:
|
||||
return PermissionDenied
|
||||
|
||||
|
||||
@login_required
|
||||
def support(request):
|
||||
return render(request, 'main/support.html')
|
|
@ -1,43 +1,65 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% load static %}
|
||||
|
||||
{% block root %}
|
||||
<div id='root'>
|
||||
<div class='row header'>
|
||||
<div class='col-lg-5 col-md-6 col-sm-12 col-xs-12'>
|
||||
<a href="{% url 'main:index' %}">
|
||||
<img class='header_img' src="{% static 'img/favicon.png' %}"/>
|
||||
<h1 class='header_title'>Hoco Hunt 2021</h1>
|
||||
</a>
|
||||
</div>
|
||||
<div class='col-lg-2 col-md-1'></div>
|
||||
<div class='col-lg-5 col-md-5 col-sm-12 col-xs-12 nav_section'>
|
||||
<div class='dropdown header_nav'>
|
||||
<button class='btn dropdown-toggle dropdown-btn' data-toggle='dropdown'>
|
||||
<i class='fas fa-user'></i>
|
||||
<span class='caret'></span>
|
||||
</button>
|
||||
<ul class='dropdown-menu dropdown-menu-right'>
|
||||
{% if user.is_authenticated %}
|
||||
<li><h3 class='drop-item'>{{ user.username }}</h3></li>
|
||||
<li><a class='drop-item' href="{% url 'main:overview' %}"><h3 class='drop-item'>Overview</h3></a></li>
|
||||
{% if user.is_participant %}
|
||||
<li><a class='drop-item' href="{% url 'main:index' %}"><h3 class='drop-item'>Challenges</h3></a></li>
|
||||
{% endif %}
|
||||
<li><a class='drop-item' href="{% url 'auth:logout' %}"><h3 class='drop-item'>Logout</h3></a></li>
|
||||
{% else %}
|
||||
<li><a class='drop-item' href="{% url 'auth:login' %}"><h3 class='drop-item'>Login</h3></a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>cd
|
||||
</div>
|
||||
<script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js' integrity='sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1' crossorigin='anonymous'></script>
|
||||
<script src='https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js' integrity='sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM' crossorigin='anonymous'></script>
|
||||
{% block main %}{% endblock %}
|
||||
<div class="footer text-right">
|
||||
This application was developed by Lauren Delwiche (2022) and Rushil Umaretiya (2023).
|
||||
</div>
|
||||
{% extends 'base.html' %} {% load static %} {% block root %}
|
||||
<div id="root">
|
||||
<div class="row header">
|
||||
<div class="col-lg-5 col-md-6 col-sm-12 col-xs-12">
|
||||
<a href="{% url 'main:index' %}">
|
||||
<img class="header_img" src="{% static 'img/favicon.png' %}" />
|
||||
<h1 class="header_title">Hoco Hunt 2021</h1>
|
||||
</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
<div class="col-lg-2 col-md-1"></div>
|
||||
<div class="col-lg-5 col-md-5 col-sm-12 col-xs-12 nav_section">
|
||||
<div class="dropdown header_nav">
|
||||
<button class="btn dropdown-toggle dropdown-btn" data-toggle="dropdown">
|
||||
<i class="fas fa-user"></i>
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
{% if user.is_authenticated %}
|
||||
<li><h3 class="drop-item">{{ user.username }}</h3></li>
|
||||
<li>
|
||||
<a class="drop-item" href="{% url 'main:overview' %}"
|
||||
><h3 class="drop-item">Overview</h3></a
|
||||
>
|
||||
</li>
|
||||
{% if user.is_participant %}
|
||||
<li>
|
||||
<a class="drop-item" href="{% url 'main:index' %}"
|
||||
><h3 class="drop-item">Challenges</h3></a
|
||||
>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li>
|
||||
<a class="drop-item" href="{% url 'main:support' %}"
|
||||
><h3 class="drop-item">Support</h3></a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<a class="drop-item" href="{% url 'auth:logout' %}"
|
||||
><h3 class="drop-item">Logout</h3></a
|
||||
>
|
||||
</li>
|
||||
{% else %}
|
||||
<li>
|
||||
<a class="drop-item" href="{% url 'auth:login' %}"
|
||||
><h3 class="drop-item">Login</h3></a
|
||||
>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script
|
||||
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
|
||||
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script
|
||||
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
|
||||
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
{% block main %}{% endblock %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
44
hunt/templates/main/support.html
Normal file
44
hunt/templates/main/support.html
Normal file
|
@ -0,0 +1,44 @@
|
|||
{% extends 'base_with_nav.html' %} {% load static %} {% block main %}
|
||||
<a href="{% url 'main:index' %}"
|
||||
><button class="btn btn-secondary float-left m-md-2">Back</button>
|
||||
</a>
|
||||
<div class="col-md-6 col-12 m-auto mt-md-3 p-md-5">
|
||||
<h1>Looks like you need some help!</h1>
|
||||
<div class="text-left">
|
||||
<h3>How does this work?</h3>
|
||||
<p>
|
||||
This year's scavenger hunt features a CTF-style challenge setup, where
|
||||
there are a multitude of different problems that students will take online
|
||||
and in person to find and solve. Once you solve a problem correctly, it
|
||||
will solve it for your entire class, so make sure somebody in your class
|
||||
hasn't already solved a problem that you want to work on. Besides that,
|
||||
read problems, collect codes, and grab points!
|
||||
</p>
|
||||
</div>
|
||||
<div class="text-left">
|
||||
<h3>How do I submit a challenge?</h3>
|
||||
<p>
|
||||
Each challenge will result in a flag, or a code, you can submit these on
|
||||
the "Challenges" tab under the top right dropdown.
|
||||
</p>
|
||||
</div>
|
||||
<div class="text-left">
|
||||
<h3>How do I know if I've got it right? Is the website just wrong?</h3>
|
||||
<p>
|
||||
There is a single flag for every problem, and the formatting will be
|
||||
consistent for every problem. If you have a strong inclination that you
|
||||
have the correct answer and our website is incorrect, feel free to reach
|
||||
out to our organizers.
|
||||
</p>
|
||||
</div>
|
||||
<div class="text-left">
|
||||
<h3>Who's organizing this thing?</h3>
|
||||
<p>
|
||||
This year's Scavenger Hunt is hosted by the TJ SGA and organized by Rushil
|
||||
Umaretiya (2023), Lauren Delwiche (2022), Angela Sidhu (2023), and Aidan
|
||||
Ludwig (2023). Feel free to reach out to our organizers, SGA, or your
|
||||
class officers if you have any further questions! Good luck!
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user