From 50d3a55695d4bbec01ffa1979f7d92a6bb1b7029 Mon Sep 17 00:00:00 2001 From: kleap-admin Date: Thu, 15 Jan 2026 13:41:50 +0000 Subject: [PATCH] Update components/blog-layout.tsx --- components/blog-layout.tsx | 80 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 components/blog-layout.tsx diff --git a/components/blog-layout.tsx b/components/blog-layout.tsx new file mode 100644 index 0000000..a18b6e0 --- /dev/null +++ b/components/blog-layout.tsx @@ -0,0 +1,80 @@ +"use client"; + + +import { BlogWithSlug } from "@/lib/blog"; +import { IconArrowLeft } from "@tabler/icons-react"; +import { Container } from "./container"; +import Image from "next/image"; +import { Logo } from "./Logo"; +import Link from "next/link"; +import { format } from "date-fns"; +export function BlogLayout({ + blog, + children, +}: { + blog: BlogWithSlug; + children: React.ReactNode; +}) { + return ( + +
+ + + Back + +
+
+ {blog.author.name} +

+ {blog.author.name} +

+
+
+ +
+
+
+ {blog.image ? ( + {blog.title} + ) : ( +
+ +
+ )} +
+
+
+
+
+

+ {blog.title} +

+
+
+ {children} +
+
+
+
+ + ); +}