ADD quote and default section, ADD cover images to lists, FIX contact section

This commit is contained in:
Hoernschen 2024-03-15 17:37:03 +01:00
parent e6257036b9
commit 57e72154a5
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
8 changed files with 82 additions and 15 deletions

View file

@ -10,10 +10,13 @@
<div class="section-content contact">
<div class="contact-text">
<h1>{{ $contact.title }}</h1>
{{ if $contact.subtitle }}
<h3>{{ $contact.subtitle }}</h3>
{{ end }}
<p>{{ $content }}</p>
</div>
<div class="contact-button-container">
<a class="contact-button" href="{{ $contact.button.url }}">{{ $contact.button.text }}</a>
</div>
</div>
</div>
</div>

View file

@ -0,0 +1,19 @@
{{- $params := .params }}
{{- $odd := .odd }}
{{- $id := "section"}}
{{if $params.id}}
{{- $id = $params.id}}
{{else if .id}}
{{- $id = .id }}
{{end}}
<div id="{{ $id }}" class="section {{if eq $odd 0}} section-even {{end}}">
<div class="section-content funding">
{{ with $params.title }}
<div class="title">
<h1 class="content-title">{{ . }}</h1>
<div class="divider"></div>
</div>
{{ end }}
{{ .content }}
</div>
</div>

View file

@ -0,0 +1,13 @@
{{- $quote := .quote }}
{{- $odd := .odd }}
{{- $id := "quote"}}
{{if .id}}
{{- $id = .id }}
{{end}}
<div id="{{ $id }}" class="section {{if eq $odd 0}} section-even {{end}}">
<div class="section-content quote">
<i class="icon-quote-left"></i>
{{ .content }}
<i class="icon-quote-right"></i>
</div>
</div>

View file

@ -10,15 +10,17 @@
<div id="{{$id}}" class="section {{if eq $odd 0}} section-even {{end}} row">
<div class="section-content services">
{{if and ($service.image) (eq $service.image.direction "left")}}
<div class="service-icon-container col-4">
<div class="service-icon-container col-5">
<img class="service-icon" src="{{ $service.image.url }}" alt="{{ $service.image.alt }}">
</div>
{{end}}
<div class="service-description {{if $service.image}} col-8 {{end}}">
<div class="title">
<h1 class="content-title">{{ $service.title }}</h1>
<div class="service-description {{if $service.image}} col-7 {{end}}">
{{ with $service.title }}
<div class="title">
<h1 class="content-title">{{ . }}</h1>
<div class="divider"></div>
</div>
</div>
{{ end }}
<p>{{ $content }}</p>
<br />
{{ if $service.button }}
@ -28,9 +30,9 @@
{{ end }}
</div>
{{if and ($service.image) (eq $service.image.direction "right")}}
<div class="service-icon-container col-4">
<div class="service-icon-container col-5">
<img class="service-icon" src="{{ $service.image.url }}" alt="{{ $service.image.alt }}">
</div>
{{end}}
</div>
</div>
</div>