assembly/layouts/default.vue

64 lines
1.7 KiB
Vue
Raw Normal View History

2021-07-17 21:44:21 +00:00
<template>
<div class="min-h-screen font-sans antialiased text-primary-black">
<Navbar />
<div class="max-w-6xl mx-auto py-8">
<div class="space-x-4">
<button
2021-07-17 21:52:42 +00:00
class="font-semibold text-primary-gray hover:text-primary-blue-dark h-[44px] w-[216px] rounded-[6px] p-5 inline-flex items-center justify-center shadow-lg"
2021-07-17 21:44:21 +00:00
>
2021-07-17 21:52:42 +00:00
<MakerDAOIcon class="mr-2 w-8 h-8" />
2021-07-17 21:44:21 +00:00
Maker
</button>
2021-07-17 21:52:42 +00:00
2021-07-17 21:44:21 +00:00
<button
class="font-semibold text-white h-[44px] w-[216px] rounded-[6px] p-5 inline-flex items-center justify-center shadow bg-primary-blue-dark hover:bg-primary-blue-hover "
>
2021-07-17 21:52:42 +00:00
<CompoundIcon class="mr-2 w-8 h-8" />
2021-07-17 21:44:21 +00:00
Compound
</button>
2021-07-17 21:52:42 +00:00
2021-07-17 21:44:21 +00:00
<button
2021-07-17 21:52:42 +00:00
class="font-semibold text-primary-gray hover:text-primary-blue-dark h-[44px] w-[216px] rounded-[6px] p-5 inline-flex items-center justify-center shadow-lg"
2021-07-17 21:44:21 +00:00
>
2021-07-17 21:52:42 +00:00
<AaveIcon class="mr-2 w-8 h-8" />
2021-07-17 21:44:21 +00:00
Aave
</button>
</div>
<div class="border border-b-[#E7E8F1] w-full my-6"></div>
<div class="py-4">
<Nuxt />
</div>
</div>
</div>
</template>
<script>
import { defineComponent } from "@nuxtjs/composition-api";
2021-07-17 21:52:42 +00:00
import MakerDAOIcon from '~/assets/icons/makerdao.svg?inline'
import CompoundIcon from '~/assets/icons/compound.svg?inline'
import AaveIcon from '~/assets/icons/aave.svg?inline'
2021-07-19 19:35:31 +00:00
import { useWeb3 } from '~/composables/useWeb3'
2021-07-17 21:44:21 +00:00
export default defineComponent({
2021-07-17 21:52:42 +00:00
components: {
MakerDAOIcon,
CompoundIcon,
AaveIcon,
2021-07-19 19:35:31 +00:00
},
setup() {
const { active, activate, deactivate } = useWeb3();
return {
active,
activate,
deactivate,
}
2021-07-17 21:52:42 +00:00
}
2021-07-17 21:44:21 +00:00
})
</script>