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"; --- +
- +