@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.
@@ -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
- <div className="aspect-[16/9] overflow-hidden rounded-3xl border border-[var(--blog-accent-border)] shadow-[0_24px_80px_rgb(168_85_247_/_0.14)]">
346
- <Image
347
- src={imageUrl}
348
- alt={
349
- article.featuredImageAlt ??
350
- `Featured image for ${article.title}`
351
- }
352
- className="h-full w-full object-cover"
353
- width={800}
354
- height={450}
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-cover transition-transform duration-500 group-hover:scale-105"
826
+ className="h-full w-full object-contain"
830
827
  />
831
828
  </div>
832
829
  );
@@ -315,7 +315,7 @@ function AuthorArticlePreview({
315
315
  }
316
316
  width={320}
317
317
  height={200}
318
- className="h-full w-full object-cover transition-transform duration-500 group-hover:scale-105"
318
+ className="h-full w-full object-contain"
319
319
  />
320
320
  </div>
321
321
  )}
@@ -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-cover transition-transform duration-300 group-hover:scale-105"
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-cover transition-transform duration-300 group-hover:scale-105"
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-cover transition-transform duration-300 group-hover:scale-105"
197
+ className="h-full w-full object-contain"
198
198
  />
199
199
  </div>
200
200
  )}