Files
HeimerdingerLoL/resources/views/components/about/faq/dropdown.blade.php
Rico van Zelst c15c4d640f refactor: Update schema.org markup for FAQ dropdown
- Changed the itemtype from "https://schema.org/QAPage" to "https://schema.org/Question"
- Removed unnecessary itemprop attribute from summary element
- Added "suggestedAnswer" itemprop attribute to the answer element

These changes improve the accuracy and consistency of the schema.org markup for the FAQ dropdown component.
2023-12-14 14:57:58 +01:00

19 lines
937 B
PHP

<div class="py-5" itemscope itemtype="https://schema.org/Question">
<details class="group">
<summary class="flex justify-between items-center font-medium cursor-pointer list-none">
<span class="text-orange-400" itemprop="name">{{$question}}</span>
<span class="transition text-orange-400 group-open:rotate-180">
<svg fill="none" height="24" shape-rendering="geometricPrecision" stroke="currentColor"
stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" viewBox="0 0 24 24" width="24"><path
d="M6 9l6 6 6-6"></path>
</svg>
</span>
</summary>
<div itemprop="acceptedAnswer suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<p class="text-gray-100 mt-3" itemprop="text">
{!! $answer !!}
</p>
</div>
</details>
</div>