Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions portal/apps/main/templates/main/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
{% block title %}HackTJ Portal: About{% endblock %}

{% block content %}
<h1>About</h1>
<p>HackTJ Portal</p>
<h1>About the HackTJ Portal</h1>
<p>The HackTJ Portal is a web application that allows particpates of HackTJ to upload their projects, and for judges to evaluate project more effectively. It is built using Django, a high-level Python web framework, and Bootstrap, a popular front-end framework.</p>
<h2>Features</h2>
<p>Currently Portal has two main features: project submission and judging. Students can submit their projects to Portal and judges can easily access and evaluate them.</p>
{% endblock %}
16 changes: 16 additions & 0 deletions portal/apps/main/templates/main/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
{% extends "base.html" %}

{% block title %}HackTJ Portal{% endblock %}

{% block content %}
{% if request.user.is_authenticated %}
<div class="d-flex flex-column align-items-center">
<h3>Welcome to the HackTJ Portal {{ request.user.username }}!</h3>
</div>
{% else %}
<div class="d-flex flex-column align-items-center">
<p class="text-center">In order to use the HackTJ Portal, you must be logged in first.</p>
<a class="btn btn-success" href="{% url 'social:begin' 'google-oauth2' %}">
<i class="bi bi-google"></i>
Log In With Google
</a>
</div>
{% endif %}
{% endblock %}
5 changes: 5 additions & 0 deletions portal/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@
</div>
{% block script %}{% endblock %}
</body>
<footer class="w-full text-center border-t border-grey pin-b">
<div class="container mx-auto py-2">
<p>Made with ❤️ by the HackTJ Team and contributors — 2024</p>
</div>
</footer>
</html>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "portal"
version = "0.1.0"
description = ""
authors = ["Krishnan Shankar <[email protected]>"]
authors = ["Krishnan Shankar <[email protected]>", "Sami Elsayed <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
Expand Down