src/StartPlatz/Bundle/StyleBundle/Resources/views/base.tailwind.public.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale|default('de') }}">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     {# === SEO Meta === #}
  7.     {% block metaData %}
  8.         <meta name="robots" content="noindex,nofollow">
  9.     {% endblock %}
  10.     {% include "@StartPlatzStyleBundle/_icon.html.twig" %}
  11.     <title>{% block title %}STARTPLATZ{% endblock %}</title>
  12.     {# === Tailwind CSS === #}
  13.     <script src="https://cdn.tailwindcss.com"></script>
  14.     {% block tailwindConfig %}
  15.     <script>
  16.         tailwind.config = {
  17.             theme: {
  18.                 extend: {
  19.                     colors: {
  20.                         'sp-purple': '#9632FF',
  21.                         'sp-grey': '#f5f5f5',
  22.                         'sp-green': '#7AB800',
  23.                         'sp-blue': '#0080bb',
  24.                         'sp-gray': '#525459',
  25.                         'ai-purple': '#9535FF',
  26.                         'ai-purple-light': '#B565FF',
  27.                         'ai-purple-dark': '#7c2ccc',
  28.                         'ai-purple-ultra-light': '#f4f0ff',
  29.                     }
  30.                 }
  31.             }
  32.         }
  33.     </script>
  34.     {% endblock %}
  35.     {# === Alpine.js === #}
  36.     <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
  37.     {# === Google Fonts === #}
  38.     {% block fonts %}
  39.         <link rel="preconnect" href="https://fonts.googleapis.com">
  40.         <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  41.         <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  42.     {% endblock %}
  43.     {# === Bereichsspezifisches CSS === #}
  44.     {% block styles %}{% endblock %}
  45.     {# === Tracking (GTM, GA, FB Pixel, HubSpot) === #}
  46.     {% if not embed|default(false) %}
  47.         {% include "@StartPlatzStyleBundle/_tracking.html.twig" %}
  48.     {% endif %}
  49.     {# === Zusätzliche Head-Elemente (Meta Pixel, Custom CSS, etc.) === #}
  50.     {% block additionalHead %}{% endblock %}
  51. </head>
  52. <body class="{% block bodyClass %}font-[Source_Sans_Pro]{% endblock %}">
  53.     {# GTM noscript fallback #}
  54.     <noscript>
  55.         <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5WTVWDT"
  56.                 height="0" width="0" style="display:none;visibility:hidden"></iframe>
  57.     </noscript>
  58.     {# === Navigation === #}
  59.     {% block navigation %}{% endblock %}
  60.     {# === Flash Messages (Tailwind-styled) === #}
  61.     {% block flashMessages %}
  62.         {% for type, messages in app.flashes %}
  63.             {% for message in messages %}
  64.                 <div class="{% if type == 'success' %}bg-green-100 text-green-800 border-green-200{% elseif type == 'error' or type == 'danger' %}bg-red-100 text-red-800 border-red-200{% elseif type == 'warning' %}bg-yellow-100 text-yellow-800 border-yellow-200{% else %}bg-blue-100 text-blue-800 border-blue-200{% endif %} px-4 py-3 rounded-xl border mb-4 mx-auto max-w-4xl mt-4">
  65.                     {{ message|raw }}
  66.                 </div>
  67.             {% endfor %}
  68.         {% endfor %}
  69.     {% endblock %}
  70.     {# === Hauptinhalt === #}
  71.     {% block content %}{% endblock %}
  72.     {# === Footer === #}
  73.     {% block footer %}
  74.         {% if not embed|default(false) %}
  75.             {% include '@StartPlatzWebsiteBundle/Default/footer.tailwind.html.twig' %}
  76.         {% endif %}
  77.     {% endblock %}
  78.     {# === Cookie Consent === #}
  79.     {% if not embed|default(false) %}
  80.         {% include "@StartPlatzStyleBundle/_cookie.consent.html.twig" %}
  81.     {% endif %}
  82.     {# === JavaScript === #}
  83.     {% block javascripts %}{% endblock %}
  84. </body>
  85. </html>