292 lines
12 KiB
HTML
292 lines
12 KiB
HTML
{{ define "main" }}
|
|
<!-- Banner -->
|
|
{{ with .Params.banner }}
|
|
<section class="section pt-14">
|
|
<div class="container">
|
|
<div class="row justify-center">
|
|
{{ if not .hide_banner_img }}
|
|
<div class="col-12">
|
|
{{ partial "image" (dict "Src" .image "Alt" "Banner image" "Loading" "eager" "Class" "mx-auto lg:!max-w-[800px]" "DisplayXL" "800x" ) }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ with .triple_header }}
|
|
{{ if .enable }}
|
|
<div class="col-10">
|
|
<div class="row">
|
|
<div class="col-4 all:col-12">
|
|
<a href="{{ .link_left }}">
|
|
{{ partial "image" (dict "Src" .img_left "Alt" .alt_text_left "Loading" "eager" "Class" "logo-light" ) }}
|
|
{{ partial "image" (dict "Src" .img_left_dark "Alt" .alt_text_right "Loading" "eager" "Class" "logo-dark" ) }}
|
|
</a>
|
|
</div>
|
|
<div class="col-4 all:col-12">
|
|
<a href="{{ .link_center }}">
|
|
{{ partial "image" (dict "Src" .img_center "Alt" .alt_text_center "Loading" "eager" "Class" "logo-light" ) }}
|
|
{{ partial "image" (dict "Src" .img_center_dark "Alt" .alt_text_right "Loading" "eager" "Class" "logo-dark" ) }}
|
|
</a>
|
|
</div>
|
|
<div class="col-4 all:col-12">
|
|
<a href="{{ .link_right }}">
|
|
{{ partial "image" (dict "Src" .img_right "Alt" .alt_text_right "Loading" "eager" "Class" "logo-light" ) }}
|
|
{{ partial "image" (dict "Src" .img_right_dark "Alt" .alt_text_right "Loading" "eager" "Class" "logo-dark" ) }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
<div class="lg:col-7 md:col-9 mb-8 text-center">
|
|
<h1 class="mb-8 mt-10 text-h3 lg:-texth1">
|
|
{{ .title | markdownify }}
|
|
</h1>
|
|
<p class="mb-8 dark:text-white">
|
|
{{ .content | markdownify }}
|
|
</p>
|
|
{{ with .button }}
|
|
{{ if .enable }}
|
|
<a class="{{ .class }}"
|
|
href="{{ .link | absURL }}"
|
|
{{ if strings.HasPrefix .link `http` }}
|
|
target="_blank" rel="noopener"
|
|
{{ end }}>
|
|
{{ .label }}
|
|
<i class="{{ .icon }}"></i>
|
|
</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ with .button2 }}
|
|
{{ if .enable }}
|
|
<a class="{{ .class }}"
|
|
href="{{ .link | absURL }}"
|
|
{{ if strings.HasPrefix .link `http` }}
|
|
target="_blank" rel="noopener"
|
|
{{ end }}>
|
|
{{ .label }}
|
|
<i class="{{ .icon }}"></i>
|
|
</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{ end }}
|
|
<!-- /Banner -->
|
|
<!-- Features -->
|
|
{{ $tick := 0 }}
|
|
{{ range $i, $e:= .Params.features }}
|
|
|
|
<section class="section-sm nim-h-screen relative pb-0" style="background-color: {{ .bg_color }}">
|
|
{{ with .transition }}
|
|
{{ if .start }}
|
|
<div class="relative bg-center bg-top bg-cover bg-no-repeat dark:hidden block xl:-mt-20 -mt-16 {{ .start_class }}"
|
|
style="height: 100px;z-index:2;mask-image: url('{{ .start }}');background-color: {{ .start_color }};"></div>
|
|
{{ end }}
|
|
{{ if .start_dark }}
|
|
<div class="relative bg-center bg-top bg-cover bg-no-repeat dark:block hidden xl:-mt-20 -mt-16 {{ .start_class }}"
|
|
style="height: 100px;z-index:2;mask-image: url('{{ .start_dark }}');background-color: {{ .start_dark_color }};"></div>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ with .bg_img }}
|
|
{{ $res := resources.Get .img }}
|
|
<div class="absolute inset-0 bg-cover bg-center bg-no-repeat {{ if .parallax }} bg-fixed parallax-bg {{ end }}"
|
|
style="background-image: url('{{ $res.RelPermalink }}')"></div>
|
|
{{ end }}
|
|
|
|
<div class="container relative mx-auto" style="z-index: 2;">
|
|
<div class="row items-center justify-between">
|
|
{{ if eq .side "center" }}
|
|
<div
|
|
class="mx-auto md:col-8 lg:col-8 {{ .content_class }}">
|
|
<h2 class="mb-4 {{ .title_class }}">
|
|
{{ .title | markdownify }}
|
|
</h2>
|
|
{{ with .swiper }}
|
|
<div class="swiper swiper-slider">
|
|
<div class="swiper-wrapper">
|
|
{{ range .slides }}
|
|
<div class="swiper-slide">
|
|
<div class="col-md-12">
|
|
<a href="{{ .link }}">
|
|
{{ $res := resources.Get .icon }}
|
|
<img src="{{ $res.RelPermalink }}" />
|
|
<span>{{ .name }}</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
<div class="swiper-slider-pagination mt-9 flex items-center justify-center text-center"></div>
|
|
|
|
{{ if .show_buttons }}
|
|
<div class="swiper-button-next ml-16" style="{{ .button_style }}"></div>
|
|
<div class="swiper-button-prev mr-16" style="{{ .button_style }}"></div>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
<p class="mb-8 text-lg">
|
|
{{ .content | markdownify }}
|
|
</p>
|
|
<ul>
|
|
{{ range .bulletpoints }}
|
|
<li class="relative mb-4 pl-6">
|
|
<i class="fa fa-check absolute left-0 top-1.5"></i>
|
|
{{ . | markdownify }}
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ with .button }}
|
|
{{ if .enable }}
|
|
<a class="btn mt-6 {{ .class }}" href="{{ .link | absURL }}">
|
|
{{ .label }}
|
|
<i class="fa fa-arrow-right pl-2"></i>
|
|
</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ else }}
|
|
|
|
{{ if eq .side "left" }}
|
|
{{ $tick = 0 }}
|
|
{{ else if eq .side "right" }}
|
|
{{ $tick = 1 }}
|
|
{{ end }}
|
|
|
|
{{ with .bg_img }}
|
|
{{ if .parallax }}
|
|
<div class="relative h-screen overflow-hidden">
|
|
<div class="absolute inset-0 bg-no-repeat bg-cover
|
|
bg-fixed parallax-bg"
|
|
style="background-image: url('{{ .img }}');">
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
<div class="mb:md-0 md:col-5 mb-6
|
|
{{ if eq $tick 1 }}
|
|
md:order-2
|
|
{{ end }}">
|
|
|
|
{{ if .image }}
|
|
{{ partial "image" (dict "Src" .image "Alt" "feature image" "DisplayXL" "520x" "DisplayLG" "425x" "DisplayMD" "360x") }}
|
|
{{ end }}
|
|
</div>
|
|
<div
|
|
class="{{ if eq $tick 0 }}
|
|
md:order-1
|
|
{{ end }} md:col-7 lg:col-6">
|
|
<h2 class="mb-4">
|
|
{{ .title | markdownify }}
|
|
</h2>
|
|
<p class="mb-8 text-lg">
|
|
{{ .content | markdownify }}
|
|
</p>
|
|
<ul>
|
|
{{ range .bulletpoints }}
|
|
<li class="relative mb-4 pl-6">
|
|
<i class="fa fa-check absolute left-0 top-1.5"></i>
|
|
{{ . | markdownify }}
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ with .button }}
|
|
{{ if .enable }}
|
|
<a class="btn btn-primary mt-6" href="{{ .link | absURL }}">
|
|
{{ .label }}
|
|
<i class="fa fa-arrow-right pl-2"></i>
|
|
</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ if eq $tick 0 }}
|
|
{{ $tick = 1}}
|
|
{{ else }}
|
|
{{ $tick = 0 }}
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ with .transition }}
|
|
{{ if .end }}
|
|
<div class="relative bg-center bg-top bg-cover bg-no-repeat dark:hidden block xl:-mb-20 -mb-16 {{ .end_class }}"
|
|
style="height: 100px;z-index:2;mask-image: url('{{ .end }}');background-color: {{ .end_color }};"></div>
|
|
{{ end }}
|
|
{{ if .end_dark }}
|
|
<div class="relative bg-center bg-top bg-cover bg-no-repeat dark:block hidden xl:-mb-20 -mb-16 {{ .end_class }}"
|
|
style="height: 100px;z-index:2;mask-image: url('{{ .end_dark }}');background-color: {{ .end_dark_color }};"></div>
|
|
{{ end }}
|
|
{{ end}}
|
|
</section>
|
|
{{ end }}
|
|
<!-- /Features -->
|
|
|
|
<!-- Testimonials -->
|
|
{{ with site.GetPage "sections/testimonial" }}
|
|
{{ if .Params.enable }}
|
|
<section class="section">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="md:col-10 lg:col-8 xl:col-6 mx-auto mb-12 text-center">
|
|
<h2 class="mb-4">
|
|
{{ .Title | markdownify }}
|
|
</h2>
|
|
<p>
|
|
{{ .Params.description | markdownify }}
|
|
</p>
|
|
</div>
|
|
<div class="col-12">
|
|
<div class="swiper testimonial-slider">
|
|
<div class="swiper-wrapper">
|
|
{{ range .Params.testimonials }}
|
|
<div class="swiper-slide">
|
|
<div
|
|
class="bg-theme-light dark:bg-darkmode-theme-light rounded-lg px-7 py-10">
|
|
<div class="text-dark dark:text-white">
|
|
<svg
|
|
width="33"
|
|
height="20"
|
|
viewBox="0 0 33 20"
|
|
fill="none"
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
<path
|
|
d="M1.28375 19.41L0.79375 18.64C1.21375 17.0067 1.75042 15.07 2.40375 12.83C3.05708 10.5433 3.75708 8.28 4.50375 6.04C5.29708 3.75333 6.06708 1.77 6.81375 0.0899959H15.3538C14.9338 2.09666 14.4904 4.26667 14.0238 6.6C13.5571 8.88666 13.1371 11.15 12.7638 13.39C12.4371 15.5833 12.1571 17.59 11.9238 19.41H1.28375ZM31.69 0.0899959L32.18 0.859998C31.76 2.54 31.2233 4.5 30.57 6.74C29.9167 8.98 29.2167 11.2433 28.47 13.53C27.7233 15.77 26.9533 17.73 26.16 19.41H17.69C18.0167 17.9167 18.3433 16.33 18.67 14.65C18.9967 12.9233 19.3 11.22 19.58 9.54C19.9067 7.81333 20.1867 6.15667 20.42 4.57C20.7 2.93666 20.91 1.44333 21.05 0.0899959H31.69Z"
|
|
fill="currentColor" />
|
|
</svg>
|
|
</div>
|
|
<blockquote class="mt-8">
|
|
{{ .content | markdownify }}
|
|
</blockquote>
|
|
<div class="mt-11 flex items-center">
|
|
<div class="text-dark dark:text-white">
|
|
{{ partial "image" (dict "Src" .avatar "Size" "50x50" "Class" "rounded-full" "Alt" .name) }}
|
|
</div>
|
|
<div class="ml-4">
|
|
<a href="{{ .link }}">
|
|
<h3 class="h5 font-primary font-semibold">
|
|
{{ .name }}
|
|
</h3>
|
|
</a>
|
|
<p class="text-dark dark:text-white">
|
|
{{ .designation | markdownify }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
<div class="testimonial-slider-pagination mt-9 flex items-center justify-center text-center"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{ end }}
|
|
{{ end }}
|
|
<!-- /Testimonials -->
|
|
{{ end }}
|