small ui/ux improvments

This commit is contained in:
Benny Samir Hierl 2022-02-07 20:32:18 +01:00
parent e0abc98b19
commit 258a30c35a
5 changed files with 22 additions and 9 deletions

View file

@ -7,10 +7,7 @@
<title>Wunschlisten</title>
</head>
<body>
<div
id="app"
class="bg-white dark:bg-stone-900 text-black dark:text-white/75"
></div>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>

View file

@ -1,7 +1,9 @@
<template>
<div class="h-screen max-w-[900px] mx-auto">
<div
class="h-screen bg-white dark:bg-stone-900 text-black dark:text-white/75 p-4"
>
<Header />
<main class="h-full">
<main class="h-full max-w-[900px] mx-auto">
<router-view v-slot="{ Component }">
<template v-if="Component">
<div

View file

@ -1,12 +1,17 @@
<template>
<header class="py-4 flex flex-row-reverse opacity-60">
<div @click="toggleMode"><IconLightDark class="h-6 w-6" /></div>
<header
class="flex flex-row justify-end items-center opacity-60 mb-2 space-x-2"
>
<div @click="toggleMode">
<IconLightDark class="h-6 w-6 cursor-pointer" />
</div>
<!-- <div><IconMenu class="h-8 w-8 cursor-pointer"></IconMenu></div> -->
</header>
</template>
<script setup lang="ts">
import { useColorMode } from '@vueuse/core'
import { IconLightDark } from '@/components/icons'
import { IconLightDark, IconMenu } from '@/components/icons'
const mode = useColorMode()
const toggleMode = () => {

View file

@ -0,0 +1,8 @@
<template>
<svg viewBox="0 0 24 24">
<path
d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"
fill="currentColor"
></path>
</svg>
</template>

View file

@ -5,3 +5,4 @@ export { default as IconLink } from './IconLink.vue'
export { default as IconSpinner } from './IconSpinner.vue'
export { default as IconNoGift } from './IconNoGift.vue'
export { default as IconLightDark } from './IconLightDark.vue'
export { default as IconMenu } from './IconMenu.vue'