-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
2,124 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{{/* Hugo Blox: CTA Card */}} | ||
{{/* Documentation: https://hugoblox.com/blocks/ */}} | ||
{{/* License: https://github.com/HugoBlox/hugo-blox-builder/blob/main/LICENSE.md */}} | ||
|
||
{{/* Initialise */}} | ||
{{ $page := .wcPage }} | ||
{{ $block := .wcBlock }} | ||
|
||
{{ $title := $block.content.title | emojify | $page.RenderString }} | ||
{{ $text := $block.content.text | emojify | $page.RenderString }} | ||
|
||
<div class="bg-black p-8 md:px-20 md:py-20 mt-20 mx-auto max-w-5xl rounded-lg flex flex-col items-center text-center"> | ||
<h2 class="text-white text-4xl md:text-6xl tracking-tight"> | ||
{{ $title }} | ||
</h2> | ||
<p class="text-slate-400 mt-4 text-lg md:text-xl"> | ||
{{ $text }} | ||
</p> | ||
{{ with $block.content.button }} | ||
<div class="flex mt-5"> | ||
<a href="{{.url}}" class="rounded text-center transition focus-visible:ring-2 ring-offset-2 ring-gray-200 px-5 py-2.5 bg-white text-black border-2 border-transparent"> | ||
{{.text}} | ||
</a> | ||
</div> | ||
{{ end }} | ||
</div> |
29 changes: 29 additions & 0 deletions
29
modules/blox-tailwind/layouts/partials/blox/cta-image-paragraph.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{/* Hugo Blox: CTA Image Paragraph */}} | ||
{{/* Documentation: https://hugoblox.com/blocks/ */}} | ||
{{/* License: https://github.com/HugoBlox/hugo-blox-builder/blob/main/LICENSE.md */}} | ||
|
||
{{/* Initialise */}} | ||
{{ $page := .wcPage }} | ||
{{ $block := .wcBlock }} | ||
|
||
<section class="bg-white dark:bg-gray-900"> | ||
{{ range $idx, $item := $block.content.items }} | ||
{{ $title := .title | emojify | $page.RenderString }} | ||
{{ $text := .text | emojify | $page.RenderString }} | ||
{{ $image := resources.GetMatch (path.Join "media" .image) }} | ||
{{ $image = $image.Process "Resize 800x webp" }} | ||
<div class="gap-8 items-center py-8 px-4 mx-auto max-w-screen-xl xl:gap-16 md:grid md:grid-cols-2 sm:py-16 lg:px-6"> | ||
<img class="w-full" src="{{$image.RelPermalink}}" alt="{{$title | plainify}}" {{ if (modBool $idx 2)}}style="order: 1"{{end}}> | ||
<div class="mt-4 md:mt-0"> | ||
<h2 class="mb-4 text-4xl tracking-tight font-extrabold text-gray-900 dark:text-white">{{$title}}</h2> | ||
<p class="mb-6 font-light text-gray-500 md:text-lg dark:text-gray-400">{{$text}}</p> | ||
{{ with .button }} | ||
<a href="{{.url}}" class="inline-flex items-center text-white bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:ring-primary-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:focus:ring-primary-900"> | ||
{{.text}} | ||
<svg class="ml-2 -mr-1 w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg> | ||
</a> | ||
{{ end }} | ||
</div> | ||
</div> | ||
{{ end }} | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{{/* Hugo Blox: Features */}} | ||
{{/* Documentation: https://hugoblox.com/blocks/ */}} | ||
{{/* License: https://github.com/HugoBlox/hugo-blox-builder/blob/main/LICENSE.md */}} | ||
|
||
{{/* Initialise */}} | ||
{{ $page := .wcPage }} | ||
{{ $block := .wcBlock }} | ||
{{ $title := $block.content.title | emojify | $page.RenderString }} | ||
{{ $text := $block.content.text | emojify | $page.RenderString }} | ||
|
||
<section> | ||
<div class="py-8 px-4 mx-auto max-w-screen-xl sm:py-16 lg:px-6"> | ||
<div class="max-w-screen-md mb-8 lg:mb-16 flex flex-col justify-center mx-auto"> | ||
{{ with $title }} | ||
<h2 class="mb-4 text-4xl tracking-tight font-extrabold text-gray-900 dark:text-white text-center">{{.}}</h2> | ||
{{ end }} | ||
{{ with $text }} | ||
<p class="text-gray-500 sm:text-xl dark:text-gray-400 text-center">{{.}}</p> | ||
{{ end }} | ||
</div> | ||
<div class="space-y-8 md:grid md:grid-cols-2 lg:grid-cols-3 md:gap-12 md:space-y-0"> | ||
{{ range $block.content.items }} | ||
<div> | ||
{{ with .icon }} | ||
<div class="flex justify-center items-center mb-4 w-10 h-10 rounded-full bg-primary-100 lg:h-12 lg:w-12 dark:bg-primary-900 text-primary-600 dark:text-primary-300"> | ||
{{ partial "functions/get_icon" (dict "name" . "attributes" `class="w-5 h-5 lg:w-6 lg:h-6"`) }} | ||
</div> | ||
{{ end }} | ||
<h3 class="mb-2 text-xl font-bold dark:text-white">{{ .name | $page.RenderString }}</h3> | ||
<p class="text-gray-500 dark:text-gray-400">{{ .description | $page.RenderString }}</p> | ||
</div> | ||
{{ end }} | ||
</div> | ||
</div> | ||
</section> |
32 changes: 23 additions & 9 deletions
32
modules/blox-tailwind/layouts/partials/functions/get_icon.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters