Skip to content

Commit 0c4b2d3

Browse files
committed
move faqs to /attend/faqs and preserve back links
Signed-off-by: Nabarun Pal <[email protected]>
1 parent f667174 commit 0c4b2d3

File tree

3 files changed

+369
-362
lines changed

3 files changed

+369
-362
lines changed

src/_includes/navbar.njk

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{"name": "Scholarships", "link": "attend/scholarships"},
1616
{"name": "Accessibility", "link": "attend/accessibility"},
1717
{"name": "Health and Safety", "link": "attend/health-and-safety"},
18-
{"name": "FAQ's", "link": "about/faqs"}
18+
{"name": "FAQ's", "link": "attend/faqs"}
1919
]
2020
},
2121
{
@@ -57,41 +57,41 @@
5757
"isExternal": true
5858
}
5959
] %}
60-
60+
6161
<input type="radio" id="desktop-menu-close-all" name="desktop-menu-radio" class="sr-only hidden" checked>
6262
{% for item in menuItems %}
6363
{% if item.hasSubmenu %}
6464
<input type="radio" id="desktop-menu-radio-{{ loop.index }}" name="desktop-menu-radio" class="sr-only hidden">
6565
{% endif %}
6666
{% endfor %}
67-
67+
6868
{% for item in menuItems %}
6969
<li class="relative">
7070
{% if item.hasSubmenu %}
71-
<label for="desktop-menu-radio-{{ loop.index }}"
71+
<label for="desktop-menu-radio-{{ loop.index }}"
7272
class="flex items-center gap-1 py-2 px-3 text-white hover:text-[#D7FF7B] text-base font-normal font-['Acid_Grotesk'] leading-tight transition-colors duration-200 cursor-pointer nav-link">
7373
{{ item.name }}
7474
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6" class="ml-1 fill-current text-gray-400 transition-transform duration-200">
7575
<path d="M1 1L5 5L9 1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
7676
</svg>
7777
</label>
78-
78+
7979
<label for="desktop-menu-close-all" class="fixed inset-0 bg-transparent z-0 hidden"></label>
80-
80+
8181
<div class="absolute left-0 top-full mt-1 w-auto invisible opacity-0 transition-all duration-200 z-10 transform origin-top scale-95 dropdown-glass rounded-lg shadow-lg">
82-
<div class="w-full rounded-lg border border-white/10">
83-
<div class="w-full flex flex-col">
82+
<div class="w-full rounded-lg border border-white/10">
83+
<div class="w-full flex flex-col">
8484
{% for subitem in item.submenu %}
85-
<div class="w-full p-4 bg-white/90 hover:bg-pycon-lime border-b border-black/10 flex justify-between items-center transition-colors duration-150 first:rounded-t-lg last:rounded-b-lg last:border-b-0">
85+
<div class="w-full p-4 bg-white/90 hover:bg-pycon-lime border-b border-black/10 flex justify-between items-center transition-colors duration-150 first:rounded-t-lg last:rounded-b-lg last:border-b-0">
8686
<a href="{{ env.baseUrl }}{{ subitem.link }}" class="text-gray-800 hover:text-[#4662ff] text-sm font-medium font-['Inter'] leading-tight no-underline dropdown-item block w-full">
8787
{{ subitem.name }}
88-
</a>
89-
<div class="size-5 relative overflow-hidden">
90-
<div class="bg-gray-400 hover:bg-pycon-blue w-[5.49px] h-[9.31px] left-[7.50px] top-[5.35px] absolute transition-colors duration-150"></div>
91-
</div>
88+
</a>
89+
<div class="size-5 relative overflow-hidden">
90+
<div class="bg-gray-400 hover:bg-pycon-blue w-[5.49px] h-[9.31px] left-[7.50px] top-[5.35px] absolute transition-colors duration-150"></div>
91+
</div>
9292
</div>
9393
{% endfor %}
94-
</div>
94+
</div>
9595
</div>
9696
</div>
9797
{% else %}
@@ -116,7 +116,7 @@
116116
<a href="{{ env.baseUrl }}" class="flex items-center z-20">
117117
<img src="{{ env.baseUrl }}img/logo.png" alt="PyCon India 2025" class="h-8 w-auto">
118118
</a>
119-
119+
120120
<input type="checkbox" id="mobile-menu-checkbox" class="hidden">
121121
<label for="mobile-menu-checkbox" class="cursor-pointer z-50 hover:bg-white/30 p-2 rounded-full transition-all duration-300 inline-flex items-center justify-center">
122122
<svg width="24" height="22" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -154,7 +154,7 @@
154154
</svg>
155155
</button>
156156
</div>
157-
157+
158158
<div class="container mx-auto px-4 py-4">
159159
<div class="flex flex-col space-y-4">
160160
{% for item in menuItems %}

0 commit comments

Comments
 (0)