fix: web component modals

This commit is contained in:
Zack Spear
2023-06-06 18:41:19 -07:00
committed by Zack Spear
parent 17ca9adc79
commit ca8c98f7e2
18 changed files with 338 additions and 172 deletions
+10 -6
View File
@@ -2,19 +2,23 @@
import { storeToRefs } from 'pinia';
import 'tailwindcss/tailwind.css';
import '~/assets/main.css';
import { useCallbackStore } from '~/store/callback';
const callbackStore = useCallbackStore();
const { callbackFeedbackVisible, decryptedData } = storeToRefs(callbackStore);
onBeforeMount(() => {
callbackStore.watcher();
export interface Props {
open?: boolean;
}
withDefaults(defineProps<Props>(), {
open: false,
});
const callbackStore = useCallbackStore();
const { decryptedData } = storeToRefs(callbackStore);
</script>
<template>
<Modal
:open="callbackFeedbackVisible"
:open="open"
@close="callbackStore.hide()"
max-width="max-w-800px"
>
+10 -4
View File
@@ -3,15 +3,20 @@
* @todo future idea turn this into a carousel. each feature could have a short video if we ever them
*/
import { Switch, SwitchGroup, SwitchLabel } from '@headlessui/vue';
import { storeToRefs } from 'pinia';
import { usePromoStore } from '~/store/promo';
import type { UserProfilePromoFeature } from '~/types/userProfile';
import 'tailwindcss/tailwind.css';
import '~/assets/main.css';
export interface Props {
open?: boolean;
}
withDefaults(defineProps<Props>(), {
open: false,
});
const promoStore = usePromoStore();
const { promoVisible } = storeToRefs(promoStore);
const features = ref<UserProfilePromoFeature[]>([
{
@@ -58,8 +63,9 @@ const installButtonClasses = 'text-white text-14px text-center w-full flex flex-
<template>
<Modal
:open="promoVisible"
:open="open"
@close="promoStore.promoHide()"
:show-close-x="true"
max-width="max-w-800px"
>
<div class="text-center relative w-full p-24px">