missions carrousse
@ -96,7 +96,7 @@ export default function MissionsPage() {
|
|||||||
return {
|
return {
|
||||||
number: oddNumber,
|
number: oddNumber,
|
||||||
label: oddNumber ? `ODD ${oddNumber}` : "Non catégorisé",
|
label: oddNumber ? `ODD ${oddNumber}` : "Non catégorisé",
|
||||||
iconPath: oddNumber ? `/images/odd/odd-${oddNumber}.png` : "/images/odd/default.png"
|
iconPath: oddNumber ? `/F SDG Icons 2019 WEB/F-WEB-Goal-${oddNumber.padStart(2, '0')}.png` : ""
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -198,12 +198,23 @@ export default function MissionsPage() {
|
|||||||
src={mission.logo}
|
src={mission.logo}
|
||||||
alt={mission.name}
|
alt={mission.name}
|
||||||
className="w-full h-full object-cover rounded-md border border-gray-200"
|
className="w-full h-full object-cover rounded-md border border-gray-200"
|
||||||
|
onError={(e) => {
|
||||||
|
console.log("Logo failed to load:", mission.logo);
|
||||||
|
// If the image fails to load, show the fallback
|
||||||
|
(e.currentTarget as HTMLImageElement).style.display = 'none';
|
||||||
|
// Show the fallback div
|
||||||
|
const fallbackDiv = e.currentTarget.parentElement?.querySelector('.logo-fallback');
|
||||||
|
if (fallbackDiv) {
|
||||||
|
(fallbackDiv as HTMLElement).style.display = 'flex';
|
||||||
|
}
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : null}
|
||||||
<div className="w-full h-full flex items-center justify-center bg-gray-100 rounded-md border border-gray-200 text-gray-400">
|
<div
|
||||||
{mission.name.slice(0, 2).toUpperCase()}
|
className={`logo-fallback w-full h-full flex items-center justify-center bg-gray-100 rounded-md border border-gray-200 text-gray-400 ${mission.logo ? 'hidden' : ''}`}
|
||||||
</div>
|
>
|
||||||
)}
|
{mission.name.slice(0, 2).toUpperCase()}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-1">
|
<div className="flex-1">
|
||||||
<div className="flex items-center gap-2 mb-2">
|
<div className="flex items-center gap-2 mb-2">
|
||||||
|
|||||||
BIN
public/.DS_Store
vendored
BIN
public/F SDG Icons 2019 WEB/.DS_Store
vendored
Normal file
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-01.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-02.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-03.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-04.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-05.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-06.png
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-07.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-08.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-09.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-10.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-11.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-12.png
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-13.png
Normal file
|
After Width: | Height: | Size: 83 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-14.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-15.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-16.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
public/F SDG Icons 2019 WEB/F-WEB-Goal-17.png
Normal file
|
After Width: | Height: | Size: 78 KiB |