This commit is contained in:
Denys Konovalov
2020-07-12 17:43:28 +02:00
parent 38b3969ec2
commit 4372ece310
11 changed files with 45 additions and 37 deletions

@ -31,19 +31,23 @@
<!-- /hero slider -->
<!-- banner-feature -->
{{ if $data.homepage.banner_feature.enable }}
{{ with $data.homepage.banner_feature }}
<section class="bg-gray overflow-md-hidden">
{{ if $data.homepage.success_banner.enable }}
{{ with $data.homepage.success_banner }}
<section class="bg-white overflow-md-hidden" id="success">
<div class="container-fluid p-0">
<div class="row no-gutters">
<div class="col-xl-4 col-lg-5 align-self-end">
<img class="img-fluid w-100" src="{{ .image | absURL }}" alt="banner-feature">
</div>
<div class="col-xl-8 col-lg-7">
<div class="row feature-blocks bg-gray justify-content-between">
<div class="row feature-blocks bg-white justify-content-between">
{{ range .feature_item }}
<div class="col-sm-6 col-xl-5 mb-xl-5 mb-lg-3 mb-4 text-center text-sm-left">
<i class="{{ .icon }} mb-xl-4 mb-lg-3 mb-4 feature-icon"></i>
{{ if .img }}
<img src="{{ .icon }}" class="mb-xl-4 mb-lg-3 mb-4 feature-icon"></img>
{{ else }}
<i class="{{ .icon }} mb-xl-4 mb-lg-3 mb-4 feature-icon"></i>
{{ end }}
<h3 class="mb-xl-4 mb-lg-3 mb-4">{{ .name | markdownify }}</h3>
<p>{{ .content | markdownify }}</p>
</div>
@ -131,7 +135,7 @@
<h5 class="section-title text-white">{{ .title | markdownify }}</h5>
{{ if .button.enable }}
{{ with .button }}
<a href="{{ .link | absLangURL }}" class="btn btn-secondary">{{ .label }}</a>
<a href="{{ .link | absLangURL }}" class="btn btn-secondary text-uppercase">{{ .label }}</a>
{{ end }}
{{ end }}
</div>