|
|
|
@ -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' }">
|
|
|
|
|