templates/faq/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ seoTitle }}!{% endblock %}
  3. {% block seo %}
  4.     <meta name="title" content="{{ seoTitle }}" />
  5.     <meta name="description" content="{{ seoDescription }}" />
  6.     <meta name="keywords" content="{{ seoKeys }}" />
  7. {% endblock %}
  8. {% block stylesheets %}
  9.     {{ parent() }}
  10.     <style>
  11.         .row.align-items-md-stretch {
  12.             margin: 1em 0;
  13.         }
  14.         input {
  15.             position: absolute;
  16.             opacity: 0;
  17.             z-index: -1;
  18.         }
  19.         .row {
  20.             display: flex;
  21.         }
  22.         .row .col {
  23.             flex: 1;
  24.         }
  25.         .row .col:last-child {
  26.             margin-left: 1em;
  27.         }
  28.         /* Accordion styles */
  29.         .tabs {
  30.             border-radius: 8px;
  31.             overflow: hidden;
  32.             box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5);
  33.         }
  34.         .tab {
  35.             width: 100%;
  36.             color: white;
  37.             overflow: hidden;
  38.         }
  39.         .tab-label {
  40.             display: flex;
  41.             justify-content: space-between;
  42.             padding: 1em;
  43.             background: #2c3e50;
  44.             font-weight: bold;
  45.             cursor: pointer;
  46.             /* Icon */
  47.         }
  48.         .tab-label:hover {
  49.             background: #1a252f;
  50.         }
  51.         .tab-label::after {
  52.             content: "❯";
  53.             width: 1em;
  54.             height: 1em;
  55.             text-align: center;
  56.             transition: all 0.35s;
  57.         }
  58.         .tab-content {
  59.             max-height: 0;
  60.             padding: 0 1em;
  61.             color: #2c3e50;
  62.             background: white;
  63.             transition: all 0.35s;
  64.         }
  65.         .tab-close {
  66.             display: flex;
  67.             justify-content: flex-end;
  68.             padding: 1em;
  69.             font-size: 0.75em;
  70.             background: #2c3e50;
  71.             cursor: pointer;
  72.         }
  73.         .tab-close:hover {
  74.             background: #1a252f;
  75.         }
  76.         input:checked + .tab-label {
  77.             background: #1a252f;
  78.         }
  79.         input:checked + .tab-label::after {
  80.             transform: rotate(90deg);
  81.         }
  82.         input:checked ~ .tab-content {
  83.             max-height: 100vh;
  84.             padding: 1em;
  85.         }
  86.     </style>
  87. {% endblock %}
  88. {% block main %}
  89.     <div class="container">
  90.         <h1 class="text-center display-2">FAQ</h1>
  91.         <div class="container-fluid p-5 mb-4 ">
  92.             <div class="container">
  93.                 <p class="text-center"> Diese Seite bietet Antworten auf häufig gestellte Fragen (FAQ), um Ihnen bei der Navigation und Nutzung unserer Dienstleistungen zu helfen.
  94.                     </p>
  95.                 <h3 class="text-center display-4">Fragen und Antworten:</h3>
  96.             </div>
  97.             <div class="container">
  98.                 <div class="tabs">
  99.                 {% for f in faq  %}
  100.                     <div class="tab">
  101.                         <input type="radio" id="rd{{ loop.index }}" name="rd">
  102.                         <label class="tab-label" for="rd{{ loop.index }}">{{ f.name }}</label>
  103.                         <div class="tab-content">
  104.                             {{ f.description | raw }}
  105.                         </div>
  106.                     </div>
  107.                 {% endfor %}
  108.                 </div>
  109.             </div>
  110.         </div>
  111.     </div>
  112. {% endblock %}
  113. {% block javascripts %}
  114.     {{ parent() }}
  115.     <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
  116. {% endblock %}