From 5919c55808eb0d4919015fb4ac2227467f9b1635 Mon Sep 17 00:00:00 2001 From: Delta1925 Date: Sun, 16 Apr 2023 13:55:06 +0200 Subject: [PATCH] Improve webpage --- src/components/cursor-catcher.astro | 9 +++++++++ src/layouts/Layout.astro | 5 ++++- src/pages/delete.astro | 8 +++++++- src/pages/index.astro | 3 ++- src/pages/{success.astro => status.astro} | 2 +- src/pages/submit.astro | 11 +++++++++-- 6 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 src/components/cursor-catcher.astro rename src/pages/{success.astro => status.astro} (88%) diff --git a/src/components/cursor-catcher.astro b/src/components/cursor-catcher.astro new file mode 100644 index 0000000..e0b1602 --- /dev/null +++ b/src/components/cursor-catcher.astro @@ -0,0 +1,9 @@ +--- +export interface Props { + id: string; +} + +const { id } = Astro.props; +--- + + diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index f64bdf6..4ecffc9 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -15,7 +15,10 @@ const { title } = Astro.props; {title} - + diff --git a/src/pages/delete.astro b/src/pages/delete.astro index 1ec9d90..ad4d3ed 100644 --- a/src/pages/delete.astro +++ b/src/pages/delete.astro @@ -1,15 +1,19 @@ --- import Layout from "../layouts/Layout.astro"; import CenterXy from "../components/center-xy.astro"; +import CursorCatcher from "../components/cursor-catcher.astro"; + import "../styles/global.css"; --- +
- +
diff --git a/src/pages/index.astro b/src/pages/index.astro index 0467dd1..a2885d9 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,7 +1,8 @@ --- import Layout from "../layouts/Layout.astro"; -import "../styles/global.css"; import CenterXy from "../components/center-xy.astro"; + +import "../styles/global.css"; --- diff --git a/src/pages/success.astro b/src/pages/status.astro similarity index 88% rename from src/pages/success.astro rename to src/pages/status.astro index 8ae6b45..34a8fea 100644 --- a/src/pages/success.astro +++ b/src/pages/status.astro @@ -3,7 +3,7 @@ import Layout from "../layouts/Layout.astro"; import CenterXy from "../components/center-xy.astro"; --- - +

((%m))

diff --git a/src/pages/submit.astro b/src/pages/submit.astro index 39564b1..6728213 100644 --- a/src/pages/submit.astro +++ b/src/pages/submit.astro @@ -1,15 +1,19 @@ --- import Layout from "../layouts/Layout.astro"; -import "../styles/global.css"; import CenterXy from "../components/center-xy.astro"; +import CursorCatcher from "../components/cursor-catcher.astro"; + +import "../styles/global.css"; --- +
- +