blob: 4ee7af187aa8214921adb447cbcc2a9ac7b7a7ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{{ define "main" }}
<section class="min-h-[calc(100vh-200px)] flex items-center justify-center px-4 py-12">
<div class="max-w-4xl w-full text-center">
<!-- Gravatar -->
<div class="flex justify-center mb-6">
{{- $email := .Site.Params.email -}}
{{- $hash := $email | lower | md5 -}}
<img
src="https://www.gravatar.com/avatar/{{ $hash }}?s=192&d=mp"
alt="{{ .Site.Params.author }}"
loading="lazy"
class="w-32 h-32 md:w-48 md:h-48 rounded-full border-4 border-accent object-cover"
>
</div>
<!-- Hero Name (glitch effect) -->
<h1 class="hero-name" data-text="{{ i18n "heroGreeting" }}">{{ i18n "heroGreeting" }}</h1>
<!-- Bio (from page content) -->
<div class="text-xl text-text-dim text-center mb-8 leading-relaxed prose prose-invert max-w-none">
{{ .Content }}
</div>
<!-- Call-to-Action Buttons -->
<div class="flex flex-col sm:flex-row gap-4 justify-center">
{{ $lang := .Lang }}
{{ $articlesUrl := "/articles/" }}
{{ $contactUrl := "/is/here/" }}
{{ if eq $lang "it" }}
{{ $articlesUrl = "/it/articles/" }}
{{ $contactUrl = "/it/is/here/" }}
{{ end }}
<a href="{{ $articlesUrl }}" class="btn btn-primary btn-lg">
{{ i18n "articles" }}
</a>
<a href="{{ $contactUrl }}" class="btn btn-outline btn-lg">
{{ i18n "contact" }}
</a>
</div>
<!-- Tag Cloud Section -->
<div class="mt-16 pt-8 border-t border-border">
{{ partial "tag-cloud.html" (dict "page" . "showCount" true "wrapInWidget" false) }}
</div>
</div>
</section>
{{ end }}
|