Add hero section shortcode and add it to homepage.
This commit is contained in:
parent
98f4c93d77
commit
b8f96cc163
5
.gitignore
vendored
5
.gitignore
vendored
@ -2,4 +2,7 @@
|
||||
/public/
|
||||
|
||||
# Temporary lock file while building
|
||||
/.hugo_build.lock
|
||||
/.hugo_build.lock
|
||||
|
||||
# AI generated content
|
||||
CLAUDE.md
|
||||
|
@ -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 >}}
|
||||
|
5
layouts/shortcodes/hero.html
Normal file
5
layouts/shortcodes/hero.html
Normal file
@ -0,0 +1,5 @@
|
||||
<div class="hero">
|
||||
<h1>
|
||||
{{ .Inner | markdownify }}
|
||||
</h1>
|
||||
</div>
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user