From b8eb4420f4a5c00bb80ae40ef0c5f321bc9fbef2 Mon Sep 17 00:00:00 2001 From: Korbs Date: Wed, 31 Jan 2024 06:58:44 -0500 Subject: [PATCH] Override some Starlight components --- src/components/PageFrame.astro | 105 +++++++++++++++++++++ src/components/global/Head-Starlight.astro | 23 +++++ src/components/starlight/Pagination.astro | 17 ++++ 3 files changed, 145 insertions(+) create mode 100644 src/components/PageFrame.astro create mode 100644 src/components/global/Head-Starlight.astro create mode 100644 src/components/starlight/Pagination.astro diff --git a/src/components/PageFrame.astro b/src/components/PageFrame.astro new file mode 100644 index 0000000..8a23074 --- /dev/null +++ b/src/components/PageFrame.astro @@ -0,0 +1,105 @@ +--- +import MobileMenuToggle from 'virtual:starlight/components/MobileMenuToggle' +import type { Props } from '@astrojs/starlight/props' + +const { hasSidebar, labels } = Astro.props; +import { fade, ViewTransitions } from 'astro:transitions' +import Search from '@astrojs/starlight/components/Search.astro' +--- + +
+ +
+
+ { + hasSidebar && ( + + ) + } +
+ +
+
+
+ + \ No newline at end of file diff --git a/src/components/global/Head-Starlight.astro b/src/components/global/Head-Starlight.astro new file mode 100644 index 0000000..2130d72 --- /dev/null +++ b/src/components/global/Head-Starlight.astro @@ -0,0 +1,23 @@ +--- +const { Title, Description } = Astro.props +--- + + + + {Title} + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/starlight/Pagination.astro b/src/components/starlight/Pagination.astro new file mode 100644 index 0000000..5d85698 --- /dev/null +++ b/src/components/starlight/Pagination.astro @@ -0,0 +1,17 @@ +--- +import "astro-feelback/styles/feelback.css" +import FeelbackYesNo from "astro-feelback/components/FeelbackYesNo.astro" + +// Check if user is on Support Center +if (Astro.url.pathname.startsWith("/support")) { + var IsOnSupport = true +} else { + var IsOnSupport = false +} +--- + +{IsOnSupport ? +
+ : + null +} \ No newline at end of file