mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
- Added `itemscope` and `itemtype` attributes to the main container div for QAPage schema - Added `itemprop`, `itemscope`, and `itemtype` attributes to the summary element for Question schema - Added `itemprop` attribute to the question text span - Added `itemprop`, `itemscope`, and `itemtype` attributes to the svg element for Answer schema - Wrapped the answer text in a div with itemprop, itemscope, and itemtype attributes for Answer schema
20 lines
1007 B
PHP
20 lines
1007 B
PHP
<div class="py-5" itemscope itemtype="https://schema.org/QAPage">
|
|
<details class="group">
|
|
<summary class="flex justify-between items-center font-medium cursor-pointer list-none" itemprop="mainEntity"
|
|
itemscope itemtype="https://schema.org/Question">
|
|
<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" itemscope itemtype="https://schema.org/Answer">
|
|
<p class="text-gray-100 mt-3" itemprop="text">
|
|
{!! $answer !!}
|
|
</p>
|
|
</div>
|
|
</details>
|
|
</div>
|