Skip to content

Commit

Permalink
feat: dropcamp popup (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasmpw authored Mar 18, 2024
1 parent a7c3ac3 commit b40817e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions components/DropCampModal.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<script setup>
import { PrimaryButton, CloseIcon } from '@/components/Ui';
import { useLocalStorage } from '@vueuse/core';
const SHOW_DROPCAMP_MODAL = 'show-dropcamp-live-modal';
const isOpen = useLocalStorage(SHOW_DROPCAMP_MODAL, true);
const close = () => {
isOpen.value = false;
};
</script>

<template>
<div class="fixed right-0 bottom-0 mx-4 md:mx-8 mb-8 z-20" v-if="isOpen">
<div class="select-none bg-white dark:bg-black-warm p-4 rounded-lg shadow space-y-4 relative">
<img src="/images/dropcamp.png" class="rounded-lg" />
<div class="space-y-1">
<h1 class="text-2xl">Drop Camp is here!</h1>
<p class="label text-gray-700">Join the queue and be one of the first to get in!.</p>
</div>
<PrimaryButton class="w-full" href="https://connect.archway.io/dropcamp"> Go Camping ↗ </PrimaryButton>
<div class="absolute -top-16 right-0 p-2 bg-black dark:bg-white rounded-full cursor-pointer" @click="close">
<CloseIcon class="w-4 h-4 text-white dark:text-black" aria-hidden="true" />
</div>
</div>
</div>
</template>
1 change: 1 addition & 0 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
<div class="sm:hidden fixed inset-x-0 bottom-0 z-50" v-if="displayTOC">
<PageMobileTOC @toggle-mobile-top="handleToggleMobileToc" :title="currentTitle" />
</div>
<DropCampModal />
</div>
</template>

Expand Down
1 change: 1 addition & 0 deletions layouts/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
<slot />
</main>
<Footer />
<DropCampModal />
</div>
</template>
Binary file added public/images/dropcamp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b40817e

Please sign in to comment.