diff options
Diffstat (limited to 'components/editor/EditorSidebarMainConfiguration.vue')
| -rw-r--r-- | components/editor/EditorSidebarMainConfiguration.vue | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/components/editor/EditorSidebarMainConfiguration.vue b/components/editor/EditorSidebarMainConfiguration.vue new file mode 100644 index 0000000..c4727c6 --- /dev/null +++ b/components/editor/EditorSidebarMainConfiguration.vue @@ -0,0 +1,57 @@ +<script setup lang="ts"> +import { computed } from 'vue'; + +const route = useRoute(); + +const setSelected = () => { + navigateTo({ path: '/config' }) +}; + +const selected = computed(() => { + return route.path.startsWith('/config'); +}); +</script> + +<template> + <div id="container" :class="{ selected: selected }"> + <span id="title" @click="setSelected"> + <font-awesome-icon class="icon" :icon="['fas', 'wrench']" /> + <span id="name"> + Configuration + </span> + </span> + </div> +</template> + +<style scoped> +#container { + cursor: pointer; + padding: 0.5rem 1rem; + transition: background-color 0.3s; + border-bottom: 1px solid var(--color-border-soft); + max-height: 45px; + overflow-y: hidden; + + #title { + display: flex; + align-items: center; + margin: 0; + gap: 1rem; + font-size: 1.1rem; + + #name { + display: flex; + flex-direction: column; + align-items: left; + } + } +} + +.selected { + background-color: var(--color-primary-mute); +} + +#container:hover { + background-color: var(--color-hover); +} +</style>
\ No newline at end of file |
