{{/* Hugo Blox: Contact Info Block */}} {{/* 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 | default "Contact Us" | emojify | $page.RenderString }} {{ $subtitle := $block.content.subtitle | emojify | $page.RenderString }}
{{/* Section Header */}}
{{ with $title }}

{{ . }}

{{ end }} {{ with $subtitle }}

{{ . }}

{{ end }}
{{/* Contact Cards Grid */}}
{{/* Visit Us Card */}}
{{ partial "functions/get_icon" (dict "name" "hero/map-pin" "attributes" "class=\"w-6 h-6 text-primary-600 dark:text-primary-400\"") }}

{{ $block.content.visit_title | default "Visit Us" }}

{{ with $block.content.address }}
{{ range .lines }}

{{ . }}

{{ end }}
{{ end }} {{ with $block.content.office_hours }}

Office Hours

{{ range . }}

{{ . }}

{{ end }}
{{ end }} {{ with $block.content.map_url }} {{ partial "functions/get_icon" (dict "name" "hero/map" "attributes" "class=\"w-5 h-5 mr-2\"") }} View on Map {{ end }}
{{/* Connect Card */}}
{{ partial "functions/get_icon" (dict "name" "hero/chat-bubble-left-right" "attributes" "class=\"w-6 h-6 text-primary-600 dark:text-primary-400\"") }}

{{ $block.content.connect_title | default "Connect" }}

{{/* Contact Methods */}}
{{ with $block.content.email }}
{{ partial "functions/get_icon" (dict "name" "hero/envelope" "attributes" "class=\"w-5 h-5 text-gray-500 dark:text-gray-400 mr-3\"") }} {{ . }}
{{ end }} {{ with $block.content.phone }}
{{ partial "functions/get_icon" (dict "name" "hero/phone" "attributes" "class=\"w-5 h-5 text-gray-500 dark:text-gray-400 mr-3\"") }} {{ . }}
{{ end }} {{/* Social Media */}} {{ with $block.content.social }} {{ end }}
{{/* Prospective Members */}} {{ with $block.content.prospective }}

{{ .title | default "Prospective Members" }}

{{ .text }}

{{ with .button }} {{ partial "functions/get_icon" (dict "name" "hero/user-plus" "attributes" "class=\"w-5 h-5 mr-2\"") }} {{ .text }} {{ end }}
{{ end }}
{{/* Optional Map Embed */}} {{ with $block.content.map_embed }}
{{ . | safeHTML }}
{{ end }} {{/* Contact Form (optional) */}} {{ if $block.content.show_form }}

Send us a Message

{{ end }}