feat(cms): improve admin content editing
This commit is contained in:
parent
12d31f5468
commit
a284bbc188
26 changed files with 362 additions and 147 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import Link from "next/link";
|
||||
import ServiceCard from "@/components/ServiceCard";
|
||||
import { defaultContent } from "@/lib/content/defaults";
|
||||
import { getContent } from "@/lib/content/service";
|
||||
import { createContentMetadata } from "./seo";
|
||||
|
||||
|
|
@ -7,7 +8,7 @@ export const dynamic = "force-dynamic";
|
|||
|
||||
export async function generateMetadata() {
|
||||
const content = await getContent("home");
|
||||
return createContentMetadata(content.seo);
|
||||
return createContentMetadata(content.seo, defaultContent.home.seo);
|
||||
}
|
||||
|
||||
export default async function HomePage() {
|
||||
|
|
@ -15,7 +16,10 @@ export default async function HomePage() {
|
|||
|
||||
return (
|
||||
<>
|
||||
<section className="hero">
|
||||
<section
|
||||
className="hero"
|
||||
style={{ backgroundImage: `linear-gradient(90deg, rgba(6, 24, 52, 0.96), rgba(8, 42, 96, 0.78), rgba(8, 42, 96, 0.58)), url("${content.heroImage || "/workbench-signal.svg"}"), linear-gradient(135deg, #07172d, #0b3778)` }}
|
||||
>
|
||||
<div className="container hero-content">
|
||||
<p className="eyebrow">{content.eyebrow}</p>
|
||||
<h1>{content.title}</h1>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue