Skip to content

Commit 51a6b8d

Browse files
authored
update server promo (#7893)
* update server promo * prepr
1 parent 3323d28 commit 51a6b8d

3 files changed

Lines changed: 4 additions & 20 deletions

File tree

‎apps/frontend/src/components/ui/AdPlaceholder.vue‎

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
<script setup>
2929
import { AutoLink } from '@modrinth/ui'
3030
31-
const flags = useFeatureFlags()
32-
3331
useHead({
3432
script: [
3533
// {
@@ -60,23 +58,15 @@ useHead({
6058
})
6159
6260
const AD_PRESETS = {
63-
medal: {
64-
light: 'https://cdn.modrinth.com/modrinth-hosting-medal-light.webp',
65-
dark: 'https://cdn.modrinth.com/modrinth-hosting-medal-dark.webp',
66-
description: 'Host your next server with Modrinth Hosting',
67-
link: '/hosting?plan&ref=medal',
68-
},
6961
'modrinth-hosting': {
70-
light: 'https://cdn.modrinth.com/modrinth-hosting-light.webp',
71-
dark: 'https://cdn.modrinth.com/modrinth-hosting-dark.webp',
72-
description: 'Host your next server with Modrinth Hosting',
62+
light: 'https://cdn.modrinth.com/hosting-oct-26-light.webp',
63+
dark: 'https://cdn.modrinth.com/hosting-oct-26-dark.webp',
64+
description: 'Get your next server on Modrinth.',
7365
link: '/hosting',
7466
},
7567
}
7668
77-
const currentAd = computed(() =>
78-
flags.value.enableMedalPromotion ? AD_PRESETS.medal : AD_PRESETS['modrinth-hosting'],
79-
)
69+
const currentAd = computed(() => AD_PRESETS['modrinth-hosting'])
8070
8171
onMounted(() => {
8272
window.tude = window.tude || { cmd: [] }

‎apps/frontend/src/composables/featureFlags.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export const DEFAULT_FEATURE_FLAGS = validateValues({
2929

3030
// Feature toggles
3131
projectTypesPrimaryNav: false,
32-
enableMedalPromotion: true,
3332
hidePlusPromoInUserMenu: false,
3433
projectBackground: false,
3534
searchBackground: false,

‎apps/frontend/src/pages/hosting/index.vue‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -542,9 +542,6 @@
542542
</template>
543543
<span v-else></span>
544544
</div>
545-
546-
<MedalPlanPromotion v-if="flags.enableMedalPromotion" />
547-
548545
<ul class="m-0 flex w-full grid-cols-3 flex-col gap-8 p-0 lg:grid">
549546
<ServerPlanSelector
550547
:capacity="capacityStatuses?.small?.available"
@@ -654,7 +651,6 @@ import { monthsInInterval } from '@modrinth/ui/src/utils/billing.ts'
654651
import { useQuery } from '@tanstack/vue-query'
655652
import { computed } from 'vue'
656653
657-
import MedalPlanPromotion from '~/components/ui/servers/marketing/MedalPlanPromotion.vue'
658654
import ServerPlanSelector from '~/components/ui/servers/marketing/ServerPlanSelector.vue'
659655
import { products } from '~/generated/state.json'
660656
@@ -682,7 +678,6 @@ if (affiliateCode.value) {
682678
const { addNotification } = injectNotificationManager()
683679
const { formatMessage } = useVIntl()
684680
const formatPrice = useFormatPrice()
685-
const flags = useFeatureFlags()
686681
687682
const messages = defineMessages({
688683
errorFetchingPaymentDataTitle: {

0 commit comments

Comments
 (0)