feat(WEB-93): add Header to CMS and render it in Next

This commit is contained in:
Simon Emanuelsson
2024-02-20 09:07:17 +01:00
parent 58b82cc8b7
commit cbb53df67c
30 changed files with 612 additions and 53 deletions
@@ -1,12 +1,12 @@
import { renderOptions } from "./renderOptions"
import Image from "@/components/Image"
import JsonToHtml from "@/components/JsonToHtml"
import Link from "next/link"
import styles from "./puff.module.css"
import type { PuffProps } from "@/types/components/current/asides/puff"
import Image from "@/components/Image"
export default function Puff({
imageConnection,
@@ -22,7 +22,7 @@ export default function Puff({
return null
}
return (
<Link className={styles.link} href={page.node.url}>
<Link className={styles.link} href={`/${page.node.system.locale}${page.node.url}`}>
<PuffContent
imageConnection={imageConnection}
text={text}