-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Banner for dojo migration, clean past banners
- Loading branch information
Showing
5 changed files
with
30 additions
and
64 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script setup lang="ts"> | ||
import { ref } from 'vue'; | ||
const showDojoBanner = ref(false); | ||
if (window.localStorage.getItem('showDojoBanner') !== 'false') { | ||
window.localStorage.setItem('showDojoBanner', 'true'); | ||
showDojoBanner.value = true; | ||
} | ||
const hideDojoBanner = () => { | ||
showDojoBanner.value = false; | ||
window.localStorage.setItem('showDojoBanner', 'false'); | ||
} | ||
</script> | ||
|
||
<template> | ||
<div | ||
v-if="showDojoBanner" | ||
class="bg-primary font-medium text-text-on-primary select-none flex items-center"> | ||
<p class="hidden sm:block flex-1 text-center text-sm py-2">We've migrated to Dojo ! Read the announcement <a href="https://twitter.com/briqNFT/status/1729777534433202677" class="underline">here</a> !</p> | ||
<p class="sm:hidden block flex-1 text-center text-sm py-2">We've migrated to Dojo !<br>Read the announcement <a href="https://twitter.com/briqNFT/status/1729777534433202677" class="underline">here</a> !</p> | ||
<Btn no-style class="text-text-on-primary text-lg py-0 px-8" @click.stop.prevent="hideDojoBanner()"><i class="far fa-times"/></Btn> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters