new font
This commit is contained in:
@@ -1,24 +1,58 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import type {CookieRef} from "#app";
|
||||||
|
|
||||||
definePageMeta({
|
definePageMeta({
|
||||||
layout: "dashboard"
|
layout: "dashboard"
|
||||||
|
})
|
||||||
|
|
||||||
|
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;
|
||||||
})
|
})
|
||||||
|
|
||||||
const color_choose = ref(["Cyan","Red","Green","Blue","Purple"])
|
|
||||||
|
|
||||||
</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>
|
||||||
|
<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>
|
||||||
</UContainer>
|
</UContainer>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user