@@ -40,37 +40,15 @@ export const Route = createFileRoute("/_layout/blog/$slug")({
4040function RouteComponent ( ) {
4141 const { post, author } = Route . useLoaderData ( ) ;
4242 return (
43- < ContentPageWrapper className = "max-w-2xl" >
44- < article
45- className = { cx (
46- "prose prose-p:text-lg prose-strong:font-medium prose-video:rounded-xl prose-a:text-[currentColor] " ,
47- "prose-figure:my-0 prose-img:rounded-xl prose-img:max-h-[60vh] prose-img:w-auto" ,
48- "prose-code:bg-secondary prose-code:rounded-md prose-code:text-orange-600 prose-code:border prose-code:border prose-code:p-1 prose-code:py-0.5 prose-code:font-normal" ,
49- ) }
50- >
51- < div >
52- < span className = "inline-flex gap-1 items-center not-prose text-sm" >
53- { post . postedAt && (
54- < time dateTime = { post . postedAt } className = "block " >
55- Published on { formatDate ( post . postedAt ) }
56- </ time >
57- ) }
58- • Written by
59- < img
60- src = { author . imageSrc }
61- alt = { author . name }
62- className = "size-6 rounded-full"
63- />
64- < TextLink href = { author . url } > { author . name } </ TextLink >
65- </ span >
66- < h1 className = "my-4 inline-block font-display text-4xl leading-tight lg:text-5xl" >
67- { post . title }
68- </ h1 >
69- { post . updatedAt && (
70- < span className = "inline-flex gap-1 items-center not-prose text-sm italic" >
71- Updated on { formatDate ( post . updatedAt ) }
72- </ span >
43+ < ContentPageWrapper className = "max-w-7xl" >
44+ < div className = "flex gap-4 justify-center items-start" >
45+ < article
46+ className = { cx (
47+ "prose prose-p:text-lg prose-strong:font-medium prose-video:rounded-xl prose-a:text-[currentColor] max-w-4xl bg-white p-12 rounded-xl border" ,
48+ "prose-figure:my-0 prose-img:rounded-xl prose-img:max-h-[60vh] prose-img:w-auto" ,
49+ "prose-code:bg-gray-4 prose-code:rounded-md prose-code:text-orange-10 prose-code:border prose-code:border-gray-6 prose-code:p-1 prose-code:py-0.5 prose-code:font-normal" ,
7350 ) }
51+ >
7452 < div className = "flex flex-col gap-4" >
7553 < TextLink
7654 href = "/blog"
@@ -96,7 +74,7 @@ function RouteComponent() {
9674 />
9775 < TextLink href = { author . url } > { author . name } </ TextLink >
9876 </ span >
99- < h1 className = "my-4 inline-block font-heading text-4xl leading-tight lg:text-5xl" >
77+ < h1 className = "inline-block font-heading text-4xl not-prose text-foreground my-4 font-bold lg:text-5xl" >
10078 { post . title }
10179 </ h1 >
10280 { post . updatedAt && (
@@ -106,8 +84,8 @@ function RouteComponent() {
10684 ) }
10785 </ div >
10886 < Mdx code = { post . mdx } />
109- </ div >
110- </ article >
87+ </ article >
88+ </ div >
11189 </ ContentPageWrapper >
11290 ) ;
11391}
0 commit comments