Skip to content

Commit

Permalink
Modified Navbar and it's various components accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
imApoorva36 committed Dec 29, 2023
1 parent 9310ffd commit a42b630
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 21 deletions.
40 changes: 31 additions & 9 deletions corpus/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,42 @@

<div class="navbar bg-primary text-primary-content sticky top-0 z-10">
<div class="navbar-start">
<a href="{% url 'index' %}" class="btn btn-ghost normal-case text-xl">Corpus</a>
</div>
<div class="navbar-center">
<a href="{% url 'index' %}" class="btn btn-ghost normal-case text-xl">Home</a>
<a href="{% url 'about_us' %}" class="btn btn-ghost normal-case text-xl">About Us</a>
<div class="dropdown">
<label tabindex="0" class="btn btn-ghost btn-circle">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h7"/>
</svg>
<label tabindex="0" class="btn btn-ghost normal-case text-xl">
SIGs
</label>
{% include "components/navbar_dropdown.html" %}
{% include "components/general_dropdown_sigs.html" %}
</div>
</div>
<div class="navbar-center">
<a href="{% url 'index' %}" class="btn btn-ghost normal-case text-xl">Corpus</a>
<div class="dropdown">
<label tabindex="0" class="btn btn-ghost normal-case text-xl">
Affinity Groups
</label>
{% include "components/general_dropdown_affinity_groups.html" %}
</div>
<div class="dropdown">
<label tabindex="0" class="btn btn-ghost normal-case text-xl">
Embedathon
</label>
{% include "components/general_dropdown_embedathon.html" %}
</div>
<a href="#" class="btn btn-ghost normal-case text-xl">Blog</a>
<a href="#" class="btn btn-ghost normal-case text-xl">Gyan</a>
<a href="#" class="btn btn-ghost normal-case text-xl">Achievements</a>
<a href="#" class="btn btn-ghost normal-case text-xl">Virtual Expo</a>
</div>
<div class="navbar-end">

{# {% if user.is_authenticated %}#}
<!-- <div class="w-max dropdown-content menu menu-sm mt-3 z-[1] p-2 shadow bg-base-100 rounded-box flex flex-row bg-primary text-primary-content mx-2 my-2 px-5 py-5">
{# {% include "components/internal_dropdown.html" %}#}
</div> -->
{# {% endif %}#}

{% include "components/navbar_right.html" %}
</div>
</div>
Expand Down
11 changes: 0 additions & 11 deletions corpus/templates/components/general_dropdown.html

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="w-max dropdown-content menu menu-sm mt-3 z-[1] p-2 shadow bg-base-100 rounded-box flex flex-row bg-primary text-primary-content mx-2 my-2 px-5 py-5">
<ul class="mx-2">
<li><a href="{% url 'sig' sig_slug='wie' %}">WiE</a></li>
<li><a href="{% url 'sig' sig_slug='piston' %}">SIGHT</a></li>
</ul>
</div>
6 changes: 6 additions & 0 deletions corpus/templates/components/general_dropdown_embedathon.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="w-max dropdown-content menu menu-sm mt-3 z-[1] p-2 shadow bg-base-100 rounded-box flex flex-row bg-primary text-primary-content mx-2 my-2 px-5 py-5">
<ul class="mx-2">
<li><a href="{% url 'embedathon_home' %}">Home</a></li>
<li><a href="{% url 'embedathon_index' %}">Dashboard</a></li>
</ul>
</div>
7 changes: 7 additions & 0 deletions corpus/templates/components/general_dropdown_sigs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<div class="w-max dropdown-content menu menu-sm mt-3 z-[1] p-2 shadow bg-base-100 rounded-box flex flex-row bg-primary text-primary-content mx-2 my-2 px-5 py-5">
<ul class="mx-2">
<li><a href="{% url 'sig' sig_slug='compsoc' %}">CompSoc</a></li>
<li><a href="{% url 'sig' sig_slug='diode' %}">Diode</a></li>
<li><a href="{% url 'sig' sig_slug='piston' %}">Piston</a></li>
</ul>
</div>
2 changes: 1 addition & 1 deletion corpus/templates/components/navbar_dropdown.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="w-max dropdown-content menu menu-sm mt-3 z-[1] p-2 shadow bg-base-100 rounded-box flex flex-row bg-primary text-primary-content mx-2 my-2 px-5 py-5">
{% include "components/general_dropdown.html" %}
<!-- {% include "components/general_dropdown.html" %} -->

{# {% if user.is_authenticated %}#}
{# {% include "components/internal_dropdown.html" %}#}
Expand Down

0 comments on commit a42b630

Please sign in to comment.