@@ -52,20 +52,20 @@ export default async function Page({ params }: { params: Promise<{ slug: string
5252 dangerouslySetInnerHTML = { { __html : JSON . stringify ( breadcrumbLd ) } }
5353 />
5454
55- < div className = 'mx-auto flex w-full max-w-[1500px] flex-col items-start gap-2 pb-24 pt-16 xl:flex-row' >
56- < div data-blog-main-content className = 'max-w-5xl flex-grow mx-auto ' >
55+ < div className = 'mx-auto flex w-full max-w-[1500px] flex-col items-start gap-8 px-4 pt-10 pb-24 sm:px-6 sm: pt-12 lg:px-8 lg:pt- 16 xl:flex-row xl:gap-12 ' >
56+ < div data-blog-main-content className = 'mx-auto w-full min-w-0 max-w-5xl flex-grow' >
5757 < Link
5858 href = '/blog'
59- className = 'group mb-8 inline-flex items-center gap-2 border border-[#2A2A2A] bg-[#232323] px-4 py-2 font-season text-[11px] uppercase tracking-widest text-[#999] transition-colors hover:text-[#ECECEC]'
59+ className = 'group mb-8 inline-flex items-center gap-2 border border-[#2A2A2A] bg-[#232323] px-4 py-2 font-season text-[#999] text-[ 11px] uppercase tracking-widest transition-colors hover:text-[#ECECEC]'
6060 style = { { borderRadius : '5px' } }
6161 >
6262 < ArrowLeft
63- className = 'h-3 w-3 transition-transform group-hover:-translate-x-1 '
63+ className = 'group-hover:-translate-x-1 h-3 w-3 transition-transform'
6464 aria-hidden = 'true'
6565 />
6666 All Posts
6767 </ Link >
68- < header className = 'mb-12 border-b border- [#2A2A2A] pb-8' >
68+ < header className = 'mb-12 border-[#2A2A2A] border-b pb-8' >
6969 < ArticleHeaderMotion >
7070 < ArticleHeaderItem className = 'mb-6 flex w-full flex-col gap-4 sm:flex-row sm:items-center sm:justify-between' >
7171 < div className = 'flex items-center gap-3' >
@@ -74,7 +74,7 @@ export default async function Page({ params }: { params: Promise<{ slug: string
7474 style = { { backgroundColor : categoryColor } }
7575 aria-hidden = 'true'
7676 />
77- < div className = 'font-season text-[11px] uppercase tracking-widest text-[#999] ' >
77+ < div className = 'font-season text-[#999] text-[ 11px] uppercase tracking-widest' >
7878 < time dateTime = { post . date } itemProp = 'datePublished' >
7979 { new Date ( post . date ) . toLocaleDateString ( 'en-US' , {
8080 month : 'short' ,
@@ -87,27 +87,27 @@ export default async function Page({ params }: { params: Promise<{ slug: string
8787 </ div >
8888 </ div >
8989
90- < div className = 'shrink-0' >
90+ < div className = 'shrink-0 self-start sm:self-auto ' >
9191 < ShareButtons url = { shareUrl } title = { post . title } />
9292 </ div >
9393 </ ArticleHeaderItem >
9494 < ArticleHeaderItem >
9595 < h1
96- className = 'mb-6 font-[500] text-[36px] leading-[1.15] tracking-tight text-[#ECECEC] sm:text-[40px] md:text-[48px]'
96+ className = 'mb-6 font-[500] text-[#ECECEC] text-[ 36px] leading-[1.15] tracking-tight sm:text-[40px] md:text-[48px]'
9797 itemProp = 'headline'
9898 >
9999 { post . title }
100100 </ h1 >
101101 </ ArticleHeaderItem >
102102 < ArticleHeaderItem >
103- < p className = 'mb-6 text-[18px] leading-relaxed text-[#999] ' itemProp = 'description' >
103+ < p className = 'mb-6 text-[#999] text-[18px] leading-relaxed ' itemProp = 'description' >
104104 { post . description }
105105 </ p >
106106 </ ArticleHeaderItem >
107107
108108 { post . tags . length > 0 && (
109109 < ArticleHeaderItem >
110- < div className = 'flex flex-wrap items-center gap-x-1.5 gap-y-1 font-season text-[11px ] text-[#666 ]' >
110+ < div className = 'flex flex-wrap items-center gap-x-1.5 gap-y-1 font-season text-[#666 ] text-[11px ]' >
111111 { post . tags . map ( ( tag , i ) => (
112112 < span key = { tag } >
113113 < Link
@@ -165,7 +165,7 @@ interface ArticleAuthorsProps {
165165function ArticleAuthors ( { authors } : ArticleAuthorsProps ) {
166166 return (
167167 < div className = 'mt-12' >
168- < div className = 'mb-6 flex items-center gap-2 font-season text-[11px] uppercase tracking-widest text-[#666] ' >
168+ < div className = 'mb-6 flex items-center gap-2 font-season text-[#666] text-[ 11px] uppercase tracking-widest' >
169169 < span className = 'inline-block h-2 w-2 bg-[#FA4EDF]' aria-hidden = 'true' />
170170 { authors . length > 1 ? 'Authors' : 'Written by' }
171171 </ div >
@@ -177,7 +177,7 @@ function ArticleAuthors({ authors }: ArticleAuthorsProps) {
177177 style = { { borderRadius : '2px' } }
178178 >
179179 < div
180- className = 'flex h-12 w-12 shrink-0 items-center justify-center overflow-hidden border border-[#2A2A2A] bg-[#1C1C1C] font-season text-lg text- [#2ABBF8]'
180+ className = 'flex h-12 w-12 shrink-0 items-center justify-center overflow-hidden border border-[#2A2A2A] bg-[#1C1C1C] font-season text-[#2ABBF8] text-lg '
181181 style = { { borderRadius : '2px' } }
182182 >
183183 { a . avatarUrl ? (
@@ -200,7 +200,7 @@ function ArticleAuthors({ authors }: ArticleAuthorsProps) {
200200 href = { a . url }
201201 target = '_blank'
202202 rel = 'noopener noreferrer'
203- className = 'font-season text-[11px ] text-[#999 ] transition-colors hover:text-[#ECECEC]'
203+ className = 'font-season text-[#999 ] text-[11px ] transition-colors hover:text-[#ECECEC]'
204204 >
205205 { a . xHandle ? `@${ a . xHandle } ` : 'Profile' }
206206 </ Link >
@@ -219,8 +219,8 @@ interface RelatedArticlesProps {
219219
220220function RelatedArticles ( { posts } : RelatedArticlesProps ) {
221221 return (
222- < div className = 'mt-12 border-t border- [#2A2A2A] pt-8' >
223- < div className = 'mb-6 flex items-center gap-2 font-season text-[11px] uppercase tracking-widest text-[#666] ' >
222+ < div className = 'mt-12 border-[#2A2A2A] border-t pt-8' >
223+ < div className = 'mb-6 flex items-center gap-2 font-season text-[#666] text-[ 11px] uppercase tracking-widest' >
224224 < span className = 'inline-block h-2 w-2 bg-[#FFCC02]' aria-hidden = 'true' />
225225 Related articles
226226 </ div >
@@ -232,24 +232,24 @@ function RelatedArticles({ posts }: RelatedArticlesProps) {
232232 < Link
233233 key = { p . slug }
234234 href = { `/blog/${ p . slug } ` }
235- className = 'group flex flex-col border border-[#2A2A2A] bg-[#232323] p-5 transition-[border-color,background-color,transform] duration-200 ease-out [@media(hover:hover)]:hover:border-[#3d3d3d] [@media(hover:hover)]:hover:bg-[#282828] [@media(hover:hover)]:hover:-translate-y-0.5 '
235+ className = 'group [@media(hover:hover)]:hover:-translate-y-0.5 flex flex-col border border-[#2A2A2A] bg-[#232323] p-5 transition-[border-color,background-color,transform] duration-200 ease-out [@media(hover:hover)]:hover:border-[#3d3d3d] [@media(hover:hover)]:hover:bg-[#282828]'
236236 style = { { borderRadius : '2px' } }
237237 >
238238 < div className = 'mb-3 flex items-center gap-3' >
239239 < span
240- className = 'inline-block px-2 py-0.5 font-season text-[10px] font-bold uppercase tracking-wider text-black '
240+ className = 'inline-block px-2 py-0.5 font-bold font- season text-[10px] text-black uppercase tracking-wider'
241241 style = { { backgroundColor : color } }
242242 >
243243 { cat . label }
244244 </ span >
245245 </ div >
246- < h4 className = 'mb-2 text-[15px] font-[500] leading-tight text-[#ECECEC] transition-colors duration-150 [@media(hover:hover)]:group-hover:text-[#FFCC02]' >
246+ < h4 className = 'mb-2 font-[500] text-[#ECECEC] text-[15px] leading-tight transition-colors duration-150 [@media(hover:hover)]:group-hover:text-[#FFCC02]' >
247247 { p . title }
248248 </ h4 >
249- < p className = 'mb-4 line-clamp-2 text-[13px] leading-relaxed text-[#999] ' >
249+ < p className = 'mb-4 line-clamp-2 text-[#999] text-[13px] leading-relaxed ' >
250250 { p . description }
251251 </ p >
252- < div className = 'mt-auto font-season text-[10px ] text-[#666 ]' >
252+ < div className = 'mt-auto font-season text-[#666 ] text-[10px ]' >
253253 { formatDate ( new Date ( p . date ) ) }
254254 </ div >
255255 </ Link >
0 commit comments