feat: Ajustement des marges

This commit is contained in:
2022-10-07 22:07:27 +02:00
parent 8d2e92a483
commit 4b65dc92a2
7 changed files with 40 additions and 16 deletions

View File

@ -3,9 +3,9 @@
{{ if $data.feature.feature.enable }}
{{ with $data.feature.feature }}
{{"<!-- feature -->" | safeHTML}}
<section class="section section-bg p-3" id="feature">
<section class="section section-bg" id="feature">
<div class="container-fluid">
<div class="row justify-content-center align-items-center">
<div class="row justify-content-center align-items-center p-3">
<div class="col-12 col-md-2 m-md-0 m-5 m-md-3" style="height: 150px; background-image: url('{{ .image_webp | absURL }}'); background-size: contain; background-position: center; background-repeat: no-repeat; ">
<!-- this image is for trigger this section fallback background image -->
<img src="{{ .image_webp | absURL }}" style="display: none;" onerror="this.onerror=null;this.parentElement.style.backgroundImage= 'url({{ .image | absURL }})'" loading="lazy">
@ -15,7 +15,7 @@
<h2>{{ .title | markdownify }}</h2>
<p>{{ .content | markdownify }}</p>
{{ with .call_to_action }}
<div class="text-center text-md-left">
<div class="text-center text-md-left pt-3 px-3">
<a class="btn btn-primary" href="{{ .link | safeURL }}">{{ .text }}</a>
</div>
{{ end }}