footers
This commit is contained in:
parent
6b54da03cd
commit
d65b79672f
2 changed files with 9 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ export default async function Page({ params: paramsPromise }: Args) {
|
||||||
|
|
||||||
|
|
||||||
if (decodedSlug === 'home') {
|
if (decodedSlug === 'home') {
|
||||||
return <HeroPage richText={hero.richText} links={hero.links} />
|
return <HeroPage richText={hero.richText} links={hero.links} layout={layout} />
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ import { useThemeMode } from '@/hooks/useThemeMode'
|
||||||
import { CMSLink } from '@/components/Link'
|
import { CMSLink } from '@/components/Link'
|
||||||
import RichText from '@/components/RichText'
|
import RichText from '@/components/RichText'
|
||||||
import type { Page } from '@/payload-types'
|
import type { Page } from '@/payload-types'
|
||||||
|
import { RenderBlocks } from '@/blocks/RenderBlocks'
|
||||||
import { Button } from '@/components/ui/button'
|
import { Button } from '@/components/ui/button'
|
||||||
|
|
||||||
// ─── Types ────────────────────────────────────────────────────────────────────
|
// ─── Types ────────────────────────────────────────────────────────────────────
|
||||||
|
|
@ -284,9 +285,10 @@ function LogosSection({ isDark }: { isDark: boolean }) {
|
||||||
interface HeroPageProps {
|
interface HeroPageProps {
|
||||||
richText?: Page['hero']['richText']
|
richText?: Page['hero']['richText']
|
||||||
links?: Page['hero']['links']
|
links?: Page['hero']['links']
|
||||||
|
layout?: Page['layout']
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function HeroPage({ richText, links }: HeroPageProps) {
|
export default function HeroPage({ richText, links, layout }: HeroPageProps) {
|
||||||
const { isDark, toggle } = useThemeMode()
|
const { isDark, toggle } = useThemeMode()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
@ -302,6 +304,11 @@ export default function HeroPage({ richText, links }: HeroPageProps) {
|
||||||
<main>
|
<main>
|
||||||
<HeroSection isDark={isDark} richText={richText} links={links} />
|
<HeroSection isDark={isDark} richText={richText} links={links} />
|
||||||
<LogosSection isDark={isDark} />
|
<LogosSection isDark={isDark} />
|
||||||
|
{layout && layout.length > 0 && (
|
||||||
|
<div id="skills">
|
||||||
|
<RenderBlocks blocks={layout} />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue