feat: publish widget markup (#12)

This commit is contained in:
patak 2022-11-16 22:27:02 +01:00 committed by GitHub
parent 85eb81ba80
commit 6e54d95bbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 9 deletions

View file

@ -3,10 +3,11 @@ const { currentUser } = useAppStore()
</script>
<template>
<div p4>
<div flex flex-col gap-4 p4>
<!-- TODO: multiple account switcher -->
<AccountInfo v-if="currentUser?.account" :account="currentUser.account" />
<!-- TODO: dialog for select server -->
<a v-else href="/api/mas.to/login" px2 py1 bg-teal6 text-white m2 rounded>Login</a>
<PublishWidget />
</div>
</template>

View file

@ -0,0 +1,14 @@
<script setup lang="ts">
</script>
<template>
<div flex flex-col gap-4>
<textarea p2 border-rounded w-full h-40 color-black placeholder="What's on your mind?" />
<div flex justify-end>
<button h-9 w-22 bg-primary border-rounded>
Publish!
</button>
</div>
</div>
</template>