Skip to content

Commit d2b1745

Browse files
committed
FAQ's Section
1 parent 21004f7 commit d2b1745

File tree

7 files changed

+404
-3
lines changed

7 files changed

+404
-3
lines changed

src/_includes/components/dropdown.njk

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{% macro renderDropdown(question) %}
2+
<div class="space-y-4">
3+
<div class="bg-white shadow-lg rounded-md overflow-hidden">
4+
<button
5+
class="w-full text-left p-4 font-semibold text-lg flex justify-between items-center relative overflow-hidden group hover:bg-[#8385F2] hover:text-white focus:outline-none transition-colors duration-300"
6+
onclick="
7+
const answer = this.nextElementSibling;
8+
const icon = this.querySelector('svg');
9+
answer.classList.toggle('hidden');
10+
icon.classList.toggle('rotate-180');
11+
12+
if (!answer.classList.contains('hidden')) {
13+
this.classList.add('bg-[#8385F2]', 'text-white');
14+
} else {
15+
this.classList.remove('bg-[#8385F2]', 'text-white');
16+
}
17+
"
18+
>
19+
<span class="relative z-10">{{ question }}</span>
20+
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 transition-transform duration-300 relative z-10 text-gray-800" fill="none" viewBox="0 0 24 24" stroke="currentColor">
21+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
22+
</svg>
23+
</button>
24+
<div class="hidden p-2 text-black border-t text-justify border-gray-200">
25+
{{ caller() }}
26+
</div>
27+
</div>
28+
</div>
29+
{% endmacro %}

src/_includes/footer.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% from "components/button.njk" import button %}
2-
<footer class="bg-blue-600 flex text-white mb-0 bottom-0 w-full relative">
2+
<footer class="bg-pycon-blue flex text-white mb-0 bottom-0 w-full relative">
33
<div class="relative mx-[6%] md:mx-[12%] mt-24 pb-8 md:pt-20 md:pb-12 w-full md:w-auto">
44
<div class="xl:scale-125 text-center md:text-left">
55
{{ button(text="Become a Volunteer", url="https://docs.google.com/forms/d/e/1FAIpQLSdX2LEom11BbWDiLUiQp1rmeNX9l7J8bfszGidsRDoExy0D5A/viewform", lime_bg=true, env = env) }}

src/_includes/landing/communities.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% from "components/button.njk" import button %}
22

3-
<section class="bg-blue-600 text-white relative px-4 sm:px-20 md:px-40 pt-10" id="communities">
3+
<section class="bg-pycon-blue text-white relative px-4 sm:px-20 md:px-40 pt-10" id="communities">
44
<div class="mx-auto py-16">
55
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 sm:gap-10">
66
<div>

src/_includes/landing/sponsors.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% from "components/button.njk" import button %}
22

3-
<section class="bg-blue-600 text-white relative px-4 sm:px-20 md:px-40 pt-10" id="sponsors">
3+
<section class="bg-pycon-blue text-white relative px-4 sm:px-20 md:px-40 pt-10" id="sponsors">
44
<div class="mx-auto py-16">
55
<!-- Desktop image visible -->
66
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 sm:gap-10">

src/_includes/navbar.njk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
</a>
88
<ul class="flex items-center justify-center w-full gap-8 relative mb-0">
99
{% set menuItems = [
10+
{
11+
"name": "About",
12+
"hasSubmenu": true,
13+
"submenu": [
14+
{"name": "FAQ's", "link": "about/faqs"}
15+
]
16+
},
1017
{
1118
"name": "CFP",
1219
"link": "cfp",

src/about/faqs.njk

Lines changed: 346 additions & 0 deletions
Large diffs are not rendered by default.

src/static/img/assets/question-mark.svg

Lines changed: 19 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)