The smallest change: a clear upgrade benefit in the current position.
ProSpacePrompt.vue · compact wrapper upsellText.vue, Icon.vue and useUpsellStore<script setup>
import { computed } from 'vue'
import Text from '@/components/Text.vue'
import Icon from '@/components/Icon.vue'
import { useUpsellStore } from '@/store/upsell'
const props = defineProps({
placement: { type: String, default: 'sidebar', validator: v => ['sidebar', 'header'].includes(v) },
variant: { type: String, default: 'quiet', validator: v => ['quiet', 'tint', 'split', 'dark'].includes(v) }
})
const upsell = useUpsellStore()
const copy = computed(() => ({
sidebar: {
quiet: { action: 'Go Pro to remove ads' },
tint: { action: 'Go Pro. Skip the ads.' },
split: { message: 'Want this gone?', action: 'Go Pro' },
dark: { message: 'Just emoji. No ads.', action: 'Go Pro' }
},
header: {
quiet: { action: 'Go Pro to remove ads' },
tint: { action: 'Go Pro for an ad-free EmojiCopy' },
split: { message: 'Your emoji, without the ads.', action: 'Go Pro' },
dark: { message: 'More space for your emoji.', action: 'Go Pro. Remove ads.' }
}
}[props.placement][props.variant]))
</script>
<template>
<div class="pro-space-prompt" :data-variant="props.variant">
<Text v-if="copy.message" class="pro-space-prompt__message"
type="body/s-med" :color="props.variant === 'dark' ? 'text-primary' : 'text-secondary'"
:text="copy.message" />
<button class="pro-space-prompt__action" type="button"
aria-label="Go Pro to remove ads" aria-haspopup="dialog"
@click="upsell.updateShowPro(true)">
<Icon class="pro-space-prompt__crown" name="crown-simple" color="var(--c-icon-yellow)" aria-hidden="true" />
<Text type="body/s-heavy" color="text-primary" :text="copy.action" />
</button>
</div>
</template>
<style scoped>
/* ProSpacePrompt: proposal for the 30px strip above existing web slots.
Inherits light/dark color-scheme through semantic surface and text tokens.
Uses the existing crown icon and Text tokens; all header surfaces are neutral. Deliberately named without ad-filter vocabulary. */
.pro-space-prompt {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--sp-2);
width: 100%;
min-height: 30px;
box-sizing: border-box;
padding: 0 var(--sp-2);
border-radius: var(--r-xs) var(--r-xs) 0 0;
background: var(--c-surface-secondary);
}
.pro-space-prompt__action {
appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--sp-1);
min-height: 24px;
flex-shrink: 0;
max-width: 100%;
white-space: normal;
overflow-wrap: anywhere;
padding: 0 var(--sp-2);
border: 0;
border-radius: var(--r-pill);
background: transparent;
color: var(--c-text-primary);
cursor: pointer;
}
.pro-space-prompt__crown {
display: inline-block;
width: 16px;
height: 16px;
font-size: 16px;
flex: none;
color: var(--c-icon-yellow);
}
.pro-space-prompt__action:hover { text-decoration: underline; }
.pro-space-prompt__action:focus-visible {
outline: 2px solid var(--c-text-primary);
outline-offset: -2px;
}
.pro-space-prompt[data-variant="quiet"] { justify-content: flex-end; }
.pro-space-prompt[data-variant="quiet"] .pro-space-prompt__action {
min-height: 30px;
padding: 0;
}
.pro-space-prompt[data-variant="tint"] {
padding: 0;
}
.pro-space-prompt[data-variant="tint"] .pro-space-prompt__action {
width: 100%;
min-height: 30px;
border-radius: inherit;
}
.pro-space-prompt[data-variant="dark"] {
background: var(--c-surface-tertiary);
}
/* Keep text readable when a user increases font size. The parent shell
must use min-height:120px, not height:120px, for the header slot. */
.pro-space-prompt__message { min-width: 0; }
</style>// In the existing VideoAd.vue <script setup> import ProSpacePrompt from '@/components/Upsell/ProSpacePrompt.vue' <!-- Replace only the existing "Remove this" prompt element. --> <ProSpacePrompt placement="sidebar" variant="quiet" /> <!-- Keep the existing player and mute control immediately after it. -->
<div class="space-preview space-preview--sidebar"><div class="pro-space-prompt" data-variant="quiet"><button class="pro-space-prompt__action" type="button" aria-label="Go Pro to remove ads" aria-haspopup="dialog" data-pro-preview><svg class="pro-space-prompt__crown" viewBox="0 0 256 256" fill="currentColor" aria-hidden="true" focusable="false"><path d="M239.75,90.81c0,.11,0,.21-.07.32L217,195a16,16,0,0,1-15.72,13H54.71A16,16,0,0,1,39,195L16.32,91.13c0-.11-.05-.21-.07-.32A16,16,0,0,1,44.6,77.39l33.58,26.87,37.11-55.66a15.94,15.94,0,0,1,25.42,0l37.11,55.66L211.4,77.39a16,16,0,0,1,28.35,13.42Z"/></svg><span class="text f:body/s-heavy c:text-primary/txt ">Go Pro to remove ads</span></button></div><div class="space-preview__video"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M9 6v12l9-6-9-6Z" fill="currentColor"/></svg><span class="text f:body/s-med c:text-secondary/txt ">Advertisement</span><span class="text f:body/s-med c:text-secondary/txt ">224 × 126</span></div><div class="space-preview__controls"><span class="text f:body/s-reg c:text-secondary/txt ">Video controls</span></div></div>
/* ProSpacePrompt: proposal for the 30px strip above existing web slots.
Inherits light/dark color-scheme through semantic surface and text tokens.
Uses the existing crown icon and Text tokens; all header surfaces are neutral. Deliberately named without ad-filter vocabulary. */
.pro-space-prompt {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--sp-2);
width: 100%;
min-height: 30px;
box-sizing: border-box;
padding: 0 var(--sp-2);
border-radius: var(--r-xs) var(--r-xs) 0 0;
background: var(--c-surface-secondary);
}
.pro-space-prompt__action {
appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--sp-1);
min-height: 24px;
flex-shrink: 0;
max-width: 100%;
white-space: normal;
overflow-wrap: anywhere;
padding: 0 var(--sp-2);
border: 0;
border-radius: var(--r-pill);
background: transparent;
color: var(--c-text-primary);
cursor: pointer;
}
.pro-space-prompt__crown {
display: inline-block;
width: 16px;
height: 16px;
font-size: 16px;
flex: none;
color: var(--c-icon-yellow);
}
.pro-space-prompt__action:hover { text-decoration: underline; }
.pro-space-prompt__action:focus-visible {
outline: 2px solid var(--c-text-primary);
outline-offset: -2px;
}
.pro-space-prompt[data-variant="quiet"] { justify-content: flex-end; }
.pro-space-prompt[data-variant="quiet"] .pro-space-prompt__action {
min-height: 30px;
padding: 0;
}
.pro-space-prompt[data-variant="tint"] {
padding: 0;
}
.pro-space-prompt[data-variant="tint"] .pro-space-prompt__action {
width: 100%;
min-height: 30px;
border-radius: inherit;
}
.pro-space-prompt[data-variant="dark"] {
background: var(--c-surface-tertiary);
}
/* Keep text readable when a user increases font size. The parent shell
must use min-height:120px, not height:120px, for the header slot. */
.pro-space-prompt__message { min-width: 0; }
.space-preview { flex:none; overflow:hidden; border-radius:var(--r-xs); background:var(--c-surface-tertiary); }
.space-preview--sidebar { width:224px; }
.space-preview--header { width:982px; min-height:120px; margin:0 auto; }
.space-preview__video { width:224px; height:126px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:var(--sp-1); background:var(--c-surface-tertiary); color:var(--c-text-secondary); }
.space-preview__controls { height:22px; display:flex; justify-content:flex-end; align-items:center; padding:0 var(--sp-2); background:var(--c-surface-cta); }
.space-preview__well { height:90px; display:flex; justify-content:center; }
.space-preview__creative { width:728px; height:90px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:var(--sp-1); border-inline:1px solid var(--c-border-secondary); background:var(--c-surface-cta); }