use 'dark' class locally in header, hero or custom sections. adapt dark styles.

This commit is contained in:
2023-11-08 14:32:14 +01:00
parent 2133aabfb9
commit e3c547979a
9 changed files with 102 additions and 46 deletions

View File

@@ -1,7 +1,7 @@
{{ define "main" }}
<!-- Banner -->
{{ with .Params.banner }}
<section class="section pt-14">
<section class="section pt-14 hero {{ with .class }}{{ . }}{{ end }}">
<div class="container">
<div class="row justify-center">
<div class="lg:col-7 mb-8 text-center">
@@ -31,7 +31,7 @@
<!-- Features -->
{{ range $i, $e:= .Params.features }}
<section class="section-sm {{ with .class }}{{ . }}{{ end }} {{ if (modBool $i 2) }}bg-gradient{{ end }}">
<section class="section-sm sn-{{ add $i 1 }} {{ with .class }}{{ . }}{{ end }}">
<div class="container">
<div class="row items-center justify-between">
<div