From e04867efb77b60f751d053e24bafb98844b3b0b2 Mon Sep 17 00:00:00 2001 From: Kamil M <116840531+proxima812@users.noreply.github.com> Date: Tue, 10 Sep 2024 03:46:42 +0500 Subject: [PATCH] 1 --- src/components/Logo.astro | 18 ++ src/components/TG.astro | 38 +++ src/components/ZOOM.astro | 25 ++ src/layouts/Base.astro | 31 +- src/pages/admin.astro | 429 +++++++++++++------------- src/pages/api/addPost.json.ts | 4 - src/pages/api/updatePost/[id].json.ts | 19 +- src/pages/index.astro | 91 +++++- src/pages/signin.astro | 2 +- src/pages/signup.astro | 2 +- 10 files changed, 414 insertions(+), 245 deletions(-) create mode 100644 src/components/Logo.astro create mode 100644 src/components/TG.astro create mode 100644 src/components/ZOOM.astro diff --git a/src/components/Logo.astro b/src/components/Logo.astro new file mode 100644 index 0000000..da7ecef --- /dev/null +++ b/src/components/Logo.astro @@ -0,0 +1,18 @@ +--- + +--- + + diff --git a/src/components/TG.astro b/src/components/TG.astro new file mode 100644 index 0000000..b5f68f2 --- /dev/null +++ b/src/components/TG.astro @@ -0,0 +1,38 @@ +--- + +--- + + diff --git a/src/components/ZOOM.astro b/src/components/ZOOM.astro new file mode 100644 index 0000000..034f445 --- /dev/null +++ b/src/components/ZOOM.astro @@ -0,0 +1,25 @@ +--- + +--- + + diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index c301588..9815d34 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -1,8 +1,10 @@ --- +import Logo from "@/components/Logo.astro" + const user = Astro.locals.user --- - +
@@ -10,17 +12,20 @@ const user = Astro.locals.user