Skip to content

Commit 1517308

Browse files
nikoshellpre-commit-ci[bot]clytaemnestra
authored
Add accordion to faq. (#1073)
<!-- readthedocs-preview ep-website start --> 🖼️ Preview available 🖼️ : https://ep-website--1073.org.readthedocs.build/ <!-- readthedocs-preview ep-website end --> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Mia Bajić <38294198+clytaemnestra@users.noreply.github.com> Co-authored-by: Mia Bajic <mia.bajic@ataccama.com>
1 parent 44f9e01 commit 1517308

File tree

2 files changed

+68
-24
lines changed

2 files changed

+68
-24
lines changed

src/components/accordion/accordion.astro

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface Props {
77
const { title, id } = Astro.props;
88
---
99

10-
<details class="group mb-4">
10+
<details class="group mb-4" id={id} data-faq>
1111
<summary
1212
aria-expanded="false"
1313
aria-controls={id}
@@ -18,7 +18,32 @@ const { title, id } = Astro.props;
1818
<span aria-hidden="true" class="group-open:block hidden">−</span>
1919
</summary>
2020

21-
<div id={id} class="pl-4">
21+
<div class="pl-4">
2222
<slot />
2323
</div>
2424
</details>
25+
26+
<script>
27+
document.addEventListener("DOMContentLoaded", () => {
28+
const hash = window.location.hash.substring(1); // Remove #
29+
if (hash) {
30+
const details = document.getElementById(hash) as HTMLDetailsElement | null;
31+
if (details) {
32+
details.open = true;
33+
}
34+
}
35+
36+
// Update the URL when a detail is toggled
37+
const detailsElements = document.querySelectorAll('details');
38+
detailsElements.forEach((details) => {
39+
details.addEventListener('toggle', () => {
40+
const id = details.id;
41+
if (details.open) {
42+
window.history.pushState(null, '', `#${id}`);
43+
} else {
44+
window.history.pushState(null, '', window.location.pathname); // Remove the hash
45+
}
46+
});
47+
});
48+
});
49+
</script>

src/content/pages/faq.mdx

Lines changed: 41 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,41 @@ subtitle: Frequently Asked Questions about EuroPython
2020
<li>**8 March 2025** [Financial Aid](/finaid/) Programme starts</li>
2121
<li>**11 March 2025:** [Sponsorship](/sponsor) Sign-up Starts</li>
2222
<li>**27 March 2025:** [Ticket sales](/tickets) open!</li>
23+
<li>**February/March 2025** Programme selection process</li>
24+
<li>**March 2025** Visa Information Page opens</li>
2325
</ul>
2426

2527
<ul className="milestone-todo">
26-
<li>**February/March 2025** Programme selection process</li>
27-
<li>**March 2025** Visa Information Page opens</li>
2828
<li>**01 April 2025** Session preview</li>
2929
<li>**20 April 2025** Schedule published</li>
3030
<li>**9 May 2025** Financial Aid Programme closes</li>
3131
<li>**14 – 20 July 2025:** EuroPython 2025!🎊 </li>
3232
<li>**September 2025** EuroPython 2025 Videos published</li>
3333
</ul>
3434

35-
## **Q. When and where is EuroPython 2025 taking place?**
35+
<Accordion title="When and where is EuroPython 2025 taking place?" id="when-where">
3636

37-
A. EuroPython 2025 will take place on **14 – 20 July 2025**. Mark your calendars!
37+
EuroPython 2025 will take place on **14 – 20 July 2025**. Mark your calendars!
3838

3939
The conference will return to **Prague, Czech Republic**, with the main conference hosted at the [Prague Congress Centre (PCC)](https://www.praguecc.cz/en/homepage).
4040

4141
Need help getting around? Check out [how to navigate Prague](/where) and our volunteer-curated [Prague exploration tips](/explore).
4242

43-
## **Q. What will the schedule look like?**
43+
</Accordion>
4444

45-
A. The conference will be organised into three phases:
45+
<Accordion title="What will the schedule look like?" id="schedule">
46+
47+
The conference will be organised into three phases:
4648

4749
1. **Monday & Tuesday (14 & 15 July):** Tutorials & Workshops
4850
2. **Wednesday – Friday (16 – 18 July):** Main Conference Days
4951
3. **Saturday & Sunday (19 & 20 July):** Sprint Days
5052

51-
## **Q. What will the programme include?**
53+
</Accordion>
54+
55+
<Accordion title="What will the programme include?" id="programme">
5256

53-
A. Expect a diverse programme with around **20 hands-on tutorials & workshops**, **120 talks**, and interactive discussions and events.
57+
Expect a diverse programme with around **20 hands-on tutorials & workshops**, **120 talks**, and interactive discussions and events.
5458

5559
We aim to cover the many ways Python is used to solve problems and create exciting projects.
5660

@@ -59,24 +63,30 @@ Curious about what to expect? Check out the [EP2024 programme](https://ep2024.eu
5963
We are always keen to hear new ideas on how to enrich the programme and other activities you are interested in oraganising.
6064
Share your ideas with the programme team at [programme@europython.eu](mailto:programme@europython.eu).
6165

62-
## **Q. When can I submit a talk proposal?**
66+
</Accordion>
67+
68+
<Accordion title="When can I submit a talk proposal?" id="submit">
6369

64-
A. Sadly, at this point you cannot. The [Call for Proposals (CfP)](/programme/cfp) was open from **the 10th of January to the 3rd of February 2025** (including an extension of the original deadline).
70+
Sadly, at this point you cannot. The [Call for Proposals (CfP)](/programme/cfp) was open from **the 10th of January to the 3rd of February 2025** (including an extension of the original deadline).
6571

6672
Need support with your submission? Explore our [Speaker Mentorship Programme](/programme/mentorship/) for guidance.
6773

68-
## **Q. How are talks reviewed and selected?**
74+
</Accordion>
6975

70-
A. This year, the first **100 proposals** will be quickly screened by the programme team, and feedback for possible improvements will be provided.
76+
<Accordion title="How are talks reviewed and selected?" id="review">
77+
78+
This year, the first **100 proposals** will be quickly screened by the programme team, and feedback for possible improvements will be provided.
7179

7280
Once the CfP closes, all proposals go through **community voting and two rounds of review and refinement** to finalise the programme.
7381

7482
Learn more about our selection process [here](/programme/selection/).
7583

7684

77-
## **Q. What support is available for speakers?**
85+
</Accordion>
86+
87+
<Accordion title="What support is available for speakers?" id="support">
7888
{/*
79-
A. Accepted speakers receive a **free ticket**. Details about ticket for speakers will be shared later.
89+
Accepted speakers receive a **free ticket**. Details about ticket for speakers will be shared later.
8090
*/}
8191

8292
Speakers needing travel support are encouraged to apply for [Financial Aid](/finaid).
@@ -85,25 +95,34 @@ We actively support first-time speakers and welcome participation from under-rep
8595

8696
Got any questions? Reach out to us at [programme@europython.eu](mailto:programme@europython.eu).
8797

88-
## **Q. When do ticket sales start, and how much will they cost?**
98+
</Accordion>
99+
100+
<Accordion title="When do ticket sales start, and how much will they cost?" id="tickets">
89101

90-
A. Ticket sales are already open! For more info, check out our [tickets](/tickets) page. Capacity is limited, so hurry up.
102+
Ticket sales are already open! For more info, check out our [tickets](/tickets) page. Capacity is limited, so hurry up.
91103

92-
## **Q. Is there a Financial Aid Programme for EuroPython 2025?**
104+
</Accordion>
93105

94-
A. Yes! Our Financial Aid Programme is now open. The application period runs from **8 March to 9 May**.
106+
<Accordion title="Is there a Financial Aid Programme for EuroPython 2025?" id="financial-aid">
107+
108+
Yes! Our Financial Aid Programme is now open. The application period runs from **8 March to 9 May**.
95109

96110
If you need support to attend the conference, we encourage you to apply **as early as possible**, so you don't miss your chance to be part of EuroPython 2025! More details are available in our [Financial Aid page](/finaid).
97111

98-
## **Q. Can I get a visa support letter for my application?**
112+
</Accordion>
113+
114+
<Accordion title="Can I get a visa support letter for my application?" id="visa">
115+
116+
Yes. We have a dedicated [Visa Information Page](/visa) with details on how to obtain the support letter. Please refer to the Ministry of Foreign Affairs of Czech Republic for information, including the application process for a [Schengen visa for the purpose of “business” when attending a conference](https://mzv.gov.cz/jnp/en/information_for_aliens/short_stay_visa/conference.html).
99117

100-
A. Yes. We have a dedicated [Visa Information Page](/visa) with details on how to obtain the support letter. Please refer to the Ministry of Foreign Affairs of Czech Republic for information, including the application process for a [Schengen visa for the purpose of “business” when attending a conference](https://mzv.gov.cz/jnp/en/information_for_aliens/short_stay_visa/conference.html).
118+
</Accordion>
101119

102-
## **Q. When can sponsors start signing up?**
120+
<Accordion title="When can sponsors start signing up?" id="sponsors">
103121

104-
A. Sponsorship sign-up is now open. Some packages may be limited, so don't wait and sign up soon!
122+
Sponsorship sign-up is now open. Some packages may be limited, so don't wait and sign up soon!
105123
See our [sponsorship page](/sponsor) for details on 2025 packages and add-ons.
106124

107125
**~Sign up by 28 March to receive a 10% Early Bird discount.~** While the Early Bird discount of 10% has now ended, we encourage sponsors to act quickly as spots are limited.
108126

109127
Our goal is to make EuroPython sponsorship accessible to a wide range of organisations eager to support the community. If you're interested in sponsoring EuroPython 2025 or future editions, please get in touch with our sponsors team at sponsoring@europython.eu.
128+
</Accordion>

0 commit comments

Comments
 (0)