Add hero section shortcode and add it to homepage.

This commit is contained in:
Christian Galo 2025-03-21 03:17:09 -05:00
parent 98f4c93d77
commit b8f96cc163
4 changed files with 38 additions and 5 deletions

5
.gitignore vendored
View File

@ -2,4 +2,7 @@
/public/
# Temporary lock file while building
/.hugo_build.lock
/.hugo_build.lock
# AI generated content
CLAUDE.md

View File

@ -4,6 +4,8 @@ date: 2025-03-14T04:59:59Z
draft: false
---
**Wiki Cafe** is a [**co-op**](pages/co-op) \
that provides [**fedwiki hosting**](pages/fedwiki_service) \
and [**wiki education**](pages/wiki_education) services.
{{< hero >}}
Wiki Cafe is a [co-op](pages/co-op) \
that provides [fedwiki hosting](pages/fedwiki_service) \
and [wiki education](pages/wiki_education) services.
{{< /hero >}}

View File

@ -0,0 +1,5 @@
<div class="hero">
<h1>
{{ .Inner | markdownify }}
</h1>
</div>

View File

@ -201,7 +201,7 @@ header {
}
h1 {
font-variation-settings: 'CASL' 0.5, 'MONO' 0.2, 'wght' 700;
font-variation-settings: 'CASL' 0.5, 'MONO' 0.1, 'wght' 700;
font-size: 2rem;
line-height: 1.2;
padding-bottom: 0;
@ -229,9 +229,32 @@ footer {
padding-top: 1rem;
}
/* Hero Section */
.hero {
padding: 2rem 0 4rem;
text-align: center;
h1 {
font-size: 3.5rem;
font-variation-settings: 'CASL' 0.5, 'wght' 800;
line-height: 1.1;
padding-bottom: 1.5rem;
}
}
@media (max-width: 768px) {
body {
padding: 1rem;
gap: 1rem;
}
.hero {
padding: 1rem 0 2rem;
h1 {
font-size: 2rem;
line-height: 1.2;
padding-bottom: 1rem;
}
}
}