From 89dad2ee13690ec3d2f85a032fdabc139d000d05 Mon Sep 17 00:00:00 2001 From: Oier Bravo Urtasun Date: Mon, 23 Jun 2025 23:56:57 +0200 Subject: [PATCH] swipe things --- client/src/components/SwipeNavigation.astro | 98 +++++++++++++++++++++ client/src/layouts/Layout.astro | 2 + 2 files changed, 100 insertions(+) create mode 100644 client/src/components/SwipeNavigation.astro diff --git a/client/src/components/SwipeNavigation.astro b/client/src/components/SwipeNavigation.astro new file mode 100644 index 00000000..4c5f87cc --- /dev/null +++ b/client/src/components/SwipeNavigation.astro @@ -0,0 +1,98 @@ +--- +// SwipeNavigation component for mobile swipe-to-go-back functionality +--- + +
+
+
+ + + + \ No newline at end of file diff --git a/client/src/layouts/Layout.astro b/client/src/layouts/Layout.astro index 7f45dadf..23884a96 100644 --- a/client/src/layouts/Layout.astro +++ b/client/src/layouts/Layout.astro @@ -2,6 +2,7 @@ import "../styles/global.css"; import Head from "./Head.astro"; import Navigation from "../components/Navigation.astro"; +import SwipeNavigation from "../components/SwipeNavigation.astro"; import { getLanguageFromPath } from "../lib/i18n"; import ReloadPrompt from '../components/ReloadPrompt.astro'; @@ -22,6 +23,7 @@ const currentLang = getLanguageFromPath(Astro.url.pathname); +