|
51 | 51 | {{ $text := "" }} |
52 | 52 | {{ with index $content "text" }}{{ $text = printf "%v" . | emojify | $page.RenderString }}{{ end }} |
53 | 53 | {{ $alignClass := cond (eq $align "left") "items-start text-left" "items-center text-center" }} |
54 | | -{{ $headerWidthClass := cond (eq $align "left") "max-w-5xl" "max-w-3xl mx-auto" }} |
| 54 | +{{ $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" |
| 57 | +}} |
55 | 58 | {{ $ctaAlignClass := cond (eq $align "left") "text-left" "text-center" }} |
56 | 59 |
|
57 | 60 | {{ $columnsClasses := dict |
|
65 | 68 | <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
66 | 69 |
|
67 | 70 | {{/* Section Header */}} |
68 | | - <div class="flex flex-col gap-4 {{ $alignClass }} {{ $headerWidthClass }} mb-12"> |
| 71 | + <div class="{{ $headerContainerClass }} {{ $alignClass }} mb-12"> |
69 | 72 | {{ with $title }} |
70 | | - <h2 class="text-3xl sm:text-4xl lg:text-5xl font-bold text-gray-900 dark:text-white tracking-tight"> |
| 73 | + <div class="text-3xl sm:text-4xl lg:text-5xl font-bold text-gray-900 dark:text-white tracking-tight"> |
71 | 74 | {{ . }} |
72 | | - </h2> |
| 75 | + </div> |
73 | 76 | {{ end }} |
74 | 77 |
|
75 | 78 | {{ with $subtitle }} |
76 | | - <p class="mt-4 text-xl text-gray-600 dark:text-gray-400"> |
| 79 | + <p class="text-xl text-gray-600 dark:text-gray-400"> |
77 | 80 | {{ . }} |
78 | 81 | </p> |
79 | 82 | {{ end }} |
80 | 83 |
|
81 | 84 | {{ with $text }} |
82 | | - <div class="mt-6 prose prose-lg lg:prose-xl dark:prose-invert max-w-3xl"> |
| 85 | + <div class="prose prose-lg lg:prose-xl dark:prose-invert max-w-prose"> |
83 | 86 | {{ . }} |
84 | 87 | </div> |
85 | 88 | {{ end }} |
@@ -217,16 +220,15 @@ <h3 class="text-2xl font-bold text-gray-900 dark:text-white mb-6 pb-2 border-b b |
217 | 220 | <div class="group relative"> |
218 | 221 | <div class="relative overflow-hidden rounded-2xl bg-white dark:bg-gray-800 shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1"> |
219 | 222 |
|
220 | | - <a href="{{ $link }}" class="block relative aspect-[4/5] overflow-hidden" aria-label="{{ $profile.title }}"> |
| 223 | + <a href="{{ $link }}" class="block relative aspect-square overflow-hidden bg-gray-100 dark:bg-gray-800" aria-label="{{ $profile.title }}"> |
221 | 224 | {{ if $avatar }} |
222 | | - {{ $image := $avatar.Fit "400x500 Center webp" }} |
| 225 | + {{ $image := $avatar.Fit "600x600 Center q90" }} |
223 | 226 | <img src="{{ $image.RelPermalink }}" |
224 | 227 | alt="{{ $profile.title }}" |
225 | 228 | width="{{ $image.Width }}" |
226 | 229 | height="{{ $image.Height }}" |
227 | 230 | loading="lazy" |
228 | | - class="w-full h-full object-cover object-center transition-transform duration-300 group-hover:scale-110"> |
229 | | - <div class="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div> |
| 231 | + class="w-full h-full object-contain object-center transition-transform duration-300 group-hover:scale-105"> |
230 | 232 | {{ else }} |
231 | 233 | <div class="absolute inset-0 bg-gray-100 dark:bg-gray-700 flex items-center justify-center text-4xl font-semibold text-gray-600 dark:text-gray-200"> |
232 | 234 | {{ $initial }} |
@@ -415,16 +417,15 @@ <h3 class="text-xl font-bold text-gray-900 dark:text-white mb-1"> |
415 | 417 | {{ $initial := cond (gt (len $nameSource) 0) (upper (substr $nameSource 0 1)) "?" }} |
416 | 418 | <div class="group relative"> |
417 | 419 | <div class="relative overflow-hidden rounded-2xl bg-white dark:bg-gray-800 shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1"> |
418 | | - <a href="{{ $link }}" class="block relative aspect-[4/5] overflow-hidden" aria-label="{{ $profile.title }}"> |
| 420 | + <a href="{{ $link }}" class="block relative aspect-square overflow-hidden bg-gray-100 dark:bg-gray-800" aria-label="{{ $profile.title }}"> |
419 | 421 | {{ if $avatar }} |
420 | | - {{ $image := $avatar.Fit "400x500 Center webp" }} |
| 422 | + {{ $image := $avatar.Fit "600x600 Center q90" }} |
421 | 423 | <img src="{{ $image.RelPermalink }}" |
422 | 424 | alt="{{ $profile.title }}" |
423 | 425 | width="{{ $image.Width }}" |
424 | 426 | height="{{ $image.Height }}" |
425 | 427 | loading="lazy" |
426 | | - class="w-full h-full object-cover object-center transition-transform duration-300 group-hover:scale-110"> |
427 | | - <div class="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div> |
| 428 | + class="w-full h-full object-contain object-center transition-transform duration-300 group-hover:scale-105"> |
428 | 429 | {{ else }} |
429 | 430 | <div class="absolute inset-0 bg-gray-100 dark:bg-gray-700 flex items-center justify-center text-4xl font-semibold text-gray-600 dark:text-gray-200"> |
430 | 431 | {{ $initial }} |
|
0 commit comments