website/templates/page.html.twig
Jeroen De Meerleer c7b7285403
Refactor HTML and SCSS for improved structure and styling
- Removed unnecessary CSS properties from `base.scss`
- Added `class="h-100"` to the `<html>` tag in `base.html.twig` for full height
- Added `class="d-flex flex-column h-100"` to the `<body>` tag in `base.html.twig` for flexbox layout
- Updated footer styling in `base.html.twig` with additional classes
- Added `class="flex-shrink-0"` to the `<main>` tag in `page.html.twig`
2024-02-07 12:40:26 +01:00

43 lines
1.1 KiB
Twig
Executable File

{% extends "base.html.twig" %}
{% block title %}{{ title }}{% endblock %}
{% block content %}
<nav>
<div class="container py-3">
{{ nav | raw }}
</div>
</nav>
<header>
<div class="container py-4">
{{ header | raw }}
</div>
</header>
<main class="flex-shrink-0">
<div class="container py-4">
{{ content | raw }}
</div>
</main>
{% endblock %}
{% block styles %}
{{ encore_entry_link_tags('page') }}
{% if css is defined and css is not empty %}
{% for sheet in css %}
<link rel="stylesheet" href="{{ sheet.file }}" integrity="sha384-{{ sheet.sha384 }}">
{% endfor %}
{% endif %}
{% endblock %}
{% block scripts %}
{{ encore_entry_script_tags('page') }}
{% if js is defined and js is not empty %}
{% for script in js %}
<script src="{{ script.file }}" integrity="sha384-{{ script.sha384 }}"></script>
{% endfor %}
{% endif %}
{% endblock %}
{% block footer %}
{{ footer | raw }}
{% endblock %}