!
components/Hero.ts interface Props {
add the blok
className?: string headline: string
!eld to the dynamic component
description: string blok?: SbEditableContent } const Hero: FC<Props> = ({ headline, description, blok }) => {
Add Dynamic Components
return ( <div className=”bg-black”> <Container> <div className={s.root}>
<h2 className=”text-4xl leading-10 font-extrabold text-white sm sm:leading-none sm:tracking-tight lg:text-6xl”> {blok?.headline || headline } </h2> <div className=”flex flex-col justify-between”>
use the content received from Storyblok
<p className=”mt-5 text-xl leading-7 text-accent-2 text-white {blok?.description || description } </p> <Link href=”/blog”>
<a className=”text-white pt-3 font-bold hover:underline fle cursor-pointer w-max-content”> Read it here <RightArrow width=”20” heigh=”20” className=”ml-1” /> </a>