From 5a61ebf26969968043fee667c7a081cba666e32a Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Thu, 7 May 2026 09:57:01 +0200 Subject: [PATCH] fix: resolve Unknown Block technicalGrid by rendering blog/home components in MDXContent --- components/MDXContent.tsx | 62 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 59 insertions(+), 3 deletions(-) diff --git a/components/MDXContent.tsx b/components/MDXContent.tsx index cd18f5ff..4dad70f3 100644 --- a/components/MDXContent.tsx +++ b/components/MDXContent.tsx @@ -1,5 +1,24 @@ import React from 'react'; import { MDXRemote } from 'next-mdx-remote/rsc'; +import { useLocale } from 'next-intl'; + +// Blog components +import TechnicalGrid from './blog/TechnicalGrid'; +import Stats from './blog/Stats'; +import VisualLinkPreview from './blog/VisualLinkPreview'; +import StickyNarrative from './blog/StickyNarrative'; + +// Home components +import Hero from './home/Hero'; +import ProductCategories from './home/ProductCategories'; +import WhatWeDo from './home/WhatWeDo'; +import RecentPosts from './home/RecentPosts'; +import Experience from './home/Experience'; +import WhyChooseUs from './home/WhyChooseUs'; +import MeetTheTeam from './home/MeetTheTeam'; +import GallerySection from './home/GallerySection'; +import VideoSection from './home/VideoSection'; +import CTA from './home/CTA'; function ContactSection(props: any) { return (
@@ -18,9 +37,46 @@ function HeroSection(props: any) { } function Block(props: any) { - return ( -
Unknown Block: {props.type}
- ); + const { type, data } = props; + const locale = useLocale(); + switch (type) { + // Blog Components + case 'technicalGrid': + return ; + case 'stats': + return ; + case 'visualLinkPreview': + return ; + case 'stickyNarrative': + return ; + + // Home Components + case 'homeHero': + return ; + case 'homeProductCategories': + return ; + case 'homeWhatWeDo': + return ; + case 'homeRecentPosts': + return ; + case 'homeExperience': + return ; + case 'homeWhyChooseUs': + return ; + case 'homeMeetTheTeam': + return ; + case 'homeGallery': + return ; + case 'homeVideo': + return ; + case 'homeCTA': + return ; + + default: + return ( +
Unknown Block: {type}
+ ); + } } const components = {