From 529609ded4363d95a238d9e80c2c3ab0c08519f9 Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Wed, 9 Oct 2024 20:35:30 +0200 Subject: [PATCH] add classic styled view counter --- src/components/ViewCounter.astro | 58 ++++++++++++++++++++++++++++++++ src/pages/index.astro | 11 +++--- 2 files changed, 65 insertions(+), 4 deletions(-) create mode 100644 src/components/ViewCounter.astro diff --git a/src/components/ViewCounter.astro b/src/components/ViewCounter.astro new file mode 100644 index 0000000..03415c3 --- /dev/null +++ b/src/components/ViewCounter.astro @@ -0,0 +1,58 @@ +
+
+ ? +
+
unique visitors
+
+ + + + diff --git a/src/pages/index.astro b/src/pages/index.astro index 1dcb9ad..726f72f 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,5 +1,6 @@ --- import BaseLayout from '../layouts/BaseLayout.astro'; +import ViewCounter from "../components/ViewCounter.astro"; const title = 'Home'; const description = 'My little corner of the internet.'; @@ -16,6 +17,9 @@ const permalink = Astro?.site?.href ?? '/'; My online status: Unknown +
+ +
@@ -66,9 +70,7 @@ const permalink = Astro?.site?.href ?? '/';