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