"use client"; import { getAssetPath } from "../../lib/assetUtils"; import ContentContainer from "./ContentContainer"; export default function ContentBanner({ post }) { // Get article-specific background image const getBackgroundImage = (post) => { if (post.frontmatter?.thumbnail?.horizontal) { return `/content/blog/${post.frontmatter.thumbnail.horizontal}`; } // Fallback to default image return getAssetPath("assets/Content_Banner.svg"); }; const backgroundImage = getBackgroundImage(post); return (
{/* Background SVG - Default to sm breakpoint */}
{/* Background SVG - md breakpoint and above */}
{/* Content Container */}
{/* ContentContainer with post data */}
); }