Refactor image upload handling by moving upload directory outside of public folder for better compatibility with Next.js. Update related Docker configurations and scripts to reflect new upload paths. Replace instances of Next.js Image component with CmsImage for consistent image handling across the application.
This commit is contained in:
1 parent
0a57ef2b80
commit
1641edfd01
19 files changed
+162
-39
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import { CmsImage } from "@/components/atoms/CmsImage";
|
||||
import { ArrowUpLeft, MapPin, Wifi } from "lucide-react";
|
||||
import {
|
||||
Card,
|
||||
@@ -65,7 +65,7 @@ export function ArticleCard({
|
||||
return (
|
||||
<article className="group grid overflow-hidden border-b border-border py-7 first:pt-0 last:border-b-0 sm:grid-cols-[14rem_1fr] sm:gap-8 lg:grid-cols-[19rem_1fr] lg:py-9">
|
||||
<Link href={href} className="relative aspect-[16/10] overflow-hidden rounded-xl bg-muted sm:aspect-auto sm:min-h-44">
|
||||
<Image src={imageUrl} alt={title} fill placeholder="blur" blurDataURL={blurDataURL} className="object-cover transition-transform duration-500 group-hover:scale-[1.025]" sizes="(max-width:640px) 100vw, 304px" />
|
||||
<CmsImage src={imageUrl} alt={title} fill placeholder="blur" blurDataURL={blurDataURL} className="object-cover transition-transform duration-500 group-hover:scale-[1.025]" sizes="(max-width:640px) 100vw, 304px" />
|
||||
</Link>
|
||||
<div className="flex min-w-0 flex-col justify-center pt-5 sm:pt-0">
|
||||
<p className="text-xs font-bold text-accent">{category}</p>
|
||||
@@ -101,7 +101,7 @@ export function ArticleCard({
|
||||
featured ? "aspect-[16/10]" : "aspect-[4/3]",
|
||||
)}
|
||||
>
|
||||
<Image
|
||||
<CmsImage
|
||||
src={imageUrl}
|
||||
alt={title}
|
||||
fill
|
||||
@@ -236,7 +236,7 @@ export function IntersectionCard({
|
||||
className="group relative block min-h-[16rem] overflow-hidden rounded-2xl bg-primary shadow-sm sm:min-h-[18rem]"
|
||||
>
|
||||
<div className="absolute inset-0 overflow-hidden">
|
||||
<Image
|
||||
<CmsImage
|
||||
src={imageUrl}
|
||||
alt={title}
|
||||
fill
|
||||
|
||||
Reference in new issue
Block a user