@@ -19,7 +19,7 @@ import {
1919} from ' @/composables/useDetailSlideOver'
2020import { provideConfirm } from ' @/composables/useConfirm'
2121import { useEdition } from ' @/composables/useEdition'
22- import { useTimedDismissal } from ' @/composables/useTimedDismissal '
22+ import { useProBanner } from ' @/composables/useProBanner '
2323import {
2424 Activity ,
2525 ArrowRight ,
@@ -112,12 +112,7 @@ const licenseLabel = computed(() => {
112112 }
113113})
114114
115- const { visible : supportBannerVisible, dismiss : dismissSupportBanner } = useTimedDismissal ({
116- storageKey: ' pb:banner:support-prompt' ,
117- cooldownMs: 30 * 24 * 60 * 60 * 1000 ,
118- })
119-
120- const showSupportBanner = computed (() => ! isEnterprise .value && supportBannerVisible .value )
115+ const proBanner = useProBanner ()
121116
122117const mobileMenuOpen = ref (false )
123118
@@ -362,25 +357,45 @@ const mainNav = computed(() =>
362357 </RouterLink >
363358 </template >
364359 </AlertBanner >
365- <!-- Support the project banner (CE only) -->
360+ <!-- Pro tier banner (CE only, segmented by container count ) -->
366361 <AlertBanner
367- v-if =" showSupportBanner "
362+ v-if =" proBanner . visible . value "
368363 severity="info"
369- label="SUPPORT "
364+ label="PRO "
370365 dismissible
371366 class="shrink-0"
372- @dismiss =" dismissSupportBanner "
367+ @dismiss =" proBanner . dismiss () "
373368 >
374- Support Maintenant's development by purchasing a Pro license — it's what keeps this project
375- sustainable.
369+ <template v-if =" proBanner .tier .value === 1 " >
370+ Running Maintenant in production? Pro adds Slack/Teams/Email alerts, CVE scanning and
371+ incident management — 29€/mo.
372+ </template >
373+ <template v-else-if =" proBanner .tier .value === 2 " >
374+ You're monitoring {{ proBanner.count.value }} containers across production. Pro adds the
375+ alerting layer your scale needs — Slack, escalation, incidents, custom public status page,
376+ 29€/mo.
377+ </template >
378+ <template v-else-if =" proBanner .tier .value === 3 " >
379+ Running 50+ containers in production. Pro adds incident management, alert escalation and
380+ Slack routing. Want to discuss your setup with the founder?
381+ </template >
376382 <template #action >
377- <RouterLink
378- to="/pro-edition"
379- class="license-action license-action--info inline-flex items-center gap-1 rounded border px-2 py-0.5 text-[11px] font-semibold transition-colors"
380- >
381- Get Pro
382- <ArrowRight :size =" 12 " />
383- </RouterLink >
383+ <template v-if =" proBanner .tier .value === 1 || proBanner .tier .value === 2 " >
384+ <RouterLink
385+ to="/pro-edition"
386+ class="license-action license-action--info inline-flex items-center gap-1 rounded border px-2 py-0.5 text-[11px] font-semibold transition-colors"
387+ >
388+ Get Pro →
389+ </RouterLink >
390+ </template >
391+ <template v-else-if =" proBanner .tier .value === 3 " >
392+ <a
393+ href =" mailto:benjamin@kolapsis.com?subject=Maintenant%20-%2050%2B%20containers%20setup"
394+ class =" license-action license-action--info inline-flex items-center gap-1 rounded border px-2 py-0.5 text-[11px] font-semibold transition-colors"
395+ >
396+ Reply →
397+ </a >
398+ </template >
384399 </template >
385400 </AlertBanner >
386401 <AppHeader />
0 commit comments