templates/front/partials/cards/question_reponse-card.html.twig line 1

Open in your IDE?
  1. <li
  2.         x-data="{ open: false }"
  3.         class="mt-4 first:mt-0 border border-grey-lighter rounded-lg"
  4. >
  5.     <div
  6.             @click="open = ! open"
  7.             class="paragraph--M text-violet font-weight-medium p-5 cursor-pointer flex justify-between"
  8.     >
  9.         <span>{{ question.contentProperties.question }}</span>
  10.         <div class="bg-violet round shrink-0 grid place-items-center w-8 h-8">
  11.             <svg x-show="!open" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="white" class="w-6 h-6">
  12.                 <path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
  13.             </svg>
  14.             <svg x-show="open" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="white" class="w-6 h-6">
  15.                 <path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14" />
  16.             </svg>
  17.         </div>
  18.     </div>
  19.     <div
  20.             x-cloak
  21.             class="p-5 pt-3 w-3/4 paragraph--M text-grey-darker cursor-default"
  22.             x-show="open"
  23.     >
  24.         {{ question.contentProperties.reponse }}
  25.     </div>
  26. </li>