fix cta displaying

This commit is contained in:
2024-08-08 20:04:35 +02:00
parent ab16f62192
commit 2d0b733bc4
3 changed files with 18 additions and 12 deletions

View File

@@ -1,6 +1,21 @@
{% extends 'partials/base.html.twig' %}
{% set hero_image = page.media.images|first %}
{% block content %}
<style>
.nav {
margin-top:3rem;
font-size:1.6em;
animation: adjustMargin 10s forwards;
}
@keyframes adjustMargin {
0% {
margin-top: 3rem;
}
100% {
margin-top: 1rem;
}
}
</style>
<div class="home">
<div class="profile">
{{ hero_image.html(meta.title|e, meta.alt_text|e, 'img-profile')|absolute_url|raw }}

View File

@@ -94,7 +94,7 @@
<body id="top"{% if page.header.onload %} onload='{{ page.header.onload|raw }}'{% endif %}>
{# CTA banner #}
{% if base_url_relative == '/' %}
{% if base_url_relative == '' %}
<div class="cta">{% include 'partials/cta.html.twig' %}</div>
{% endif %}