From bae61d7968aee69070fc51f91fc757b5ab54fb51 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 20 May 2025 23:29:29 -0500 Subject: [PATCH] typeit isn't working --- content/_index.md | 9 ++++--- static/css/main.css | 18 +++---------- templates/layout.html | 1 + templates/shortcodes/button.html | 8 ++++++ templates/shortcodes/typeit.html | 44 ++++++++++---------------------- 5 files changed, 30 insertions(+), 50 deletions(-) create mode 100644 templates/shortcodes/button.html diff --git a/content/_index.md b/content/_index.md index ed29805..e96efaf 100644 --- a/content/_index.md +++ b/content/_index.md @@ -8,17 +8,17 @@ Teens For Christ Connection (TFC) is a rural ministry reaching out to the missio
-{{< typeit tag=h2 lifeLike=true >}} +{% typeit(tag="h2" lifeLike="true") %} Camp registration is now open!! -{{< /typeit >}} +{% end %} -{{< button href="/camp-form" >}} +{% button(href="/camp-form") %} Fill out now! -{{< /button >}} +{% end %}
@@ -28,6 +28,7 @@ Fill out now! > If you need to pay for your camp form, pay for registration ($85) [here](https://secure.myvanco.com/L-Z772/campaign/C-13JPJ) or pay for the full price ($185) [here](https://secure.myvanco.com/L-Z772/campaign/C-13JQE). +{{ spacing(height="h-8") }} {{ pt(src="https://videos.tfcconnection.org/videos/embed/0e6378c4-bb58-4fb1-8edf-72b73efc5ad2") }} diff --git a/static/css/main.css b/static/css/main.css index 5505413..765d864 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -312,15 +312,6 @@ .mx-8 { margin-inline: calc(var(--spacing) * 8); } - .mx-10 { - margin-inline: calc(var(--spacing) * 10); - } - .mx-16 { - margin-inline: calc(var(--spacing) * 16); - } - .mx-24 { - margin-inline: calc(var(--spacing) * 24); - } .mx-auto { margin-inline: auto; } @@ -472,9 +463,6 @@ .h-64 { height: calc(var(--spacing) * 64); } - .h-80 { - height: calc(var(--spacing) * 80); - } .h-full { height: 100%; } @@ -526,9 +514,6 @@ .w-64 { width: calc(var(--spacing) * 64); } - .w-80 { - width: calc(var(--spacing) * 80); - } .w-auto { width: auto; } @@ -697,6 +682,9 @@ .\!rounded-lg { border-radius: var(--radius-lg) !important; } + .\!rounded-md { + border-radius: var(--radius-md) !important; + } .rounded-full { border-radius: calc(infinity * 1px); } diff --git a/templates/layout.html b/templates/layout.html index 97b642a..a24aaa3 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -321,5 +321,6 @@ {% endif %} {% block extra_js %} {% endblock extra_js %} + diff --git a/templates/shortcodes/button.html b/templates/shortcodes/button.html new file mode 100644 index 0000000..dca163f --- /dev/null +++ b/templates/shortcodes/button.html @@ -0,0 +1,8 @@ + + {{ body }} + diff --git a/templates/shortcodes/typeit.html b/templates/shortcodes/typeit.html index 2155ee0..9a12a14 100644 --- a/templates/shortcodes/typeit.html +++ b/templates/shortcodes/typeit.html @@ -1,37 +1,19 @@ -{{- $content := split .Inner "\n" -}} -{{- $initialString := .Get "initialString" | default "" -}} -{{- $speed := .Get "speed" | default 100 -}} -{{- $lifeLike := .Get "lifeLike" | default false -}} -{{- $startDelay := .Get "startDelay" | default 0 -}} -{{- $breakLines := .Get "breakLines" | default true -}} -{{- $waitUntilVisible := .Get "waitUntilVisible" | default true -}} -{{- $loop := .Get "loop" | default false -}} +{% set id = "typeit-{% get_random(0, 100) %}" %} -{{- $classList := slice -}} -{{- with .Get "class" -}} - {{- $classList = $classList | append . -}} -{{- end -}} -{{- $tag := .Get "tag" | default "div" -}} - -{{ $id := delimit (slice "typeit" .Ordinal now.UnixNano) "-" }} - -{{- $attrs := printf `id="%v"` $id -}} -{{- with $classList -}} - {{- $attrs = delimit $classList " " | printf `%v class="%v"` $attrs -}} -{{- end -}} - -{{ printf `<%v %v>%s` $tag $attrs $initialString $tag | safeHTML }} + +

{{ body }}

\ No newline at end of file +