Fix ads showing with Modrinth PLus (#2187)

This commit is contained in:
Geometrically
2024-08-21 00:30:23 -07:00
committed by GitHub
parent 95dc6c66d9
commit 9ed1dd714b
10 changed files with 36 additions and 15 deletions

View File

@@ -1,8 +1,5 @@
<template>
<div
v-if="!auth.user || isPermission(auth.user.badges, 1 << 0)"
class="ad-parent relative mb-3 flex w-full justify-center rounded-2xl bg-bg-raised"
>
<div class="ad-parent relative mb-3 flex w-full justify-center rounded-2xl bg-bg-raised">
<div class="flex max-h-[250px] min-h-[250px] min-w-[300px] max-w-[300px] flex-col gap-4 p-6">
<p class="m-0 text-2xl font-bold text-contrast">90% of ad revenue goes to creators</p>
<nuxt-link to="/plus" class="mt-auto items-center gap-1 text-purple hover:underline">
@@ -43,8 +40,6 @@ useHead({
],
});
const auth = await useAuth();
onMounted(() => {
window.tude = window.tude || { cmd: [] };
tude.cmd.push(function () {