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/
|
/public/
|
||||||
|
|
||||||
# Temporary lock file while building
|
# 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
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
**Wiki Cafe** is a [**co-op**](pages/co-op) \
|
{{< hero >}}
|
||||||
that provides [**fedwiki hosting**](pages/fedwiki_service) \
|
Wiki Cafe is a [co-op](pages/co-op) \
|
||||||
and [**wiki education**](pages/wiki_education) services.
|
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 {
|
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;
|
font-size: 2rem;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
@ -229,9 +229,32 @@ footer {
|
|||||||
padding-top: 1rem;
|
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) {
|
@media (max-width: 768px) {
|
||||||
body {
|
body {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
gap: 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