Add IDs to all components of the website

This commit is contained in:
itsfinniii
2026-03-26 22:08:04 +01:00
parent 1fd51a6a3f
commit 82c0905c0e
6 changed files with 25 additions and 7 deletions

View File

@@ -9,7 +9,10 @@ interface Props {
const faq = Astro.props.faq;
---
<div class="flex lg:flex-row flex-col justify-between py-12 px-12 lg:container mx-auto gap-y-8 gap-x-18 w-full">
<div
id={`faq-${faq.id}`}
class="flex lg:flex-row flex-col justify-between py-12 px-12 lg:container mx-auto gap-y-8 gap-x-18 w-full"
>
<div class="flex flex-col gap-2.5 lg:w-[50%] w-full">
<h2 class="text-5xl font-bold">{faq.title}</h2>
{ faq.text !== null && (