@@ -51,14 +51,21 @@ const ogImage = new URL(
5151 className =" h-[80vh] opacity-80"
5252 blur
5353 />
54+ <div
55+ class ={ cn (
56+ " mx-auto w-full max-w-screen-md px-8 md:px-12 py-6" ,
57+ article .data .featuredImage &&
58+ " max-w-screen-lg px-4 pb-4 sm:px-8 md:px-6 md:py-4" ,
59+ )}
60+ >
61+ <BackButton client:load href =" /news" contextLabel =" Fork It! News" />
62+ </div >
63+
5464 {
5565 !! article .data .featuredImage && (
56- <div class = " relative mx-auto mt-2 w-full max-w-screen-lg px-2 lg:mt-10 lg:px-6" >
57- <div class = " absolute left-8 top-8 z-10 lg:left-14" >
58- <BackButton client :visible href = " /news" />
59- </div >
66+ <div class = " relative mx-auto w-full max-w-screen-lg px-2 lg:px-6" >
6067 <div
61- class = " relative flex-[10] rounded-lg bg-black transition duration-500 group-hover:scale-105 "
68+ class = " relative flex-1 rounded-lg bg-black transition duration-500"
6269 style = { {
6370 maskImage: " linear-gradient(180deg, black 20%, transparent 100%)" ,
6471 }}
@@ -77,20 +84,13 @@ const ogImage = new URL(
7784 }
7885 <div
7986 class ={ cn (
80- " mx-auto w-full flex-1 max-w-screen-md flex flex-col gap-12 pb-40 relative z-10 pt-24 px-8 md:px-12" ,
81- !! article .data .featuredImage && " -mt-36 md:-mt-96 " ,
87+ " mx-auto w-full flex-1 max-w-screen-md flex flex-col gap-8 pt-4 pb-40 relative z-10 px-8 md:px-12" ,
88+ !! article .data .featuredImage && " -mt-24 sm:-mt-56 md:-mt-72 " ,
8289 )}
8390 >
8491 <div class =" flex flex-col gap-4" >
85- {
86- ! article .data .featuredImage && (
87- <div class = " pb-8" >
88- <BackButton client :visible href = " /news" />
89- </div >
90- )
91- }
9292 <h1
93- class =" text-balance font-heading text-2xl font-medium uppercase tracking-wider md:text-4xl/tight"
93+ class =" text-balance font-heading text-2xl font-medium tracking-wider md:text-4xl/tight"
9494 >
9595 { article .data .title }
9696 </h1 >
@@ -104,7 +104,7 @@ const ogImage = new URL(
104104 </div >
105105
106106 {
107- authors ? (
107+ authors . length ? (
108108 <div class = " flex flex-wrap gap-x-5 gap-y-3" >
109109 { authors .map ((author ) => (
110110 <a
0 commit comments