feat(theme): add site footer and marketing sections
- Add SiteFooter, rendered through the Layout bottom slot so it appears on every page type. themeConfig.footer is deliberately left unset: setting it would render the built-in HomeFooter as well, on the home page only. - Add a frontmatter-driven section system (advantages, contentGrid, techStack, cases and cta) with a single ordered array, so bands can be reordered or removed without touching code. - Bands render only when they have content, so an unfilled page degrades to its heading rather than showing empty boxes. - Add a SHOW_COPY_PLACEHOLDERS flag for drafting, false by default.
This commit is contained in:
14 files changed
+652
-3
No files matched your search
@@ -4,4 +4,26 @@
|
||||
--rp-c-brand: #0f766e;
|
||||
--rp-c-brand-dark: #115e59;
|
||||
--rp-c-brand-tint: rgba(15, 118, 110, 0.16);
|
||||
|
||||
/* Vertical rhythm for the marketing bands on the home, products and
|
||||
services pages. */
|
||||
--rp-site-section-gap: 4rem;
|
||||
}
|
||||
|
||||
/* `HomeFeature` always renders its wrapper, even when the page declares no
|
||||
`features`. Hide the empty shell so a hero-only page does not show a
|
||||
stray empty band. */
|
||||
.rp-home-feature:empty {
|
||||
display: none;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Full-bleed marketing sections, driven by `frontmatter.sections`. */
|
||||
.rp-site-section {
|
||||
padding-block: var(--rp-site-section-gap);
|
||||
}
|
||||
|
||||
.rp-site-section:nth-child(even) {
|
||||
background: var(--rp-c-bg-soft);
|
||||
}
|
||||
Reference in new issue
Block a user