diff --git a/public/background_img.jpeg b/public/background_img.jpeg new file mode 100644 index 0000000..acd2b21 Binary files /dev/null and b/public/background_img.jpeg differ diff --git a/public/background_img.png b/public/background_img.png deleted file mode 100644 index 9278f3a..0000000 Binary files a/public/background_img.png and /dev/null differ diff --git a/src/App.tsx b/src/App.tsx index 73bae60..d075a52 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -19,6 +19,7 @@ export function App() { const [snapshots, setSnapshots] = useState([]); const [sessionExpired, setSessionExpired] = useState(false); const [streamKey, setStreamKey] = useState(0); + const [toast, setToast] = useState(null); const { startRecording, @@ -70,8 +71,12 @@ export function App() { if (!res.ok) throw new Error("Snapshot failed"); const data = await res.json(); setSnapshots((prev) => [data.filename, ...prev]); + setToast("Capture d'écran prise"); + setTimeout(() => setToast(null), 2000); } catch (e) { console.error("Snapshot error:", e); + setToast("Erreur lors de la capture"); + setTimeout(() => setToast(null), 2000); } }; @@ -103,23 +108,33 @@ export function App() { )} -
-