From a12e7c5c22682c75bdf77354d952b18a91979b50 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Mon, 3 Jun 2024 23:39:22 +0100 Subject: [PATCH] Astro pages build up --- src/pages/account/index.astro | 3 +-- src/pages/check/[...target].astro | 2 +- src/pages/docs-api.astro | 7 +++++- src/pages/index.astro | 40 +++++++++++++++---------------- 4 files changed, 27 insertions(+), 25 deletions(-) diff --git a/src/pages/account/index.astro b/src/pages/account/index.astro index 65ec0c6..a71474d 100644 --- a/src/pages/account/index.astro +++ b/src/pages/account/index.astro @@ -1,6 +1,6 @@ --- import BaseLayout from '@layouts/Base.astro'; -import Nav from '@components/Nav.astro'; +import Nav from '@/components/scafold/Nav.astro'; --- @@ -16,7 +16,6 @@ import Nav from '@components/Nav.astro'; padding: 1rem 0; background: rgb(20,29,43); background: radial-gradient(circle,#141d2b 0%,#0d1521 75%,#141d2b 100%); - h2 { font-weight: 300; } diff --git a/src/pages/check/[...target].astro b/src/pages/check/[...target].astro index 87333d2..7e73174 100644 --- a/src/pages/check/[...target].astro +++ b/src/pages/check/[...target].astro @@ -24,7 +24,7 @@ if (searchUrl) { // And if form has been submitted with ?url=, redirect to the results page const searchParams = new URL(window.location.href).searchParams; if (searchParams.has('url')) { - window.location.href = `/check/${searchParams.get('url')}`; + window.location.href = `/check/${encodeURIComponent(searchParams.get('url') || '')}`; } // And add a manual no-react form submit handler diff --git a/src/pages/docs-api.astro b/src/pages/docs-api.astro index c42bee7..0b95924 100644 --- a/src/pages/docs-api.astro +++ b/src/pages/docs-api.astro @@ -1,5 +1,9 @@ --- import BaseLayout from '@layouts/Base.astro'; +import NavBar from '@components/scafold/Nav.astro'; +// import Footer from '@components/scafold/Footer.astro'; +// import config from '../site-config'; + ---
+
@@ -33,7 +38,7 @@ import BaseLayout from '@layouts/Base.astro';