Skip to content

Commit 060a7e4

Browse files
committed
fix(team-showcase): align section header with standard block pattern
1 parent f53402d commit 060a7e4

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

modules/blox/blox/team-showcase/block.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@
5050
{{ with index $content "subtitle" }}{{ $subtitle = printf "%v" . | emojify | $page.RenderString }}{{ end }}
5151
{{ $text := "" }}
5252
{{ with index $content "text" }}{{ $text = printf "%v" . | emojify | $page.RenderString }}{{ end }}
53-
{{ $alignClass := cond (eq $align "left") "items-start text-left" "items-center text-center" }}
5453
{{ $headerContainerClass := cond (eq $align "left")
55-
"flex flex-col gap-4 items-start text-left w-full max-w-5xl"
56-
"flex flex-col gap-3 items-center text-center max-w-prose mx-auto justify-center px-6"
54+
"max-w-3xl mb-12 text-left"
55+
"text-center max-w-3xl mx-auto mb-12"
5756
}}
5857
{{ $ctaAlignClass := cond (eq $align "left") "text-left" "text-center" }}
5958

@@ -68,21 +67,21 @@
6867
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
6968

7069
{{/* Section Header */}}
71-
<div class="{{ $headerContainerClass }} {{ $alignClass }} mb-12">
70+
<div class="{{ $headerContainerClass }}">
7271
{{ with $title }}
73-
<div class="text-3xl sm:text-4xl lg:text-5xl font-bold text-gray-900 dark:text-white tracking-tight">
72+
<h2 class="text-3xl sm:text-4xl lg:text-5xl font-bold text-gray-900 dark:text-white tracking-tight mb-4">
7473
{{ . }}
75-
</div>
74+
</h2>
7675
{{ end }}
77-
76+
7877
{{ with $subtitle }}
79-
<p class="text-xl text-gray-600 dark:text-gray-400">
78+
<p class="text-xl text-primary-600 dark:text-primary-400 font-medium mb-3">
8079
{{ . }}
8180
</p>
8281
{{ end }}
83-
82+
8483
{{ with $text }}
85-
<div class="prose prose-lg lg:prose-xl dark:prose-invert max-w-prose">
84+
<div class="prose dark:prose-invert">
8685
{{ . }}
8786
</div>
8887
{{ end }}

0 commit comments

Comments
 (0)