@xexr/blog-platform 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/blog/[slug]/page.tsx +11 -14
- package/dist/app/blog/authors/[slug]/page.tsx +1 -1
- package/dist/app/blog/page.tsx +4 -4
- package/dist/components/TopicArchivePages.tsx +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -342,19 +342,16 @@ export default function ArticlePage({
|
|
|
342
342
|
{/* Featured Image */}
|
|
343
343
|
{imageUrl && (
|
|
344
344
|
<figure className="article-featured-image mx-auto my-8 w-full max-w-4xl sm:my-12 lg:my-16">
|
|
345
|
-
<
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
priority
|
|
356
|
-
/>
|
|
357
|
-
</div>
|
|
345
|
+
<Image
|
|
346
|
+
src={imageUrl}
|
|
347
|
+
alt={
|
|
348
|
+
article.featuredImageAlt ?? `Featured image for ${article.title}`
|
|
349
|
+
}
|
|
350
|
+
className="h-auto w-full rounded-3xl border border-[var(--blog-accent-border)] shadow-[0_24px_80px_rgb(168_85_247_/_0.14)]"
|
|
351
|
+
width={1200}
|
|
352
|
+
height={800}
|
|
353
|
+
priority
|
|
354
|
+
/>
|
|
358
355
|
|
|
359
356
|
{hasFeaturedImageMeta && (
|
|
360
357
|
<figcaption className="text-muted-foreground mt-3 space-y-1 px-2 text-center text-sm leading-relaxed sm:px-0">
|
|
@@ -826,7 +823,7 @@ function ArticleCardImage({ src, alt }: { src: string; alt: string }) {
|
|
|
826
823
|
alt={alt}
|
|
827
824
|
width={480}
|
|
828
825
|
height={270}
|
|
829
|
-
className="h-full w-full object-
|
|
826
|
+
className="h-full w-full object-contain"
|
|
830
827
|
/>
|
|
831
828
|
</div>
|
|
832
829
|
);
|
package/dist/app/blog/page.tsx
CHANGED
|
@@ -229,7 +229,7 @@ function ArticlePreview({
|
|
|
229
229
|
{imageUrl && (
|
|
230
230
|
<Link
|
|
231
231
|
href={articleUrl}
|
|
232
|
-
className="focus-visible:ring-ring relative block aspect-[16/10] w-full overflow-hidden rounded-2xl focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none"
|
|
232
|
+
className="focus-visible:ring-ring relative block aspect-[16/10] w-full overflow-hidden rounded-2xl bg-[var(--blog-accent-bg)] focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none"
|
|
233
233
|
aria-label={`Read article: ${article.title}`}
|
|
234
234
|
>
|
|
235
235
|
<Image
|
|
@@ -240,7 +240,7 @@ function ArticlePreview({
|
|
|
240
240
|
}
|
|
241
241
|
width={400}
|
|
242
242
|
height={250}
|
|
243
|
-
className="h-full w-full object-
|
|
243
|
+
className="h-full w-full object-contain"
|
|
244
244
|
/>
|
|
245
245
|
</Link>
|
|
246
246
|
)}
|
|
@@ -298,7 +298,7 @@ function ArticlePreview({
|
|
|
298
298
|
{imageUrl && (
|
|
299
299
|
<Link
|
|
300
300
|
href={articleUrl}
|
|
301
|
-
className="focus-visible:ring-ring relative block aspect-[16/10] w-64 shrink-0 overflow-hidden rounded-2xl focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none xl:w-72"
|
|
301
|
+
className="focus-visible:ring-ring relative block aspect-[16/10] w-64 shrink-0 overflow-hidden rounded-2xl bg-[var(--blog-accent-bg)] focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none xl:w-72"
|
|
302
302
|
aria-label={`Read article: ${article.title}`}
|
|
303
303
|
>
|
|
304
304
|
<Image
|
|
@@ -309,7 +309,7 @@ function ArticlePreview({
|
|
|
309
309
|
}
|
|
310
310
|
width={288}
|
|
311
311
|
height={180}
|
|
312
|
-
className="h-full w-full object-
|
|
312
|
+
className="h-full w-full object-contain"
|
|
313
313
|
/>
|
|
314
314
|
</Link>
|
|
315
315
|
)}
|
|
@@ -194,7 +194,7 @@ function TopicArticleCard({
|
|
|
194
194
|
alt={article.featuredImageAlt ?? article.title}
|
|
195
195
|
width={640}
|
|
196
196
|
height={360}
|
|
197
|
-
className="h-full w-full object-
|
|
197
|
+
className="h-full w-full object-contain"
|
|
198
198
|
/>
|
|
199
199
|
</div>
|
|
200
200
|
)}
|