added button component

main
TZGyn 3 years ago
parent 1b5279b1cc
commit 5c4cf7e161

@ -1,6 +1,6 @@
<template>
<div
class="bg-primary flex h-screen w-full flex-col items-center px-12 text-white">
class="bg-primary flex h-screen w-full flex-col items-center gap-4 px-12 text-white">
<slot />
</div>
</template>

@ -0,0 +1,6 @@
<template>
<button
class="w-fit rounded-md p-2 font-bold transition-all duration-500 ease-out hover:px-4">
<slot />
</button>
</template>

@ -1,16 +1,23 @@
<template>
<App>
<Header />
<button @click="userSignOut()">Sign Out</button>
<button @click="create()">
<div class="flex w-full max-w-3xl justify-end gap-4">
<ElementButton
@click="userSignOut()"
class="hover:bg-red-500 hover:text-black">
<Icon name="fa6-solid:arrow-right-from-bracket" />
</ElementButton>
<ElementButton
class="hover:bg-blue-500 hover:text-black"
@click="create()">
<Icon
v-if="isCreating"
name="loading" />
<Icon
v-if="!isCreating"
name="fa6-solid:square-plus" />
</button>
</ElementButton>
</div>
<div
class="mx-12 flex h-full w-full max-w-3xl flex-row justify-center gap-4">

Loading…
Cancel
Save