Files
natascha-rieter-nl/user/themes/natascha/templates/home.html.twig
T
m038 589b70aae9 Apply UI/UX improvements and fix broken Bootstrap JS
- Add CSS custom properties for brand colors
- Remove global font-weight: bold from body
- Increase content panel opacity from 0.6 to 0.88
- Add dynamic lang attribute, favicon, and Open Graph meta tags
- Move scripts to <head> with defer (required due to automagic-images plugin)
- Disable automagic-images plugin (PHPHtmlParser strips all <script src> tags
  during HTML re-serialization, breaking Bootstrap JS and all dropdowns)
- Add loading="lazy" to below-fold images across templates

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 02:15:40 +02:00

19 lines
1.1 KiB
Twig

{% extends 'partials/base.html.twig' %}
{% set page_class = 'row p-3' %}
{% block content %}
<div class="col-12 col-md-6 col-lg-3 p-3">
{% set img_main = page.header.image_main ? page.media[page.header.image_main].url : url('theme://images/portret-2.jpg') %}
{% set img_secondary = page.header.image_secondary ? page.media[page.header.image_secondary].url : url('theme://images/portret-1.jpg') %}
<img src="{{ img_main }}" class="img-fluid mb-3" alt="Portret Natascha Rieter">
<img src="{{ img_secondary }}" class="img-fluid d-none d-md-block" loading="lazy" alt="Portret Natascha Rieter">
</div>
<div class="col-12 col-md-6 col-lg-6 p-3 text-start">
<h1 class="funky-font main-header text-center">{{ page.title }}</h1>
{{ content|raw }}
</div>
<div class="col-12 col-md-6 col-lg-3 p-3 text-center">
{% set img_logo = page.header.image_logo ? page.media[page.header.image_logo].url : url('theme://images/logo-blauw.png') %}
<img src="{{ img_logo }}" class="img-fluid mb-3" loading="lazy" alt="Logo Galerie Groot Welsden">
</div>
{% endblock %}