Added title input to notes [id].vue

main
TZGyn 3 years ago
parent b88a4e163f
commit 37be3b1b0a
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -14,3 +14,11 @@ body::-webkit-scrollbar,
#__nuxt::-webkit-scrollbar { #__nuxt::-webkit-scrollbar {
@apply hidden; @apply hidden;
} }
input {
@apply bg-primary border-none p-2;
}
input:focus {
@apply bg-secondary border-none outline-none;
}

@ -1,6 +1,9 @@
<template> <template>
<NuxtLayout name="edit"> <NuxtLayout name="edit">
<template #content> <template #content>
<div class="mb-2 flex w-full">
<input type="text" v-model="note.title" placeholder="untitled" @change="submit()" />
</div>
<div class="sticky top-0 flex w-full justify-between"> <div class="sticky top-0 flex w-full justify-between">
<div @click="toggleComp('text')" class="bg-lightgray w-1/2 p-2 text-center text-xl" <div @click="toggleComp('text')" class="bg-lightgray w-1/2 p-2 text-center text-xl"
:class="{ 'bg-secondary': comp === 'text' }"> :class="{ 'bg-secondary': comp === 'text' }">

Loading…
Cancel
Save