ran prettier on layouts directory
This commit is contained in:
		| @@ -79,19 +79,19 @@ export default function ListLayoutWithTags({ | ||||
|     <> | ||||
|       <div> | ||||
|         <div className="pb-6 pt-6"> | ||||
|           <h1 className="sm:hidden text-3xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100 sm:text-4xl sm:leading-10 md:text-6xl md:leading-14"> | ||||
|           <h1 className="text-3xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100 sm:hidden sm:text-4xl sm:leading-10 md:text-6xl md:leading-14"> | ||||
|             {title} | ||||
|           </h1> | ||||
|         </div> | ||||
|         <div className="flex sm:space-x-24"> | ||||
|           <div className="hidden max-h-screen h-full sm:flex flex-wrap bg-gray-50 dark:bg-gray-900/70 shadow-md pt-5 dark:shadow-gray-800/40 rounded min-w-[280px] max-w-[280px] overflow-auto"> | ||||
|             <div className="py-4 px-6"> | ||||
|           <div className="hidden h-full max-h-screen min-w-[280px] max-w-[280px] flex-wrap overflow-auto rounded bg-gray-50 pt-5 shadow-md dark:bg-gray-900/70 dark:shadow-gray-800/40 sm:flex"> | ||||
|             <div className="px-6 py-4"> | ||||
|               {pathname.startsWith('/blog') ? ( | ||||
|                 <h3 className="text-primary-500 font-bold uppercase">All Posts</h3> | ||||
|                 <h3 className="font-bold uppercase text-primary-500">All Posts</h3> | ||||
|               ) : ( | ||||
|                 <Link | ||||
|                   href={`/blog`} | ||||
|                   className="font-bold uppercase text-gray-700 dark:text-gray-300 hover:text-primary-500 dark:hover:text-primary-500" | ||||
|                   className="font-bold uppercase text-gray-700 hover:text-primary-500 dark:text-gray-300 dark:hover:text-primary-500" | ||||
|                 > | ||||
|                   All Posts | ||||
|                 </Link> | ||||
| @@ -101,13 +101,13 @@ export default function ListLayoutWithTags({ | ||||
|                   return ( | ||||
|                     <li key={t} className="my-3"> | ||||
|                       {pathname.split('/tags/')[1] === slug(t) ? ( | ||||
|                         <h3 className="inline py-2 px-3 uppercase text-sm font-bold text-primary-500"> | ||||
|                         <h3 className="inline px-3 py-2 text-sm font-bold uppercase text-primary-500"> | ||||
|                           {`${t} (${tagCounts[t]})`} | ||||
|                         </h3> | ||||
|                       ) : ( | ||||
|                         <Link | ||||
|                           href={`/tags/${slug(t)}`} | ||||
|                           className="py-2 px-3 uppercase text-sm font-medium text-gray-500 dark:text-gray-300 hover:text-primary-500 dark:hover:text-primary-500" | ||||
|                           className="px-3 py-2 text-sm font-medium uppercase text-gray-500 hover:text-primary-500 dark:text-gray-300 dark:hover:text-primary-500" | ||||
|                           aria-label={`View posts tagged ${t}`} | ||||
|                         > | ||||
|                           {`${t} (${tagCounts[t]})`} | ||||
| @@ -125,7 +125,7 @@ export default function ListLayoutWithTags({ | ||||
|                 const { path, date, title, summary, tags } = post | ||||
|                 return ( | ||||
|                   <li key={path} className="py-5"> | ||||
|                     <article className="space-y-2 flex flex-col xl:space-y-0"> | ||||
|                     <article className="flex flex-col space-y-2 xl:space-y-0"> | ||||
|                       <dl> | ||||
|                         <dt className="sr-only">Published on</dt> | ||||
|                         <dd className="text-base font-medium leading-6 text-gray-500 dark:text-gray-400"> | ||||
|   | ||||
| @@ -30,12 +30,12 @@ export default function PostMinimal({ content, next, prev, children }: LayoutPro | ||||
|           <div className="space-y-1 pb-10 text-center dark:border-gray-700"> | ||||
|             <div className="w-full"> | ||||
|               <Bleed> | ||||
|                 <div className="aspect-[2/1] w-full relative"> | ||||
|                 <div className="relative aspect-[2/1] w-full"> | ||||
|                   <Image src={displayImage} alt={title} fill className="object-cover" /> | ||||
|                 </div> | ||||
|               </Bleed> | ||||
|             </div> | ||||
|             <div className="pt-10 relative"> | ||||
|             <div className="relative pt-10"> | ||||
|               <PageTitle>{title}</PageTitle> | ||||
|             </div> | ||||
|           </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user