Skip to content

Commit

Permalink
Merge branch 'master' into fix-offchain-pending-proposal-vp
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e authored Dec 11, 2024
2 parents e3e484f + de81463 commit ab7820b
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
59 changes: 59 additions & 0 deletions apps/ui/src/components/FlashMessageWelcome.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<script setup lang="ts">
import { lsGet, lsSet } from '@/helpers/utils';
const KEY = 'showV2Welcome';
const open = ref(false);
function handleClose() {
open.value = false;
lsSet(KEY, false);
}
onMounted(async () => {
open.value = lsGet(KEY) ?? true;
});
</script>

<template>
<div
v-if="open"
class="fixed bottom-0 right-0 sm:mx-4 sm:mb-4 sm:rounded-lg bg-skin-link text-skin-bg z-[99] blocks-x !bg-left-top sm:max-w-[320px]"
>
<UiButton
class="!text-skin-bg !bg-transparent !border-none absolute top-1 right-1 !px-0 w-[40px] !h-[40px]"
@click="handleClose"
>
<IH-x class="inline-block" />
</UiButton>
<div class="bg-skin-link/90 sm:rounded-lg p-4">
<div class="flex space-x-3">
<div class="text-end">
<img src="@/assets/snapshot.svg" alt="Snapshot" class="w-[36px]" />
</div>
<div class="font-bold text-md leading-5">
Welcome to the new
<div class="font-display text-xl">Snapshot</div>
</div>
</div>
<div class="mt-3 mb-4">
Introducing the next evolution of Snapshot, with a brand new interface,
support for onchain voting, proposal executions, and many more
governance enhancements.
</div>
<div class="space-y-2 text-center">
<UiButton
class="w-full"
to="https://snapshot.mirror.xyz/0qnfjmE0SFeUykArdi664oO4qFcZUoZTTOd8m7es_Eo"
>Learn more</UiButton
>
<div class="block text-sm">
<span class="text-skin-bg/70">Or, go back to the </span>
<a href="https://v1.snapshot.box" target="_blank" class="text-skin-bg"
>previous interface</a
>
</div>
</div>
</div>
</div>
</template>
1 change: 1 addition & 0 deletions apps/ui/src/components/Layout/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ router.afterEach(() => {
@add="handleTransactionAccept"
@close="handleTransactionReject"
/>
<FlashMessageWelcome />
</div>
</template>

Expand Down

0 comments on commit ab7820b

Please sign in to comment.