UPD: Styling

This commit is contained in:
Robert Kossessa
2024-01-25 02:55:51 +01:00
parent 7d81a5316c
commit 54b1c499a1
3 changed files with 68 additions and 81 deletions

View File

@@ -40,6 +40,9 @@
</MenubarItem> </MenubarItem>
</MenubarContent> </MenubarContent>
</MenubarMenu> </MenubarMenu>
<span class="pl-14 inline-block">STATUS: <b class="font-heading text-lg">CONNECTED</b></span>
<span class="text-muted-foreground px-5 inline-block">///</span>
<p>SYNCING...</p>
</Menubar> </Menubar>
</div> </div>
</template> </template>

View File

@@ -23,7 +23,7 @@
v-model="filter" v-model="filter"
:placeholder="$t('profiles.filter_placeholder')" :placeholder="$t('profiles.filter_placeholder')"
class="grow h-full bg-transparent text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-50"> class="grow h-full bg-transparent text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-50">
<button class="h-full flex justify-center items-center aspect-square border-solid border-0 border-l hover:bg-zinc-900"> <button class="h-full flex text-zinc-200 bg-zinc-900 justify-center items-center aspect-square border-solid border-0 border-l hover:bg-zinc-800">
<Plus /> <Plus />
</button> </button>
</div> </div>

View File

@@ -1,33 +1,22 @@
<template> <template>
<TabsContent value="prog-config" class="mt-0"> <div class="w-96">
<div class="w-96 bg-zinc-900 bg-opacity-40">
<ScrollArea class="h-[720px]">
<ConfigSection :title="$t('config_options.profile_settings.connection_type.title')" :icon-component="Cable"> <ConfigSection :title="$t('config_options.profile_settings.connection_type.title')" :icon-component="Cable">
<Tabs default-value="fd"> <div class="w-full flex text-muted-foreground">
<TabsList class="grid grid-cols-2 h-auto text-muted-foreground"> <button
<TabsTrigger value="fd"> class="hover:bg-zinc-900 grow flex flex-col justify-center items-center py-4">
<div class="grid grid-flow-row auto-rows-max justify-items-center "> <img class="w-24 size-w mb-2" src="@/assets/gui-ico/ico-usb-logo.svg" alt="usb-logo">
<div class="w-24 size-w mb-2">
<img src="../../../assets/gui-ico/ico-usb-logo.svg" alt="usb-logo">
</div>
<span <span
class="text-xs leading-3 text-wrap">{{ $t('config_options.profile_settings.connection_type.usb') class="text-xs leading-3 text-wrap">{{ $t('config_options.profile_settings.connection_type.usb')
}}</span> }}</span>
</button>
<button
class="hover:bg-zinc-900 grow flex flex-col justify-center items-center py-4">
<img class="w-24 size-w mb-2" src="@/assets/gui-ico/ico-midi-logo.svg" alt="midi-logo">
<span
class="text-xs leading-3 text-wrap">{{ $t('config_options.profile_settings.connection_type.midi')
}}</span>
</button>
</div> </div>
</TabsTrigger>
<TabsTrigger value="cd">
<div class="grid grid-flow-row auto-rows-max justify-items-center">
<div class="w-24 size-w mb-2">
<img src="../../../assets/gui-ico/ico-midi-logo.svg" alt="midi-logo">
</div>
<span class="text-xs leading-3 text-wrap">
{{ $t('config_options.profile_settings.connection_type.midi') }}
</span>
</div>
</TabsTrigger>
</TabsList>
</Tabs>
</ConfigSection> </ConfigSection>
<ConfigSection :title="$t('config_options.profile_settings.profile_properties.title')" :icon-component="Type"> <ConfigSection :title="$t('config_options.profile_settings.profile_properties.title')" :icon-component="Type">
<div class="flex flex-col p-8 py-4"> <div class="flex flex-col p-8 py-4">
@@ -76,23 +65,18 @@
<span>{{ $t('config_options.profile_settings.internal_profile_toggle.warning') }}</span> <span>{{ $t('config_options.profile_settings.internal_profile_toggle.warning') }}</span>
</p> </p>
</ConfigSection> </ConfigSection>
</ScrollArea>
<Separator />
</div> </div>
</TabsContent>
</template> </template>
<script setup> <script setup>
import { ScrollArea } from '@/components/ui/scroll-area/index.js'
import { Tabs } from '@/components/ui/tabs/index.js'
import { Label } from '@/components/ui/label/index.js' import { Label } from '@/components/ui/label/index.js'
import { Switch } from '@/components/ui/switch/index.js' import { Switch } from '@/components/ui/switch/index.js'
import { Replace, Type, Cable, Power } from 'lucide-vue-next' import { Replace, Type, Cable } from 'lucide-vue-next'
import ConfigSection from '@/components/config/ConfigSection.vue' import ConfigSection from '@/components/config/ConfigSection.vue'
import { Separator } from '@/components/ui/separator/index.js' import { Separator } from '@/components/ui/separator/index.js'
import { ref } from 'vue'
const connectionType = ref('usb')
</script> </script>
<style scoped> <style scoped>
input::-webkit-outer-spin-button, input::-webkit-outer-spin-button,