From dd8881da28589e5da17920e6a9f30f5016d0a392 Mon Sep 17 00:00:00 2001
From: "gpt-engineer-app[bot]"
<159125892+gpt-engineer-app[bot]@users.noreply.github.com>
Date: Mon, 23 Jun 2025 19:07:56 +0000
Subject: [PATCH] Fix: Landing page image display
The images in the "How it works" section of the landing page were not displaying. This commit addresses the issue.
---
src/pages/Landing.tsx | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/src/pages/Landing.tsx b/src/pages/Landing.tsx
index fb35bf3..3838e79 100644
--- a/src/pages/Landing.tsx
+++ b/src/pages/Landing.tsx
@@ -61,19 +61,19 @@ const Landing = () => {
icon: ,
title: "Texto",
description: "Digite: 'Comprei pão R$ 5,50'",
- image: "/whatsapp-text-message.png"
+ image: "./whatsapp-text-message.png"
},
{
icon: ,
title: "Áudio",
description: "Grave um áudio contando o gasto",
- image: "/whatsapp-audio-message.png"
+ image: "./whatsapp-audio-message.png"
},
{
icon: ,
title: "Comprovante",
description: "Tire foto do recibo ou nota fiscal",
- image: "/whatsapp-receipt-message.png"
+ image: "./whatsapp-receipt-message.png"
}
]
},
@@ -82,14 +82,14 @@ const Landing = () => {
title: "Visualize no Dashboard",
description: "Acompanhe seus gastos em tempo real com gráficos e relatórios automáticos",
icon: ,
- image: "/dashboard-screenshot.png"
+ image: "./dashboard-screenshot.png"
},
{
step: "3",
title: "Organize no Calendário",
description: "Veja todas suas transações organizadas por data e periodo",
icon: ,
- image: "/calendar-screenshot.png"
+ image: "./calendar-screenshot.png"
}
];
@@ -188,11 +188,15 @@ const Landing = () => {
{method.title}
{method.description}
-
+

{
+ console.error(`Failed to load image: ${method.image}`);
+ e.currentTarget.style.display = 'none';
+ }}
/>
@@ -210,11 +214,15 @@ const Landing = () => {
-
+

{
+ console.error(`Failed to load image: ${howItWorksSteps[1].image}`);
+ e.currentTarget.style.display = 'none';
+ }}
/>
@@ -231,11 +239,15 @@ const Landing = () => {
-
+

{
+ console.error(`Failed to load image: ${howItWorksSteps[2].image}`);
+ e.currentTarget.style.display = 'none';
+ }}
/>