impl. partial IconheaderSubheaderText for streamlined textrendering

This commit is contained in:
Andreas Hnida 2024-02-16 08:54:15 +00:00
commit 6d5d93fae1
3 changed files with 74 additions and 77 deletions

View file

@ -32,44 +32,56 @@ keyfeatures:
" "
# Features # Features
features: featureslead:
- title: "What's Included in Hugoplate" headline: "Das Werkzeug für die ambulante Pflege"
image: "/images/service-1.png" subline: "VeruA ** Verwaltung & Abrechnung"
content: "Hugoplate is a comprehensive starter template that includes everything you need to get started with your Hugo project. What's Included in Hugoplate" content: "**VeruA ** Verwaltung** & Abrechnung ist ein Werkzeug für Klientenmanagement, Planung, Dokumentation, Abrechnung und Statistik im Bereich ambulante Pflege. <br><br>Die für den ambulanten Einsatz optimierten Funktionen gewährleisten einen ökonomischen Einsatz aller unternehmerischen Ressourcen sowohl für Spitex-Organisationen als auch für freiberufliche Pflegefachpersonen. <br><br>Die als Webseite angelegte Programmoberfläche macht die Bedienung besonders einfach und intuitiv."
bulletpoints:
- "10+ Pre-build pages"
- "95+ Google Pagespeed Score"
- "Build with Hugo and TailwindCSS for easy and customizable styling"
- "Fully responsive on all devices"
- "SEO-optimized for better search engine rankings"
- "**Open-source and free** for personal and commercial use"
button:
enable: false
label: "Get Started Now"
link: "#"
- title: "Discover the Key Features Of Hugo" features:
image: "/images/service-2.png" - headline: "Headline"
content: "Hugo is an all-in-one web framework for building fast, content-focused websites. It offers a range of exciting features for developers and website creators. Some of the key features are:" subline: "subline"
bulletpoints: icon: "user"
- "Zero JS, by default: No JavaScript runtime overhead to slow you down." content: "Vom stillen welt wohl euch froher weiten um. Mein bringt gezeigt es irrt. Mich irren zerstoben mein tage lebt und."
- "Customizable: Tailwind, MDX, and 100+ other integrations to choose from."
- "UI-agnostic: Supports React, Preact, Svelte, Vue, Solid, Lit and more."
button:
enable: true
label: "Get Started Now"
link: "https://github.com/zeon-studio/hugoplate"
- title: "The Top Reasons to Choose Hugo for Your Hugo Project" # TODO Get rid of this stuff
image: "/images/service-3.png" # features:
content: "With Hugo, you can build modern and content-focused websites without sacrificing performance or ease of use." # - title: "What's Included in Hugoplate"
bulletpoints: # image: "/images/service-1.png"
- "Instantly load static sites for better user experience and SEO." # content: "Hugoplate is a comprehensive starter template that includes everything you need to get started with your Hugo project. What's Included in Hugoplate"
- "Intuitive syntax and support for popular frameworks make learning and using Hugo a breeze." # bulletpoints:
- "Use any front-end library or framework, or build custom components, for any project size." # - "10+ Pre-build pages"
- "Built on cutting-edge technology to keep your projects up-to-date with the latest web standards." # - "95+ Google Pagespeed Score"
button: # - "Build with Hugo and TailwindCSS for easy and customizable styling"
enable: false # - "Fully responsive on all devices"
label: "" # - "SEO-optimized for better search engine rankings"
link: "" # - "**Open-source and free** for personal and commercial use"
# button:
# enable: false
# label: "Get Started Now"
# link: "#"
# - title: "Discover the Key Features Of Hugo"
# image: "/images/service-2.png"
# content: "Hugo is an all-in-one web framework for building fast, content-focused websites. It offers a range of exciting features for developers and website creators. Some of the key features are:"
# bulletpoints:
# - "Zero JS, by default: No JavaScript runtime overhead to slow you down."
# - "Customizable: Tailwind, MDX, and 100+ other integrations to choose from."
# - "UI-agnostic: Supports React, Preact, Svelte, Vue, Solid, Lit and more."
# button:
# enable: true
# label: "Get Started Now"
# link: "https://github.com/zeon-studio/hugoplate"
# - title: "The Top Reasons to Choose Hugo for Your Hugo Project"
# image: "/images/service-3.png"
# content: "With Hugo, you can build modern and content-focused websites without sacrificing performance or ease of use."
# bulletpoints:
# - "Instantly load static sites for better user experience and SEO."
# - "Intuitive syntax and support for popular frameworks make learning and using Hugo a breeze."
# - "Use any front-end library or framework, or build custom components, for any project size."
# - "Built on cutting-edge technology to keep your projects up-to-date with the latest web standards."
# button:
# enable: false
# label: ""
# link: ""
--- ---

View file

@ -74,49 +74,16 @@
</section> </section>
<!-- /Key Features --> <!-- /Key Features -->
<!-- Features --> <!-- Features -->
{{ range $i, $e:= .Params.features }} {{ with .Params.featureslead }}
<section class="section-sm {{ if (modBool $i 2) }}bg-gradient{{ end }}"> <section>
<div class="container"> <div class="container">
<div class="row items-center justify-between"> <div class="row">
<div {{ partial "components/IconHeaderSubheaderText" (dict "icon" .icon "headline" .headline "subline" .subline "text" .content) }}
class="mb:md-0 {{ if not (modBool $i 2) }}
md:order-2
{{ end }} md:col-5 mb-6">
{{ partial "image" (dict "Src" .image "Alt" "feature image" "DisplayXL" "520x" "DisplayLG" "425x" "DisplayMD" "360x") }}
</div>
<div
class="{{ if not (modBool $i 2) }}
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>
</div> </div>
</div> </div>
</section> </section>
{{ end }} {{ end }}
<!-- /Features --> <!-- /Features -->
<!-- Testimonials --> <!-- Testimonials -->
{{ with site.GetPage "sections/testimonial" }} {{ with site.GetPage "sections/testimonial" }}
{{ if .Params.enable }} {{ if .Params.enable }}

View file

@ -0,0 +1,18 @@
{{ define "IconHeaderSubheaderText" }}
<div class="flex items-center space-x-4">
{{ with .icon }}
<i class="fas fa-{{ . }} fa-fw text-5xl text-primary py-10"></i>
{{ end }}
<div>
{{ with .headline }}
<h2 class="text-xl font-bold">{{ . }}</h2>
{{ end }}
{{ with .subline }}
<h3 class="text-lg text-gray-500">{{ . }}</h3>
{{ end }}
{{ with .text }}
<p class="text-base text-gray-700">{{ . }}</p>
{{ end }}
</div>
</div>
{{ end }}