CMP Update Hotfixes (#729)

* Remove WIP for getting paid

* Fix beta badge border

* Update money formatting

* Add required "not affiliated with Mojang" notice

* Replace search video on home page
This commit is contained in:
Prospector
2022-11-15 11:41:38 -08:00
committed by GitHub
parent e86aa6b541
commit ecced27853
7 changed files with 62 additions and 40 deletions

View File

@@ -49,8 +49,8 @@
</div>
<div class="metric">
<div class="label">Total revenue</div>
<div class="value">${{ $formatNumber(payouts.all_time) }}</div>
<span>${{ $formatNumber(payouts.last_month) }} this month</span>
<div class="value">{{ $formatMoney(payouts.all_time) }}</div>
<span>{{ $formatMoney(payouts.last_month) }} this month</span>
<!-- <NuxtLink class="goto-link" to="/dashboard/analytics"-->
<!-- >View breakdown-->
<!-- <ChevronRightIcon-->
@@ -61,7 +61,7 @@
<div class="metric">
<div class="label">Current balance</div>
<div class="value">
${{ $formatNumber($auth.user.payout_data.balance) }}
{{ $formatMoney($auth.user.payout_data.balance) }}
</div>
<NuxtLink
v-if="$auth.user.payout_data.balance >= minWithdraw"

View File

@@ -14,7 +14,7 @@
<div v-if="$auth.user.payout_data.balance >= minWithdraw">
<p>
You have
<strong>${{ $auth.user.payout_data.balance }}</strong>
<strong>{{ $formatMoney($auth.user.payout_data.balance) }}</strong>
available to withdraw.
<span v-if="!enrolled"
>Enroll in the Creator Monetization Program to withdraw your
@@ -37,13 +37,13 @@
</div>
<p v-else-if="$auth.user.payout_data.balance > 0">
You have made
<strong>${{ $auth.user.payout_data.balance }}</strong
<strong>{{ $formatMoney($auth.user.payout_data.balance) }}</strong
>, however you have not yet met the minimum of ${{ minWithdraw }} to
withdraw.
</p>
<p v-else>
You have made
<strong>${{ $auth.user.payout_data.balance }}</strong
<strong>{{ $formatMoney($auth.user.payout_data.balance) }}</strong
>, which is under the minimum of ${{ minWithdraw }} to withdraw.
</p>
<div v-if="!enrolled">

View File

@@ -13,8 +13,8 @@
<h3>
Find enjoyable, quality content through our
<a href="https://github.com/modrinth" target="_blank">open-source</a>
modding platform built for the community. Create stuff, get
paid<sup>WIP</sup>, and deploy your project with our
modding platform built for the community. Create stuff, get paid, and
deploy your project with our
<a href="https://docs.modrinth.com" target="_blank"
>fully documented</a
>
@@ -42,21 +42,20 @@
<div class="points card">
<div class="point">
<div class="image">
<video
<img
v-if="$colorMode.value === 'light'"
autoplay
loop
muted
src="https://cdn.modrinth.com/homepage/search.mp4"
playsinline
src="https://cdn.modrinth.com/homepage/search-light.webp"
alt="Screenshot of Modrinth's 'search mods' page"
/>
<video
<img
v-else-if="$colorMode.value === 'oled'"
src="https://cdn.modrinth.com/homepage/search-oled.webp"
alt="Screenshot of Modrinth's 'search mods' page"
/>
<img
v-else
autoplay
loop
muted
src="https://cdn.modrinth.com/homepage/search-dark.mp4"
playsinline
src="https://cdn.modrinth.com/homepage/search-dark.webp"
alt="Screenshot of Modrinth's 'search mods' page"
/>
</div>
<div class="text-container">
@@ -387,9 +386,9 @@ export default {
height: unset;
}
img,
video {
img {
border-radius: var(--size-rounded-lg);
box-shadow: var(--shadow-floating);
width: 40rem;
}
@@ -401,6 +400,7 @@ export default {
font-family: monospace;
font-size: 80%;
line-height: 1.5rem;
box-shadow: var(--shadow-floating);
.line-nums {
display: flex;