diff --git a/app.vue b/app.vue index 1f69d03..95ced67 100644 --- a/app.vue +++ b/app.vue @@ -30,4 +30,11 @@ body { #__nuxt { @apply min-h-screen flex; } + +/* GLOBAL */ +.btn, +.select { + min-height: 2.5rem; + height: 2.5rem; +} diff --git a/components/PageTitle.vue b/components/PageTitle.vue index 2b18f03..5a5dd93 100644 --- a/components/PageTitle.vue +++ b/components/PageTitle.vue @@ -1,13 +1,33 @@ - + {{ text }} + + diff --git a/layouts/default.vue b/layouts/default.vue index 948c931..dceda67 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -71,7 +71,7 @@ async function logout() { - + { - const appTileColors = [ - ['bg-primary', 'text-primary-content'], - ['bg-secondary', 'text-secondary-content'], - ['bg-accent', 'text-accent-content'], - ['bg-neutral', 'text-neutral-content'], - ['bg-info', 'text-info-content'], - ['bg-success', 'text-success-content'], - ['bg-warning', 'text-warning-content'], - ['bg-error', 'text-error-content'], - // FIXME currently using daisyui theme colors, - // if we want more colors we need to adapt those to every themes. - // ['bg-red-500', 'text-red-100'], - // ['bg-orange-500', 'text-orange-100'], - // ['bg-yellow-500', 'text-yellow-100'], - // ['bg-lime-500', 'text-lime-100'], - // ['bg-green-500', 'text-green-100'], - // ['bg-teal-500', 'text-teal-100'], - // ['bg-indigo-500', 'text-indigo-100'], - // ['bg-primary', 'text-primary-content'], - // ['bg-purple-500', 'text-purple-100'], - // ['bg-rose-500', 'text-rose-100'], + const appTileVariant = [ + 'btn-primary', + 'btn-secondary', + 'btn-accent', + 'btn-neutral', + 'btn-info', + 'btn-success', + 'btn-warning', + 'btn-error', + // FIXME currently using daisyui btn colors to get focus/hover styles, + // if we want more colors we need to add btn variants based on daisyui colors. + // 'bg-red-500' + // 'bg-orange-500' + // 'bg-yellow-500' + // 'bg-lime-500' + // 'bg-green-500' + // 'bg-teal-500' + // 'bg-indigo-500' + // 'bg-primary', + // 'bg-purple-500' + // 'bg-rose-500' ] return Object.entries(appsData.value).map(([id, app]) => { @@ -39,7 +39,7 @@ const apps = computed(() => { ...app, id, url: '//' + app.url, - colors: appTileColors[parseInt(app.label, 36) % appTileColors.length], + variant: appTileVariant[parseInt(app.label, 36) % appTileVariant.length], } }) }) @@ -47,7 +47,7 @@ const apps = computed(() => { - + @@ -55,13 +55,8 @@ const apps = computed(() => { - - - + + {{ app.label.substring(0, 2) }} @@ -81,18 +76,16 @@ const apps = computed(() => { grid-gap: 1.5rem; } -.tile-layer { - z-index: -1; - position: absolute; - @apply inset-0; - @apply rounded-2xl; - transform: translate(0rem, 0rem); -} -#apps li.card:hover div.tile-layer { - transform: translate(0.75rem, 0.75rem); +.tile a { + display: inline-block; + height: 100%; + width: 100%; + text-align: start; + border-radius: 0; } -#apps li.card:hover { - transform: translate(-0.75rem, -0.75rem); +.tile:hover a, +.tile a:focus { + transform: scale(1.05); }