Files
www_threefold_io/templates/partials/home/faq.html
2024-11-19 17:52:36 +01:00

91 lines
5.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="bg-transparent">
<div class="mx-auto max-w-7xl px-6 pb-32 pt-12fa lg:px-8">
<div class="mx-auto max-w-4xl divide-y divide-white/10">
<h2 class="text-3xl font-normal tracking-tight text-white sm:text-4xl">Frequently Asked Questions</h2>
<dl class="mt-10 space-y-6 divide-y divide-white/10">
<!-- FAQ 1 -->
<div class="pt-6">
<dt>
<button type="button" class="flex w-full border-transparent items-start justify-between text-left text-white px-6 bg-transparent border-none" aria-controls="faq-0" aria-expanded="false">
<span class="text-base font-semibold">Is this a separate new Internet?</span>
<span class="ml-6 flex h-7 items-center">
<svg class="size-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon-expand">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6" />
</svg>
<svg class="hidden size-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon-collapse">
<path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6" />
</svg>
</span>
</button>
</dt>
<dd class="mt-2 hidden pr-12 text-white" id="faq-0">
<p class="text-base text-white">No, ThreeFold is a complementary Internet and works alongside the current Internet. It allows you to continue accessing and interacting with the current Internet while offering additional capabilities.</p>
</dd>
</div>
<!-- FAQ 2 -->
<div class="pt-6">
<dt>
<button type="button" class="flex w-full items-start border-transparent justify-between text-left text-white px-6 bg-transparent border-none" aria-controls="faq-1" aria-expanded="false">
<span class="text-base font-semibold">Why do we need a new Internet?</span>
<span class="ml-6 flex h-7 items-center">
<svg class="size-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon-expand">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6" />
</svg>
<svg class="hidden size-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon-collapse">
<path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6" />
</svg>
</span>
</button>
</dt>
<dd class="mt-2 hidden pr-12 text-white" id="faq-1">
<p class="text-base text-white">The Internet has become fragile and overly centralized. Issues like authenticity, privacy, security, and sustainability necessitate a fundamental new approach to rebuild its foundation.</p>
</dd>
</div>
<!-- FAQ 3 -->
<div class="pt-6">
<dt>
<button type="button" class="flex w-full items-start border-transparent justify-between text-left text-white px-6 bg-transparent border-none" aria-controls="faq-2" aria-expanded="false">
<span class="text-base font-semibold">This seems too big to be true. Is this real?</span>
<span class="ml-6 flex h-7 items-center">
<svg class="size-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon-expand">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6" />
</svg>
<svg class="hidden size-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon-collapse">
<path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6" />
</svg>
</span>
</button>
</dt>
<dd class="mt-2 hidden pr-12 text-white" id="faq-2">
<p class="text-base text-white">For over 30 years, weve worked toward this vision. ThreeFold is the culmination of our journey, offering a fully operational product and a growing community of users, farmers, and partners. This is real and here to stay.</p>
</dd>
</div>
</dl>
</div>
</div>
</div>
<script>
document.querySelectorAll('button[aria-controls]').forEach(button => {
button.addEventListener('click', () => {
const isExpanded = button.getAttribute('aria-expanded') === 'true';
const contentId = button.getAttribute('aria-controls');
const content = document.getElementById(contentId);
// Toggle the "aria-expanded" attribute
button.setAttribute('aria-expanded', !isExpanded);
// Toggle visibility of content
content.classList.toggle('hidden', isExpanded);
// Toggle the visibility of icons
const [iconExpand, iconCollapse] = button.querySelectorAll('[data-slot]');
iconExpand.classList.toggle('hidden', isExpanded);
iconCollapse.classList.toggle('hidden', !isExpanded);
});
});
</script>