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

@@ -391,19 +391,10 @@ em {
} }
nav { nav {
margin-top:3rem; margin-top: 1%;
font-size:1.6em; font-size: 1.6em;
animation: adjustMargin 10s forwards;
} }
@keyframes adjustMargin {
0% {
margin-top: 3rem;
}
100% {
margin-top: 1rem;
}
}
nav a, nav a,
nav a:focus, nav a:focus,
nav a:hover { nav a:hover {

View File

@@ -1,6 +1,21 @@
{% extends 'partials/base.html.twig' %} {% extends 'partials/base.html.twig' %}
{% set hero_image = page.media.images|first %} {% set hero_image = page.media.images|first %}
{% block content %} {% 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="home">
<div class="profile"> <div class="profile">
{{ hero_image.html(meta.title|e, meta.alt_text|e, 'img-profile')|absolute_url|raw }} {{ 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 %}> <body id="top"{% if page.header.onload %} onload='{{ page.header.onload|raw }}'{% endif %}>
{# CTA banner #} {# CTA banner #}
{% if base_url_relative == '/' %} {% if base_url_relative == '' %}
<div class="cta">{% include 'partials/cta.html.twig' %}</div> <div class="cta">{% include 'partials/cta.html.twig' %}</div>
{% endif %} {% endif %}