From 6de1fc8113628d376f970d01eafe178ab2836a43 Mon Sep 17 00:00:00 2001 From: Korbs Date: Fri, 21 Jun 2024 02:41:23 -0400 Subject: [PATCH] Add components --- src/components/Dropdown.astro | 161 +++++++++++++++++++++++++++++ src/components/global/Footer.astro | 0 src/components/global/Head.astro | 24 +++++ src/components/global/Header.astro | 99 ++++++++++++++++++ 4 files changed, 284 insertions(+) create mode 100644 src/components/Dropdown.astro create mode 100644 src/components/global/Footer.astro create mode 100644 src/components/global/Head.astro create mode 100644 src/components/global/Header.astro diff --git a/src/components/Dropdown.astro b/src/components/Dropdown.astro new file mode 100644 index 0000000..a928989 --- /dev/null +++ b/src/components/Dropdown.astro @@ -0,0 +1,161 @@ +--- +// Properties +const { + Icon +} = Astro.props + +// Icons +import { + Menu, + Settings, + ProfileCircle, + CircleSpark, + Youtube, + OpenNewWindow, + ViewGrid, + Arcade, + InfoCircle, + PrivacyPolicy, + Code, + Language, + NavArrowLeft, + NavArrowRight, + List +} from '@iconoir/vue' + +// Check URL +if (Astro.url.pathname.startsWith('/watch')) { + var WatchPage = true +} else { + var WatchPage = false +} +--- + + +
+

Options

+
Language
+ Account + Settings + Instances + +

Hub

+ Apps + Games + +

Open in...

+ Lite Mode + YouTube + Invidious + Pipe + Invidious + +

Other

+ About + Privacy + Source Code +
+
+

Language

+ Go Back + English + Spanish + Russian + Japanese +
+ + + + \ No newline at end of file diff --git a/src/components/global/Footer.astro b/src/components/global/Footer.astro new file mode 100644 index 0000000..e69de29 diff --git a/src/components/global/Head.astro b/src/components/global/Head.astro new file mode 100644 index 0000000..f707ca7 --- /dev/null +++ b/src/components/global/Head.astro @@ -0,0 +1,24 @@ +--- +// Properties +const { + Title, + Description +} = Astro.props +--- + + + + + {Title} + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/global/Header.astro b/src/components/global/Header.astro new file mode 100644 index 0000000..fb129d6 --- /dev/null +++ b/src/components/global/Header.astro @@ -0,0 +1,99 @@ +--- +// Components +import { Image } from 'astro:assets'; +import { actions } from "astro:actions"; +import Dropdown from '@components/Dropdown.astro' + +// Images +import Poke from '@assets/poke-text.svg' + +// Icons +import { + Server, + Gamepad, + Settings, + Search, + Language +} from '@iconoir/vue' +--- + +
+
+
+ Poke Logo +
+
+
+ + +
+
+
+ +
+
+
+ + \ No newline at end of file