From d2862ec43ab3dd6b81ecfc35f8ad3251caac28d3 Mon Sep 17 00:00:00 2001 From: Korbs Date: Fri, 7 Jun 2024 03:16:38 -0400 Subject: [PATCH] Add layouts --- src/layouts/Document.astro | 180 +++++++++++++++++++++++++++++++++++++ src/layouts/Splash.astro | 136 ++++++++++++++++++++++++++++ 2 files changed, 316 insertions(+) create mode 100644 src/layouts/Document.astro create mode 100644 src/layouts/Splash.astro diff --git a/src/layouts/Document.astro b/src/layouts/Document.astro new file mode 100644 index 0000000..c7ee218 --- /dev/null +++ b/src/layouts/Document.astro @@ -0,0 +1,180 @@ +--- +// Environment Variables +import { + ORG_NAME, + FEEDBACK_ENABLED, + FEELBACK_ENABLED, + REVERT_LAYOUT, + WHITELABEL +} from '@utils/GetConfig' + +// Properties +const { Title, Feedback, Feelback } = Astro.props + +// Components +import Head from '@components/global/Head.astro' +import Header from '@components/global/Header.astro' +import FeelbackYesNo from "astro-feelback/components/FeelbackYesNo.astro"; + +// Styles +import "@styles/feelback.css"; +--- + + +
+
+
+ +
+

{Title}

+ + + { + FEEDBACK_ENABLED ? + // Feelback + FEELBACK_ENABLED ? + + : + null + : + null + } +
+
+ +
+ + + + +{REVERT_LAYOUT ? + + : + null +} \ No newline at end of file diff --git a/src/layouts/Splash.astro b/src/layouts/Splash.astro new file mode 100644 index 0000000..f827103 --- /dev/null +++ b/src/layouts/Splash.astro @@ -0,0 +1,136 @@ +--- +// Environment Variables +import { + ORG_NAME, + FEEDBACK_ENABLED, + FEELBACK_ENABLED, + REVERT_LAYOUT, + WHITELABEL +} from '@utils/GetConfig' + +// Properties +const { Title, Feedback, Feelback } = Astro.props + +// Components +import Head from '@components/global/Head.astro' +import Header from '@components/global/Header.astro' +import FeelbackYesNo from "astro-feelback/components/FeelbackYesNo.astro"; + +// Styles +import "@styles/feelback.css"; +--- + + +
+
+
+
+

{Title}

+ +
+
+ +
+ + + \ No newline at end of file