This commit is contained in:
2025-12-30 21:13:27 +00:00
parent 0acf354473
commit c0660049f4

View File

@@ -1,23 +1,57 @@
<script setup lang="ts"> <script setup lang="ts">
import type {CookieRef} from "#app";
definePageMeta({ definePageMeta({
layout: "dashboard" layout: "dashboard"
}) })
const color_choose = ref(["Cyan","Red","Green","Blue","Purple"]) const colors_list = ref(["Cyan","Red","Green","Blue","Purple"])
const color = ref("...");
const fonts_list = ref(["Public Sans","Space Grotesk", "Geist"])
const font = ref("...");
onMounted(() => {
color.value = ui_color_cookie().value
})
watch(color, (newVal, oldVal) => {
ui_color_cookie().value = newVal;
})
</script> </script>
<template> <template>
<DashboardHeader title="Customization" /> <DashboardHeader title="Customization" />
<UContainer class="mt-4 max-w-full"> <UContainer class="mt-4 max-w-full justify-center">
<UFormField <UFormField
label="Color" label="Main Color"
orientation="horizontal" orientation="horizontal"
description="Select your color theme" description="Select the main color of the UI"
class="" size="lg"
class="flex justify-between w-full mt-3 mb-3"
> >
<UColorModeSelect class="" /> <USelect v-model="color" :items="colors_list" />
</UFormField>
<UFormField
label="Mode"
orientation="horizontal"
description="Select if you want Light or Dark mode"
size="lg"
class="flex justify-between w-full mt-3 mb-3"
>
<UColorModeSelect />
</UFormField>
<UFormField
label="Font"
orientation="horizontal"
description="Select which font you want"
size="lg"
class="flex justify-between w-full mt-3 mb-3"
>
<USelect v-model="font" :items="fonts_list" />
</UFormField> </UFormField>
</UContainer> </UContainer>
</template> </template>