@@ -66,7 +66,7 @@ const paginatedContent = sortedContent.slice(startIndex, endIndex)
6666>
6767 <div class =" max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12" >
6868 <header class =" mb-12" >
69- <div class =" flex flex-col gap-6 sm:flex-row sm:items-start" >
69+ <div class =" grid grid-cols-[auto_1fr] items-start gap-4 sm:flex sm:gap-6 sm:items-start" >
7070 <div class =" shrink-0" >
7171 <div
7272 class =" relative w-28 sm:w-32 md:w-60 aspect-square overflow-hidden rounded-2xl bg-page-offset p-4"
@@ -86,21 +86,34 @@ const paginatedContent = sortedContent.slice(startIndex, endIndex)
8686 </div >
8787 </div >
8888
89- <div class =" min-w-0 flex-1" >
90- <h1 class =" text-4xl md:text-5xl font-bold mb-4" >
91- { tagEntry .data .displayName }
92- </h1 >
93- <p class =" text-xl" >
94- { totalItems } item{ totalItems !== 1 ? ' s' : ' ' } tagged with { tagEntry .data .displayName .toLowerCase ()}
95- </p >
96- <nav class =" mt-6" >
97- <a href =" /tags" class =" text-primary hover:underline" > ← Browse all tags </a >
98- </nav >
89+ <div class =" min-w-0 sm:flex-1 sm:space-y-4 sm:ml-4 sm:mt-6" >
90+ <div class =" flex flex-col gap-2 sm:flex-row sm:flex-wrap sm:items-center sm:gap-x-4 sm:gap-y-2" >
91+ <h1 class =" text-page-inverse" >
92+ { tagEntry .data .displayName }
93+ </h1 >
94+ <span class =" inline-flex w-fit rounded-full bg-page-inverse px-3 py-1 text-sm font-semibold text-page-base whitespace-nowrap sm:ml-2 sm:mt-2" >
95+ { totalItems } { totalItems === 1 ? ' article' : ' articles' }
96+ </span >
97+ </div >
98+
99+ { tagEntry .data .intro && (
100+ <p class = " hidden sm:block text-lg text-content leading-relaxed max-w-2xl" >
101+ { tagEntry .data .intro }
102+ </p >
103+ )}
104+
105+ <div class =" mt-2 sm:mt-0 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-content-offset" >
106+ { sortedContent .length > 0 && (
107+ <span class = " text-content-active" >
108+ Latest: <time class = " font-medium text-content" >{ sortedContent [0 ]! .data .publishDate .toLocaleDateString (' en-US' , { month: ' short' , day: ' numeric' , year: ' numeric' })} </time >
109+ </span >
110+ )}
111+ </div >
99112 </div >
100113 </div >
101114 </header >
102115
103- <section class =" prose prose-invert max-w-none mb-12" aria-label =" Tag description" >
116+ <section class =" max-w-none mb-12" aria-label =" Tag description" >
104117 <TagContent />
105118 </section >
106119
0 commit comments