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

@ -10,7 +10,9 @@
<div class="row">
<div class="col-lg-12">
<div class="p-3">
<h2>{{ .title | markdownify }}</h2>
<div class="title text-center wow fadeIn">
<h2>{{ .title | markdownify }}</h2>
</div>
<p>{{ .content | markdownify }}</p>
{{ if .button.enable }}
{{ with .button }}
@ -18,7 +20,7 @@
{{ end }}
{{ end }}
{{ with .call_to_action }}
<div class="text-center p-3">
<div class="text-center pt-3 px-3">
{{ range . }}
<a href="{{ .link | safeURL }}" class="btn btn-primary m-2">{{ .text }}</a>
{{ end }}

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 }}

View File

@ -10,7 +10,7 @@
{{ end }}
</a>
<button class="navbar-toggler rounded-0" type="button" data-toggle="collapse" data-target="#navigation">
<button class="navbar-toggler rounded-0" type="button" data-toggle="collapse" data-target="#navigation" onfocusout="this.click()">
<span class="navbar-toggler-icon"></span>
</button>

View File

@ -3,7 +3,7 @@
{{ if $data.service.service.enable}}
{{ with $data.service.service}}
{{"<!-- service -->" | safeHTML }}
<section id="services" class="bg-one section">
<section id="services" class="bg-one section stick">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-12">

View File

@ -3,7 +3,7 @@
{{ if $data.skill.skill.enable }}
{{ with $data.skill.skill }}
{{"<!-- Skills -->" | safeHTML }}
<section id="skills" class="section bg-one">
<section id="skills" class="section bg-one stick">
<div class="container">
{{ if .title }}
<div class="row">
@ -33,8 +33,8 @@
{{ $col := div 12 (len .content_blocks) }}
<div class="row">
{{ range .content_blocks }}
<div class="col-{{ $col }}">
{{ . | markdownify }}
<div class="col-sm-{{ $col }} col-12">
<p>{{ . | markdownify }}</p>
</div>
{{ end }}
</div>