Add settings pages & header
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
---
|
||||
import { Icon } from "astro-icon/components";
|
||||
import type { SettingsProps as Props } from "@utils/types.ts";
|
||||
|
||||
const { active } = Astro.props;
|
||||
---
|
||||
<div class="h-full w-full flex flex-col font-inter p-4 pl-8 pt-8 gap-2">
|
||||
<a href="/settings/proxy/" class=`gap-2 px-4 py-2 rounded-lg h-10 w-full text-sm font-medium transition-colors items-center justify-start inline-flex ${active === "proxy" ? 'bg-(--secondary) hover:bg-(--secondary)/[0.8]' : 'bg-(--background) hover:bg-(--accent)'}`>
|
||||
<Icon name="lucide:lock" class="h-5 w-5" /> Proxy
|
||||
</a>
|
||||
<a href="/settings/appearance/" class=`gap-2 px-4 py-2 rounded-lg h-10 w-full text-sm font-medium transition-colors items-center justify-start inline-flex ${active === "appearance" ? 'bg-(--secondary) hover:bg-(--secondary)/[0.8]' : 'bg-(--background) hover:bg-(--accent)'}`>
|
||||
<Icon name="lucide:palette" class="h-5 w-5" /> Appearance
|
||||
</a>
|
||||
<a href="/settings/credits/" class=`gap-2 px-4 py-2 rounded-lg h-10 w-full text-sm font-medium transition-colors items-center justify-start inline-flex ${active === "credits" ? 'bg-(--secondary) hover:bg-(--secondary)/[0.8]' : 'bg-(--background) hover:bg-(--accent)'}`>
|
||||
<Icon name="lucide:users" class="h-5 w-5" /> Credits
|
||||
</a>
|
||||
<a href="/settings/links/" class=`gap-2 px-4 py-2 rounded-lg h-10 w-full text-sm font-medium transition-colors items-center justify-start inline-flex ${active === "links" ? 'bg-(--secondary) hover:bg-(--secondary)/[0.8]' : 'bg-(--background) hover:bg-(--accent)'}`>
|
||||
<Icon name="lucide:link" class="h-5 w-5" /> Social Links
|
||||
</a>
|
||||
</div>
|
||||
Reference in New Issue
Block a user