@mundogamernetwork/shared-ui 1.17.15 → 1.17.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,6 +30,12 @@ const props = defineProps<{
|
|
|
30
30
|
/** Route to the campaign for a visitor who is already signed in. */
|
|
31
31
|
campaignPath: string;
|
|
32
32
|
signedIn?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Hide the built-in join/open button. A page that records the invitee's
|
|
35
|
+
* answer itself (accept / decline) passes this so there is one decision
|
|
36
|
+
* point instead of a button that never records anything next to the real ones.
|
|
37
|
+
*/
|
|
38
|
+
hideCta?: boolean;
|
|
33
39
|
}>();
|
|
34
40
|
|
|
35
41
|
const { t } = useI18n();
|
|
@@ -106,12 +112,14 @@ onMounted(async () => {
|
|
|
106
112
|
</div>
|
|
107
113
|
|
|
108
114
|
<!-- Someone already signed in has no reason to see a signup CTA. -->
|
|
109
|
-
<
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
+
<template v-if="!hideCta">
|
|
116
|
+
<NuxtLink v-if="signedIn" :to="campaignPath" class="pil__cta">
|
|
117
|
+
{{ t('playtest_invite.cta_open') }}
|
|
118
|
+
</NuxtLink>
|
|
119
|
+
<a v-else :href="registerUrl" class="pil__cta">
|
|
120
|
+
{{ t('playtest_invite.cta_join') }}
|
|
121
|
+
</a>
|
|
122
|
+
</template>
|
|
115
123
|
|
|
116
124
|
<!-- Stated plainly rather than discovered at the end of a signup:
|
|
117
125
|
taking part needs an account because the reward is paid into a
|
|
@@ -133,6 +141,9 @@ onMounted(async () => {
|
|
|
133
141
|
|
|
134
142
|
<style scoped lang="scss">
|
|
135
143
|
.pil {
|
|
144
|
+
// Set explicitly: it used to inherit whatever the host page had, which in the dark
|
|
145
|
+
// theme left the body copy dark grey on near-black.
|
|
146
|
+
color: var(--text-primary, #fff);
|
|
136
147
|
margin: 0 auto;
|
|
137
148
|
max-width: 640px;
|
|
138
149
|
padding: 40px 20px 64px;
|