From c9c734da1ee4709382f97cab919f33aaf0ca7601 Mon Sep 17 00:00:00 2001 From: Korbs Date: Sun, 23 Jun 2024 22:32:33 -0400 Subject: [PATCH] update --- src/components/global/HeaderDropdown.astro | 180 +++++++++++++++++++++ src/pages/index.astro | 2 +- src/pages/search-start.astro | 71 -------- 3 files changed, 181 insertions(+), 72 deletions(-) create mode 100644 src/components/global/HeaderDropdown.astro delete mode 100644 src/pages/search-start.astro diff --git a/src/components/global/HeaderDropdown.astro b/src/components/global/HeaderDropdown.astro new file mode 100644 index 0000000..669e175 --- /dev/null +++ b/src/components/global/HeaderDropdown.astro @@ -0,0 +1,180 @@ +--- +// i18n +import i18next, { t } from "i18next"; +import { Trans, HeadHrefLangs } from "astro-i18next/components"; + +// Icons +import { + RefreshDouble, + Search, + Menu, + LogIn, + 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 +} +--- + +
+

{t('dropdown.Options')}

+
{t('dropdown.Language')}
+ {t('dropdown.Account')} + {t('dropdown.Settings')} + {t('dropdown.Instances')} + +

{t('dropdown.Hub')}

+ {t('dropdown.Apps')} + {t('dropdown.Games')} + + + {WatchPage ? +

{t('dropdown.Openin')}

+ {t('dropdown.LiteMode')} + {t('dropdown.YouTube')} + {t('dropdown.Invidious')} + {t('dropdown.Pipe')} + : + null + } + +

{t('dropdown.Other')}

+ {t('dropdown.About')} + {t('dropdown.Privacy')} + {t('dropdown.SourceCode')} +
+
+

{t('dropdown.Language')}

+ {t("dropdown.GoBack")} + English + 日本語 +
+ + + + + \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index 0ca6327..062e688 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -255,7 +255,7 @@ p { display: flex; align-items: center; text-decoration: none; - &:hover { + &:hover, &:focus { filter: brightness(0.8); text-decoration: nones; } diff --git a/src/pages/search-start.astro b/src/pages/search-start.astro deleted file mode 100644 index 797f258..0000000 --- a/src/pages/search-start.astro +++ /dev/null @@ -1,71 +0,0 @@ ---- -// Layout -import Base from "@layouts/Default.astro"; - -// i18n -import i18next, { t } from "i18next"; -import { Trans, HeadHrefLangs } from "astro-i18next/components"; - -// Fetch Suggestions - ---- - - - -
- -
-
- - - \ No newline at end of file