|
1 |
| -<?php |
2 |
| - |
3 |
| -/** |
4 |
| - * Template part for displaying page content in page.php |
5 |
| - * |
6 |
| - * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ |
7 |
| - * |
8 |
| - * @package cjt |
9 |
| - */ |
10 |
| - |
11 |
| -$faqData = include get_template_directory() . '/data/faq-data.php'; |
12 |
| -?> |
13 |
| - |
14 |
| -<section class="md:py-24 py-10 relative overflow-hidden"> |
15 |
| - <div class="mx-auto max-w-7xl text-center space-y-10 md:px-0 px-5"> |
16 |
| - <div class="md:space-y-5 space-y-2.5 max-w-3xl mx-auto"> |
17 |
| - <h2 class="text-2xl font-bold md:text-5xl font-display"> |
18 |
| - Frequently Asked Queries |
19 |
| - </h2> |
20 |
| - |
21 |
| - <p class="md:text-base text-sm font-normal sm:block text-neutral-500"> |
22 |
| - Efficiently productivate reliable paradigms before ubiquitous models. Continually utilize frictionless expertise whereas tactical relationships. Still have questions? Contact us |
23 |
| - </p> |
24 |
| - </div> |
25 |
| - |
26 |
| - <div class="md:space-y-3 space-y-2.5 max-w-2xl mx-auto divide-y divide-neutral-100"> |
27 |
| - <?php |
28 |
| - foreach ($faqData as $data) : |
29 |
| - ?> |
30 |
| - <details class="group flex space-y-2.5 md:pt-3 pt-2.5"> |
31 |
| - <summary class="flex cursor-pointer items-center justify-between gap-1.5"> |
32 |
| - <h2 class="md:text-base text-sm font-semibold text-gray-900"> |
33 |
| - <?= $data['question']; ?> |
34 |
| - </h2> |
35 |
| - |
36 |
| - <span class="shrink-0 rounded-full p-1.5 text-brand-blue sm:p-3"> |
37 |
| - <svg xmlns="http://www.w3.org/2000/svg" class="size-5 shrink-0 transition duration-300 group-open:-rotate-45" viewBox="0 0 20 20" fill="currentColor"> |
38 |
| - <path fill-rule="evenodd" d="M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z" clip-rule="evenodd" /> |
39 |
| - </svg> |
40 |
| - </span> |
41 |
| - </summary> |
42 |
| - |
43 |
| - <p class="text-start text-base leading-relaxed text-neutral-500"> |
44 |
| - <?= $data['answer']; ?> |
45 |
| - </p> |
46 |
| - </details> |
47 |
| - <?php endforeach; ?> |
48 |
| - </div> |
49 |
| - </div> |
50 |
| - <?php get_template_part('template-parts/components/component', 'blob', ['class' => 'md:-left-64 -left-28 -top-40 bg-cyan-400/30 blur-3xl md:size-[400px] size-[200px] -z-[1]']); ?> |
51 |
| - <?php get_template_part('template-parts/components/component', 'blob', ['class' => 'md:-right-64 -right-28 top-2/4 bg-amber-300/30 blur-3xl md:size-[400px] size-[200px] -z-[1]']); ?> |
52 |
| - <?php get_template_part('template-parts/components/component', 'small-blob', ['class' => 'bg-blue-300/50 rotate-6 left-[20%] bottom-20 animate-small-blob']); ?> |
53 |
| - <?php get_template_part('template-parts/components/component', 'small-blob', ['class' => 'bg-amber-200/50 -rotate-6 left-1/4 bottom-1/2 animate-small-blob-2']); ?> |
54 |
| - <?php get_template_part('template-parts/components/component', 'small-blob', ['class' => 'bg-lime-200/50 rotate-3 right-[20%] bottom-1/3 animate-small-blob-3']); ?> |
55 |
| - <?php get_template_part('template-parts/components/component', 'small-blob', ['class' => 'bg-green-300/50 -rotate-6 right-[20%] top-40 animate-small-blob-4']); ?> |
56 |
| -</section> |
| 1 | +<?php |
| 2 | + |
| 3 | +/** |
| 4 | + * Template part for displaying page content in page.php |
| 5 | + * |
| 6 | + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ |
| 7 | + * |
| 8 | + * @package cjt |
| 9 | + */ |
| 10 | + |
| 11 | +$faqData = include get_template_directory() . '/data/faq-data.php'; |
| 12 | +?> |
| 13 | + |
| 14 | +<section class="md:py-24 p-4 relative overflow-hidden"> |
| 15 | + <div class="mx-auto md:max-w-7xl text-center space-y-10"> |
| 16 | + <div class="md:space-y-5 space-y-2.5 md:max-w-3xl mx-auto"> |
| 17 | + <h2 class="text-2xl font-bold md:text-5xl font-display"> |
| 18 | + Frequently Asked Queries |
| 19 | + </h2> |
| 20 | + |
| 21 | + <p class="md:text-base text-sm font-normal sm:block text-neutral-500"> |
| 22 | + Efficiently productivate reliable paradigms before ubiquitous models. Continually utilize frictionless expertise whereas tactical relationships. Still have questions? Contact us |
| 23 | + </p> |
| 24 | + </div> |
| 25 | + |
| 26 | + <div class="md:space-y-3 space-y-2.5 max-w-2xl mx-auto divide-y divide-neutral-100"> |
| 27 | + <?php |
| 28 | + foreach ($faqData as $data) : |
| 29 | + ?> |
| 30 | + <details class="group flex space-y-2.5 md:pt-3 pt-2.5"> |
| 31 | + <summary class="flex cursor-pointer items-center justify-between gap-1.5"> |
| 32 | + <h2 class="md:text-base text-sm font-semibold text-gray-900"> |
| 33 | + <?= $data['question']; ?> |
| 34 | + </h2> |
| 35 | + |
| 36 | + <span class="shrink-0 rounded-full p-1.5 text-brand-blue sm:p-3"> |
| 37 | + <svg xmlns="http://www.w3.org/2000/svg" class="size-5 shrink-0 transition duration-300 group-open:-rotate-45" viewBox="0 0 20 20" fill="currentColor"> |
| 38 | + <path fill-rule="evenodd" d="M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z" clip-rule="evenodd" /> |
| 39 | + </svg> |
| 40 | + </span> |
| 41 | + </summary> |
| 42 | + |
| 43 | + <p class="text-start text-base leading-relaxed text-neutral-500"> |
| 44 | + <?= $data['answer']; ?> |
| 45 | + </p> |
| 46 | + </details> |
| 47 | + <?php endforeach; ?> |
| 48 | + </div> |
| 49 | + </div> |
| 50 | + <?php get_template_part('template-parts/components/component', 'blob', ['class' => 'md:-left-64 -left-28 -top-40 bg-cyan-400/30 blur-3xl md:size-[400px] size-[200px] -z-[1]']); ?> |
| 51 | + <?php get_template_part('template-parts/components/component', 'blob', ['class' => 'md:-right-64 -right-28 top-2/4 bg-amber-300/30 blur-3xl md:size-[400px] size-[200px] -z-[1]']); ?> |
| 52 | + <?php get_template_part('template-parts/components/component', 'small-blob', ['class' => 'bg-blue-300/50 rotate-6 left-[20%] bottom-20 animate-small-blob']); ?> |
| 53 | + <?php get_template_part('template-parts/components/component', 'small-blob', ['class' => 'bg-amber-200/50 -rotate-6 left-1/4 bottom-1/2 animate-small-blob-2']); ?> |
| 54 | + <?php get_template_part('template-parts/components/component', 'small-blob', ['class' => 'bg-lime-200/50 rotate-3 right-[20%] bottom-1/3 animate-small-blob-3']); ?> |
| 55 | + <?php get_template_part('template-parts/components/component', 'small-blob', ['class' => 'bg-green-300/50 -rotate-6 right-[20%] top-40 animate-small-blob-4']); ?> |
| 56 | +</section> |
0 commit comments