2021-07-17 16:50:30 +00:00
|
|
|
<template>
|
2021-07-21 20:53:46 +00:00
|
|
|
<div>
|
|
|
|
<h1 class="font-semibold text-2xl text-center">Assembly Apps</h1>
|
2021-07-17 21:44:21 +00:00
|
|
|
|
2021-07-21 20:53:46 +00:00
|
|
|
<div class="mt-10 grid w-full grid-cols-1 gap-4 sm:grid-cols-3 xl:gap-6">
|
|
|
|
<nuxt-link
|
|
|
|
v-for="app in apps"
|
|
|
|
:key="app.id"
|
|
|
|
:to="app.url"
|
|
|
|
class="relative flex flex-col items-center px-4 py-12 text-center rounded-[6px] cursor-pointer bg-white hover:bg-gray-50 shadow"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
style="background: radial-gradient(42.15% 42.15% at 48.94% 48.94%, #D6DAE0 75.67%, #F0F3F9 100%), #C4C4C4;"
|
|
|
|
class="w-20 h-20 rounded-full flex items-center justify-center"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
style="background: linear-gradient(0deg, #FFFFFF, #FFFFFF), #C4C4C4"
|
|
|
|
class="w-16 h-16 rounded-full flex items-center justify-center"
|
|
|
|
>
|
|
|
|
<component :is="app.icon" class="w-8 h-8" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-17 21:44:21 +00:00
|
|
|
|
2021-07-21 20:53:46 +00:00
|
|
|
<h2 class="mt-4 font-semibold text-19">{{ app.name }}</h2>
|
|
|
|
<p class="mt-2 text-14 font-regular text-grey-dark opacity-90">
|
|
|
|
{{ app.description }}
|
|
|
|
</p>
|
|
|
|
</nuxt-link>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-17 16:50:30 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2021-07-21 20:53:46 +00:00
|
|
|
import { computed, defineComponent } from "@nuxtjs/composition-api";
|
|
|
|
import { useNetwork } from "~/composables/useNetwork";
|
|
|
|
import AaveIcon from "~/assets/icons/colored/aave.svg?inline";
|
2021-08-07 23:22:42 +00:00
|
|
|
import CompoundIcon from "~/assets/icons/colored/compound.svg?inline";
|
|
|
|
import MakerIcon from "~/assets/icons/colored/maker.svg?inline";
|
2021-07-17 16:50:30 +00:00
|
|
|
|
2021-07-21 20:53:46 +00:00
|
|
|
const appsPerNetwork = {
|
|
|
|
mainnet: [
|
|
|
|
{
|
|
|
|
id: "aave-v2",
|
|
|
|
icon: AaveIcon,
|
|
|
|
name: "Aave v2",
|
|
|
|
url: "/mainnet/aave-v2",
|
|
|
|
description: "Lend and borrow straight from your Gnosis Safe"
|
2021-08-06 22:44:51 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
id: "compound",
|
2021-08-07 23:22:42 +00:00
|
|
|
icon: CompoundIcon,
|
2021-08-06 22:44:51 +00:00
|
|
|
name: "Compound",
|
|
|
|
url: "/mainnet/compound",
|
|
|
|
description: "Lend and borrow straight from your Gnosis Safe"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: "maker",
|
2021-08-07 23:22:42 +00:00
|
|
|
icon: MakerIcon,
|
2021-08-08 11:34:44 +00:00
|
|
|
name: "MakerDAO",
|
2021-08-06 22:44:51 +00:00
|
|
|
url: "/mainnet/maker",
|
|
|
|
description: "Lend and borrow straight from your Gnosis Safe"
|
2021-07-21 20:53:46 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
polygon: [
|
|
|
|
{
|
|
|
|
id: "aave-v2",
|
|
|
|
icon: AaveIcon,
|
|
|
|
name: "Aave v2",
|
|
|
|
url: "/polygon/aave-v2",
|
|
|
|
description: "Lend and borrow straight from your Gnosis Safe"
|
2021-08-06 22:44:51 +00:00
|
|
|
}
|
2021-07-21 20:53:46 +00:00
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
setup() {
|
|
|
|
const { activeNetworkId } = useNetwork();
|
|
|
|
|
|
|
|
const apps = computed(() => appsPerNetwork[activeNetworkId.value]);
|
|
|
|
|
|
|
|
return {
|
|
|
|
apps
|
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|
2021-07-17 16:50:30 +00:00
|
|
|
</script>
|