File tree 5 files changed +60
-0
lines changed
5 files changed +60
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ import header from "../assets/images/header.png"
49
49
<a href =" /#organizadores" class =" block py-1 px-4" >Equipo</a >
50
50
</li >
51
51
52
+ <li class =" flex justify-center items-center" >
53
+ <a href =" /#faqs" class =" block py-1 px-4" >Faqs</a >
54
+ </li >
55
+
52
56
<li class =" flex justify-center items-center" >
53
57
<a href =" playground" class =" block py-1 px-4" >Playground ✨</a >
54
58
</li >
Original file line number Diff line number Diff line change
1
+ ---
2
+ const { question, answer } = Astro .props ;
3
+ ---
4
+
5
+ <details class =" border py-8 [&_svg]:open:-rotate-180" >
6
+ <summary class =" flex justify-between px-8 cursor-pointer" >
7
+ <span class =" text-xl font-bold" title ={ question } >{ question } </span >
8
+ <svg
9
+ fill =" none"
10
+ viewBox =" 0 0 24 24"
11
+ stroke-width =" 1.5"
12
+ stroke =" currentColor"
13
+ class =" w-6 h-6 transition-all duration-200"
14
+ >
15
+ <path
16
+ stroke-linecap =" round"
17
+ stroke-linejoin =" round"
18
+ d =" m19.5 8.25-7.5 7.5-7.5-7.5" ></path >
19
+ </svg >
20
+ </summary >
21
+ <section class =" px-8 mt-4 text-xl text-justify" title ={ answer } >
22
+ { answer }
23
+ </section >
24
+ </details >
Original file line number Diff line number Diff line change
1
+ ---
2
+ import faqs from " ./faqs.json" ;
3
+ import FaqCard from " ./FaqCard.astro" ;
4
+ ---
5
+
6
+ <section id =" faqs" class =" bg-black text-white" >
7
+ <section class =" max-w-screen-xl mx-auto px-4 py-16 space-y-8" >
8
+ <h2 class =" text-2xl sm:text-3xl font-bold mx-auto" >FAQs</h2 >
9
+ <h1 class =" text-1xl sm:text-xl mx-auto" >
10
+ ¿Tienes dudas? ¡Esperamos puedas despejarlas aquí!
11
+ </h1 >
12
+ <section class =" flex flex-col" >
13
+ { faqs .map ((faq ) => <FaqCard { ... faq } />)}
14
+ </section >
15
+ </section >
16
+ </section >
Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "question" : " ¿Pregunta 1?" ,
4
+ "answer" : " Respuesta 1"
5
+ },
6
+ {
7
+ "question" : " ¿Pregunta 2?" ,
8
+ "answer" : " Respuesta 2"
9
+ },
10
+ {
11
+ "question" : " ¿Pregunta 3?" ,
12
+ "answer" : " Respuesta 3"
13
+ }
14
+ ]
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import Layout from 'layouts/Layout.astro';
5
5
import Navbar from ' components/Navbar.astro' ;
6
6
import Organizers from ' components/organizers/Organizers.astro' ;
7
7
import Workshops from ' components/Workshops.astro' ;
8
+ import Faqs from ' components/faqs/Faqs.astro' ;
8
9
---
9
10
10
11
<Layout >
@@ -14,5 +15,6 @@ import Workshops from 'components/Workshops.astro';
14
15
<AboutUs />
15
16
<Workshops />
16
17
<Organizers />
18
+ <Faqs />
17
19
</main >
18
20
</Layout >
You can’t perform that action at this time.
0 commit comments