Skip to content

Commit fe911d3

Browse files
Refine homepage, add logo and favicon, added contribution link, deleted unnecessary print statements (#117)
1 parent 53da854 commit fe911d3

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

Algolyzer/home/templates/home/home.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ <h1 class="text-5xl md:text-8xl font-poppins font-bold ">Learn AI-ML </h1>
2222
<p class="p-6 max-w-lg font-bold lg:text-lg">Become the next Algo Expert with <span class="">Algolyzer</span></p>
2323

2424
<div class="flex gap-2 lg:gap-5">
25-
<button class="btn btn-sm lg:btn-md lg:btn-wide btn-outline">Contribute</button>
26-
<button class="btn btn-sm lg:btn-md lg:btn-wide btn-primary">Get Started</button>
25+
<a href="https://github.com/priyanshu-batham/Algolyzer" class="btn btn-sm lg:btn-md lg:btn-wide btn-outline">Contribute</a>
26+
<a href="{% url 'dashboard' %}" class="btn btn-sm lg:btn-md lg:btn-wide btn-primary">Get Started</a>
2727
</div>
2828
</div>
2929
</div>

Algolyzer/quiz/views.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ def quiz_question(request, topic_id):
114114

115115
def quiz_results(request, topic_id):
116116
topic = get_object_or_404(Topic, id=topic_id)
117-
# print(topic)
118117
quiz_progress = get_object_or_404(QuizProgress, topic=topic, user=request.user)
119118
if not quiz_progress.completed:
120119
return redirect("quiz_question", topic_id=topic.id)
@@ -139,11 +138,9 @@ def quiz_results(request, topic_id):
139138
}
140139
# Add XP to the user's profile based on the topic difficulty
141140
user_profile = UserProfile.objects.get(user=request.user)
142-
print(topic.difficulty)
143141
xp_to_add = (
144142
XP_REWARDS.get(topic.difficulty, 0) * score
145143
) # Default to 0 if difficulty is not found
146-
print(xp_to_add * score)
147144
user_profile.add_xp(xp_to_add)
148145

149146
context = {

Algolyzer/static/algolyzer.png

122 KB
Loading

Algolyzer/templates/base.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<!-- Link to the main CSS file -->
99
{% load static %}
1010
<link rel="stylesheet" href="{% static 'output.css' %}">
11-
11+
<link rel="icon" type="image/x-icon" href="{% static 'algolyzer.png' %}">
1212
<!-- JS scripts -->
1313
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
1414
<!-- Additional head content can be added by child templates -->
@@ -52,7 +52,9 @@
5252
</li>
5353
</ul>
5454
</div>
55-
<a href="{%url "home" %}" class="btn btn-ghost text-xl">ALG</a>
55+
<a href="{%url "home" %}" class="btn btn-ghost text-xl">
56+
<img alt="home" class='w-full h-full object-cover' src="{% static 'algolyzer.png' %}" />
57+
</a>
5658
</div>
5759
<div class="navbar-center hidden lg:flex">
5860

0 commit comments

Comments
 (0)