|
---
|
|
import { getLangFromUrl, useTranslations } from "../i18n/utils";
|
|
const lang = getLangFromUrl(Astro.url);
|
|
const t = useTranslations(lang);
|
|
const { title } = Astro.props;
|
|
import SidebarButton from "@components/SidebarButton.astro";
|
|
import { Icon } from "astro-icon/components";
|
|
---
|
|
|
|
<div class="flex flex-row font-roboto">
|
|
<div class="text-text-color mt-16 fixed inset-0 h-[calc(100%-4rem)] z-0 bg-primary flex-col flex md:flex-row">
|
|
<div class="items-center md:p-3 sm:p-3 flex flex-row border-border-color md:gap-10 xl:gap-10 max-sm:gap-5 sm:gap-5 md:border-r-2 lg:w-2/12 md:w-3/12 md:flex-col md:bg-navbar-color md:gap-0 overflow-x-auto md:overflow-x-hidden overflow-y-hidden max-md:ml-1 max-md:mr-1 max-md:max-h-24 max-md:min-h-24 max-md:justify-left max-md:scroll-ml-3 max-md:scroll-mr-3 max-md:snap-x max-md:snap-mandatory">
|
|
<SidebarButton title={t("settings.appearance")} route={`/${lang}/settings/appearance`}>
|
|
<Icon name="ph:palette" class="h-6 w-6 text-text-color transition duration-500 group-hover:text-text-hover-color md:h-6 md:w-6" />
|
|
</SidebarButton>
|
|
<SidebarButton title={t("settings.proxy")} route={`/${lang}/settings/pr`}>
|
|
<Icon name="ph:globe-hemisphere-east-fill" class="h-6 w-6 text-text-color transition duration-500 group-hover:text-text-hover-color md:h-6 md:w-6" />
|
|
</SidebarButton>
|
|
<SidebarButton title={t("settings.tab")} route={`/${lang}/settings/tab/`}>
|
|
<Icon name="ph:laptop-fill" class="h-6 w-6 text-text-color transition duration-500 group-hover:text-text-hover-color md:h-6 md:w-6" />
|
|
</SidebarButton>
|
|
<SidebarButton title="Misc" route={`/${lang}/settings/misc`}>
|
|
<Icon name="ph:gear" class="h-6 w-6 text-text-color transistion duration-500 group-hover:text-text-hover-color md:h-6 md:w=6" />
|
|
</SidebarButton>
|
|
<SidebarButton title="Credits" route={`/${lang}/settings/credits`}>
|
|
<Icon name="ph:user" class="h-6 w-6 text-text-color transistion duration-500 group-hover:text-text-hover-color md:h-6 md:w=6" />
|
|
</SidebarButton>
|
|
</div>
|
|
<div class="p-8 md:pb-2 w-full flex-grow overflow-y-auto">
|
|
<p class="text-5xl font-semibold mb-5">{t("settings.settings")}</p>
|
|
<p class="text-2xl">{title}</p>
|
|
<slot />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|