Skip to content

Commit f9e2e4d

Browse files
committed
FAQ's section
1 parent 21004f7 commit f9e2e4d

File tree

7 files changed

+419
-7
lines changed

7 files changed

+419
-7
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: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
"link": "https://in.pycon.org/blog/",
3737
"hasSubmenu": false,
3838
"isExternal": true
39+
},
40+
{
41+
"name": "FAQ's",
42+
"link": "faqs",
43+
"hasSubmenu": false,
44+
"isExternal": false
3945
}
4046
] %}
4147

@@ -99,10 +105,22 @@
99105
</a>
100106

101107
<input type="checkbox" id="mobile-menu-checkbox" class="hidden">
102-
<label for="mobile-menu-checkbox" class="cursor-pointer z-50 bg-white/20 hover:bg-white/30 p-2 rounded-full transition-all duration-300 inline-flex items-center justify-center">
103-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-white block" id="hamburger-icon">
104-
<line x1="4" y1="8" x2="20" y2="8"></line>
105-
<line x1="4" y1="16" x2="20" y2="16"></line>
108+
<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">
109+
<svg width="24" height="22" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">
110+
<g clip-path="url(#clip0_223_10553)">
111+
<path d="M11.0351 0.0117188H0.0117188V11.0351H11.0351V0.0117188Z" fill="#F6EBFF" stroke="black" stroke-width="0.0232085" stroke-linecap="round" stroke-linejoin="round"/>
112+
<path d="M13.3602 1.96484H2.33691V12.9882H13.3602V1.96484Z" fill="#D7FF7B" stroke="black" stroke-width="0.062458" stroke-linecap="round" stroke-linejoin="round"/>
113+
<path d="M0.0117188 0.0117188L2.33721 1.96518H13.3608L11.0351 0.0117188H0.0117188Z" fill="white" stroke="black" stroke-width="0.062458" stroke-linecap="round" stroke-linejoin="round"/>
114+
<path d="M0.0117188 0.0117188L2.33721 1.96518V12.9885L0.0117188 11.0351V0.0117188Z" fill="white" stroke="black" stroke-width="0.062458" stroke-linecap="round" stroke-linejoin="round"/>
115+
<rect x="4" y="4" width="8" height="0.5" rx="0.25" fill="#4E62F5"/>
116+
<rect x="4" y="7" width="8" height="0.5" rx="0.25" fill="#4E62F5"/>
117+
<rect x="4" y="10" width="8" height="0.5" rx="0.25" fill="#4E62F5"/>
118+
</g>
119+
<defs>
120+
<clipPath id="clip0_223_10553">
121+
<rect width="13.3723" height="13" fill="white"/>
122+
</clipPath>
123+
</defs>
106124
</svg>
107125
</label>
108126
</div>

0 commit comments

Comments
 (0)