diff --git a/public/hero.jpg b/public/assets/hero.jpg similarity index 100% rename from public/hero.jpg rename to public/assets/hero.jpg diff --git a/public/ital.png b/public/assets/ital.png similarity index 100% rename from public/ital.png rename to public/assets/ital.png diff --git a/public/placeholder.svg b/public/assets/placeholder.svg similarity index 100% rename from public/placeholder.svg rename to public/assets/placeholder.svg diff --git a/public/slide1.avif b/public/assets/slide1.avif similarity index 100% rename from public/slide1.avif rename to public/assets/slide1.avif diff --git a/public/slide2.avif b/public/assets/slide2.avif similarity index 100% rename from public/slide2.avif rename to public/assets/slide2.avif diff --git a/public/slide3.avif b/public/assets/slide3.avif similarity index 100% rename from public/slide3.avif rename to public/assets/slide3.avif diff --git a/public/slide4.avif b/public/assets/slide4.avif similarity index 100% rename from public/slide4.avif rename to public/assets/slide4.avif diff --git a/src/components/admin/migrant/form-steps/PhotosStep.tsx b/src/components/admin/migrant/form-steps/PhotosStep.tsx index 4c3aa7d..8b4fce9 100644 --- a/src/components/admin/migrant/form-steps/PhotosStep.tsx +++ b/src/components/admin/migrant/form-steps/PhotosStep.tsx @@ -144,7 +144,7 @@ const PhotosStep: React.FC = ({
{`Preview diff --git a/src/components/home/HeroSection.tsx b/src/components/home/HeroSection.tsx index 11319cc..3f37006 100644 --- a/src/components/home/HeroSection.tsx +++ b/src/components/home/HeroSection.tsx @@ -41,25 +41,13 @@ export default function Home() { } fetchData() }, []) - const backgroundImages = [ - { - src: `${import.meta.env.BASE_URL}slide1.avif`, - alt: "Italian countryside landscape", - }, - { - src: `${import.meta.env.BASE_URL}slide2.avif`, - alt: "Vintage Italian architecture", - }, - { - src: `${import.meta.env.BASE_URL}slide3.avif`, - alt: "Italian coastal town", - }, - { - src: `${import.meta.env.BASE_URL}slide4.avif`, - alt: "Italian countryside with vineyards", - }, - ] + { src: `${import.meta.env.BASE_URL}assets/slide1.avif`, alt: "Italian countryside landscape" }, + { src: `${import.meta.env.BASE_URL}assets/slide2.avif`, alt: "Vintage Italian architecture" }, + { src: `${import.meta.env.BASE_URL}assets/slide3.avif`, alt: "Italian coastal town" }, + { src: `${import.meta.env.BASE_URL}assets/slide4.avif`, alt: "Italian countryside with vineyards" }, + ]; + const galleryImages = [ { @@ -146,7 +134,7 @@ export default function Home() { className={`absolute inset-0 transition-opacity duration-1000 ${index === currentSlide ? "opacity-100" : "opacity-0" }`} > - {image.alt} + {image.alt}
))} @@ -352,7 +340,7 @@ export default function Home() {
{image.alt} diff --git a/src/components/home/MigrantProfileComponent.tsx b/src/components/home/MigrantProfileComponent.tsx index f7715ba..5d319cd 100644 --- a/src/components/home/MigrantProfileComponent.tsx +++ b/src/components/home/MigrantProfileComponent.tsx @@ -71,12 +71,12 @@ export default function MigrantProfile() { ? profilePhoto.file_path.startsWith('http') ? profilePhoto.file_path : `${API_BASE_URL}${profilePhoto.file_path}` - : `${import.meta.env.BASE_URL}placeholder.svg?height=600&width=450`} + : `${import.meta.env.BASE_URL}assets/placeholder.svg?height=600&width=450`} alt={`${migrant.full_name || 'Migrant photo'}`} className="aspect-[3/4] object-cover w-full" onError={(e) => { // Handle image loading errors by setting a fallback - e.currentTarget.src = `${import.meta.env.BASE_URL}placeholder.svg?height=600&width=450`; + e.currentTarget.src = `${import.meta.env.BASE_URL}assets/placeholder.svg?height=600&width=450`; }} />
@@ -189,12 +189,12 @@ export default function MigrantProfile() { ? photo.file_path.startsWith('http') ? photo.file_path : `${API_BASE_URL}${photo.file_path}` - : `${import.meta.env.BASE_URL}placeholder.svg?height=400&width=600`} + : `${import.meta.env.BASE_URL}assets/placeholder.svg?height=400&width=600`} alt={photo.caption || "Migrant photo"} className="aspect-video object-cover w-full" onError={(e) => { // Handle image loading errors - e.currentTarget.src = `${import.meta.env.BASE_URL}placeholder.svg?height=400&width=600`; + e.currentTarget.src = `${import.meta.env.BASE_URL}assets/placeholder.svg?height=400&width=600`; }} />
diff --git a/src/components/home/SearchResults.tsx b/src/components/home/SearchResults.tsx index 8c7bd5b..4511108 100644 --- a/src/components/home/SearchResults.tsx +++ b/src/components/home/SearchResults.tsx @@ -75,7 +75,7 @@ export default function SearchResults() { src={ migrant.profilePhoto ? `${API_BASE_URL}${migrant.profilePhoto.file_path}` - : `${import.meta.env.BASE_URL}placeholder.svg?height=300&width=300` + : `${import.meta.env.BASE_URL}assets/placeholder.svg?height=300&width=300` } alt={migrant.full_name || "Unknown"} className="w-full h-full object-cover object-center transition-transform hover:scale-105" diff --git a/src/components/ui/ProfileSettings.tsx b/src/components/ui/ProfileSettings.tsx index 2100833..740d431 100644 --- a/src/components/ui/ProfileSettings.tsx +++ b/src/components/ui/ProfileSettings.tsx @@ -255,7 +255,7 @@ export default function ProfileSettings() {
{profile.avatar ? ( Profile diff --git a/src/components/ui/animated-image.tsx b/src/components/ui/animated-image.tsx index 80117ef..bb48ea0 100644 --- a/src/components/ui/animated-image.tsx +++ b/src/components/ui/animated-image.tsx @@ -32,7 +32,7 @@ export default function AnimatedImage({ transition={{ duration: 0.5 }} > {alt} path.replace(/^\/api/, ""), }, }, },