|
| 1 | +<template> |
| 2 | + <div class="w-[480px] p-6"> |
| 3 | + <!-- Header with Logo --> |
| 4 | + <div class="mb-6"> |
| 5 | + <div class="mb-2 flex items-center gap-3"> |
| 6 | + <img |
| 7 | + src="/assets/images/comfy-cloud-logo.svg" |
| 8 | + alt="Comfy Cloud" |
| 9 | + class="h-8 w-8 shrink-0" |
| 10 | + /> |
| 11 | + <h1 class="text-2xl font-semibold"> |
| 12 | + {{ t('cloudNotification.title') }} |
| 13 | + </h1> |
| 14 | + </div> |
| 15 | + <p class="text-base text-muted"> |
| 16 | + {{ t('cloudNotification.message') }} |
| 17 | + </p> |
| 18 | + </div> |
| 19 | + |
| 20 | + <!-- Features --> |
| 21 | + <div class="mb-6 space-y-4"> |
| 22 | + <div class="flex gap-3"> |
| 23 | + <i class="pi pi-check-circle mt-0.5 shrink-0 text-xl text-blue-500"></i> |
| 24 | + <div class="flex-1"> |
| 25 | + <div class="mb-1 font-medium"> |
| 26 | + {{ t('cloudNotification.feature1Title') }} |
| 27 | + </div> |
| 28 | + <div class="text-sm text-muted"> |
| 29 | + {{ t('cloudNotification.feature1') }} |
| 30 | + </div> |
| 31 | + </div> |
| 32 | + </div> |
| 33 | + |
| 34 | + <div class="flex gap-3"> |
| 35 | + <i class="pi pi-server mt-0.5 shrink-0 text-xl text-blue-500"></i> |
| 36 | + <div class="flex-1"> |
| 37 | + <div class="mb-1 font-medium"> |
| 38 | + {{ t('cloudNotification.feature2Title') }} |
| 39 | + </div> |
| 40 | + <div class="text-sm text-muted"> |
| 41 | + {{ t('cloudNotification.feature2') }} |
| 42 | + </div> |
| 43 | + </div> |
| 44 | + </div> |
| 45 | + |
| 46 | + <div class="flex gap-3"> |
| 47 | + <i class="pi pi-tag mt-0.5 shrink-0 text-xl text-blue-500"></i> |
| 48 | + <div class="flex-1"> |
| 49 | + <div class="mb-1 font-medium"> |
| 50 | + {{ t('cloudNotification.feature3Title') }} |
| 51 | + </div> |
| 52 | + <div class="text-sm text-muted"> |
| 53 | + {{ t('cloudNotification.feature3') }} |
| 54 | + </div> |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + </div> |
| 58 | + |
| 59 | + <!-- Footer Note --> |
| 60 | + <div |
| 61 | + class="mb-6 rounded border-l-2 border-blue-500 bg-blue-500/5 py-2.5 pl-3 pr-4" |
| 62 | + > |
| 63 | + <p class="whitespace-pre-line text-sm text-muted"> |
| 64 | + {{ t('cloudNotification.feature4') }} |
| 65 | + </p> |
| 66 | + </div> |
| 67 | + |
| 68 | + <!-- Actions --> |
| 69 | + <div class="flex gap-3"> |
| 70 | + <Button |
| 71 | + :label="t('cloudNotification.continueLocally')" |
| 72 | + severity="secondary" |
| 73 | + outlined |
| 74 | + class="flex-1" |
| 75 | + @click="onDismiss" |
| 76 | + /> |
| 77 | + <Button |
| 78 | + :label="t('cloudNotification.exploreCloud')" |
| 79 | + icon="pi pi-arrow-right" |
| 80 | + icon-pos="right" |
| 81 | + class="flex-1" |
| 82 | + @click="onExplore" |
| 83 | + /> |
| 84 | + </div> |
| 85 | + </div> |
| 86 | +</template> |
| 87 | + |
| 88 | +<script setup lang="ts"> |
| 89 | +import Button from 'primevue/button' |
| 90 | +import { useI18n } from 'vue-i18n' |
| 91 | +
|
| 92 | +import { useDialogStore } from '@/stores/dialogStore' |
| 93 | +
|
| 94 | +const { t } = useI18n() |
| 95 | +
|
| 96 | +const onDismiss = () => { |
| 97 | + useDialogStore().closeDialog() |
| 98 | +} |
| 99 | +
|
| 100 | +const onExplore = () => { |
| 101 | + window.open('https://www.comfy.org/cloud', '_blank') |
| 102 | + useDialogStore().closeDialog() |
| 103 | +} |
| 104 | +</script> |
0 commit comments