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:
parent
e86aa6b541
commit
ecced27853
@ -920,7 +920,7 @@ h1 {
|
|||||||
|
|
||||||
.beta-badge {
|
.beta-badge {
|
||||||
font-size: 0.7em;
|
font-size: 0.7em;
|
||||||
padding: 0.25rem 0.5rem;
|
padding: 0.2rem 0.4rem;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border: 2px solid var(--color-text);
|
border: 2px solid var(--color-text);
|
||||||
@ -934,7 +934,7 @@ h1 {
|
|||||||
.beta-badge {
|
.beta-badge {
|
||||||
background-color: var(--color-button-text-active);
|
background-color: var(--color-button-text-active);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
outline: none;
|
border-color: transparent;
|
||||||
color: var(--color-raised-bg);
|
color: var(--color-raised-bg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
<span
|
<span
|
||||||
>You are initiating a transfer of your revenue from Modrinth's Creator
|
>You are initiating a transfer of your revenue from Modrinth's Creator
|
||||||
Monetization Program. How much of your
|
Monetization Program. How much of your
|
||||||
<strong>${{ balance }}</strong> balance would you like to
|
<strong>{{ $formatMoney(balance) }}</strong> balance would you like to
|
||||||
transfer?</span
|
transfer?</span
|
||||||
>
|
>
|
||||||
<div class="confirmation-input">
|
<div class="confirmation-input">
|
||||||
@ -31,10 +31,11 @@
|
|||||||
to cover {{ $formatWallet(wallet) }} processing fees.</template
|
to cover {{ $formatWallet(wallet) }} processing fees.</template
|
||||||
>
|
>
|
||||||
<template v-else
|
<template v-else
|
||||||
>I acknowledge that an estimated {{ calcProcessingFees() }} will be
|
>I acknowledge that an estimated
|
||||||
deducted from the amount I receive to cover
|
{{ $formatMoney(calcProcessingFees()) }} will be deducted from the
|
||||||
{{ $formatWallet(wallet) }} processing fees and that any excess will
|
amount I receive to cover {{ $formatWallet(wallet) }} processing
|
||||||
be returned to my Modrinth balance.</template
|
fees and that any excess will be returned to my Modrinth
|
||||||
|
balance.</template
|
||||||
>
|
>
|
||||||
</Checkbox>
|
</Checkbox>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
@ -52,10 +53,10 @@
|
|||||||
v-else-if="validInput && parseInput() < minWithdraw"
|
v-else-if="validInput && parseInput() < minWithdraw"
|
||||||
class="invalid"
|
class="invalid"
|
||||||
>
|
>
|
||||||
The amount must be at least ${{ minWithdraw }}</span
|
The amount must be at least {{ $formatMoney(minWithdraw) }}</span
|
||||||
>
|
>
|
||||||
<span v-else-if="validInput && parseInput() > balance" class="invalid">
|
<span v-else-if="validInput && parseInput() > balance" class="invalid">
|
||||||
The amount must be no more than ${{ balance }}</span
|
The amount must be no more than {{ $formatMoney(balance) }}</span
|
||||||
>
|
>
|
||||||
<span v-else-if="amount.length > 0" class="invalid">
|
<span v-else-if="amount.length > 0" class="invalid">
|
||||||
{{ amount }} is not a valid amount</span
|
{{ amount }} is not a valid amount</span
|
||||||
@ -200,8 +201,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.button-group {
|
.button-group {
|
||||||
margin-left: auto;
|
margin-top: var(--spacing-card-md);
|
||||||
margin-top: 1.5rem;
|
justify-content: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
strong {
|
strong {
|
||||||
@ -215,7 +216,7 @@ export default {
|
|||||||
|
|
||||||
.confirm-text {
|
.confirm-text {
|
||||||
margin-top: var(--spacing-card-sm);
|
margin-top: var(--spacing-card-sm);
|
||||||
min-height: 6rem;
|
min-height: 7rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: var(--spacing-card-sm);
|
gap: var(--spacing-card-sm);
|
||||||
|
|||||||
@ -376,6 +376,10 @@
|
|||||||
Settings
|
Settings
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="not-affiliated-notice">
|
||||||
|
NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH
|
||||||
|
MOJANG.
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -1024,8 +1028,6 @@ export default {
|
|||||||
|
|
||||||
.beta-badge {
|
.beta-badge {
|
||||||
background-color: var(--color-brand-inverted);
|
background-color: var(--color-brand-inverted);
|
||||||
box-sizing: border-box;
|
|
||||||
outline: none;
|
|
||||||
color: var(--color-text-dark);
|
color: var(--color-text-dark);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1081,9 +1083,10 @@ export default {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template:
|
grid-template:
|
||||||
'logo-info logo-info logo-info' auto
|
'logo-info logo-info logo-info' auto
|
||||||
'links-1 links-2 links-3' auto
|
'links-1 links-2 links-3' auto
|
||||||
'buttons buttons buttons' auto
|
'buttons buttons buttons' auto
|
||||||
|
'notice notice notice' auto
|
||||||
/ 1fr 1fr 1fr;
|
/ 1fr 1fr 1fr;
|
||||||
|
|
||||||
.logo-info {
|
.logo-info {
|
||||||
@ -1139,8 +1142,21 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.not-affiliated-notice {
|
||||||
|
grid-area: notice;
|
||||||
|
font-size: var(--font-size-xs);
|
||||||
|
text-align: center;
|
||||||
|
font-weight: 500;
|
||||||
|
margin-top: var(--spacing-card-md);
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 1024px) {
|
@media screen and (min-width: 1024px) {
|
||||||
display: flex;
|
display: grid;
|
||||||
|
margin-inline: auto;
|
||||||
|
width: fit-content;
|
||||||
|
grid-template:
|
||||||
|
'logo-info links-1 links-2 links-3 buttons' auto
|
||||||
|
'notice notice notice notice notice' auto;
|
||||||
text-align: unset;
|
text-align: unset;
|
||||||
|
|
||||||
.logo-info {
|
.logo-info {
|
||||||
@ -1160,6 +1176,10 @@ export default {
|
|||||||
margin-right: unset;
|
margin-right: unset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.not-affiliated-notice {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,8 +49,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="metric">
|
<div class="metric">
|
||||||
<div class="label">Total revenue</div>
|
<div class="label">Total revenue</div>
|
||||||
<div class="value">${{ $formatNumber(payouts.all_time) }}</div>
|
<div class="value">{{ $formatMoney(payouts.all_time) }}</div>
|
||||||
<span>${{ $formatNumber(payouts.last_month) }} this month</span>
|
<span>{{ $formatMoney(payouts.last_month) }} this month</span>
|
||||||
<!-- <NuxtLink class="goto-link" to="/dashboard/analytics"-->
|
<!-- <NuxtLink class="goto-link" to="/dashboard/analytics"-->
|
||||||
<!-- >View breakdown-->
|
<!-- >View breakdown-->
|
||||||
<!-- <ChevronRightIcon-->
|
<!-- <ChevronRightIcon-->
|
||||||
@ -61,7 +61,7 @@
|
|||||||
<div class="metric">
|
<div class="metric">
|
||||||
<div class="label">Current balance</div>
|
<div class="label">Current balance</div>
|
||||||
<div class="value">
|
<div class="value">
|
||||||
${{ $formatNumber($auth.user.payout_data.balance) }}
|
{{ $formatMoney($auth.user.payout_data.balance) }}
|
||||||
</div>
|
</div>
|
||||||
<NuxtLink
|
<NuxtLink
|
||||||
v-if="$auth.user.payout_data.balance >= minWithdraw"
|
v-if="$auth.user.payout_data.balance >= minWithdraw"
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
<div v-if="$auth.user.payout_data.balance >= minWithdraw">
|
<div v-if="$auth.user.payout_data.balance >= minWithdraw">
|
||||||
<p>
|
<p>
|
||||||
You have
|
You have
|
||||||
<strong>${{ $auth.user.payout_data.balance }}</strong>
|
<strong>{{ $formatMoney($auth.user.payout_data.balance) }}</strong>
|
||||||
available to withdraw.
|
available to withdraw.
|
||||||
<span v-if="!enrolled"
|
<span v-if="!enrolled"
|
||||||
>Enroll in the Creator Monetization Program to withdraw your
|
>Enroll in the Creator Monetization Program to withdraw your
|
||||||
@ -37,13 +37,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<p v-else-if="$auth.user.payout_data.balance > 0">
|
<p v-else-if="$auth.user.payout_data.balance > 0">
|
||||||
You have made
|
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
|
>, however you have not yet met the minimum of ${{ minWithdraw }} to
|
||||||
withdraw.
|
withdraw.
|
||||||
</p>
|
</p>
|
||||||
<p v-else>
|
<p v-else>
|
||||||
You have made
|
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.
|
>, which is under the minimum of ${{ minWithdraw }} to withdraw.
|
||||||
</p>
|
</p>
|
||||||
<div v-if="!enrolled">
|
<div v-if="!enrolled">
|
||||||
|
|||||||
@ -13,8 +13,8 @@
|
|||||||
<h3>
|
<h3>
|
||||||
Find enjoyable, quality content through our
|
Find enjoyable, quality content through our
|
||||||
<a href="https://github.com/modrinth" target="_blank">open-source</a>
|
<a href="https://github.com/modrinth" target="_blank">open-source</a>
|
||||||
modding platform built for the community. Create stuff, get
|
modding platform built for the community. Create stuff, get paid, and
|
||||||
paid<sup>WIP</sup>, and deploy your project with our
|
deploy your project with our
|
||||||
<a href="https://docs.modrinth.com" target="_blank"
|
<a href="https://docs.modrinth.com" target="_blank"
|
||||||
>fully documented</a
|
>fully documented</a
|
||||||
>
|
>
|
||||||
@ -42,21 +42,20 @@
|
|||||||
<div class="points card">
|
<div class="points card">
|
||||||
<div class="point">
|
<div class="point">
|
||||||
<div class="image">
|
<div class="image">
|
||||||
<video
|
<img
|
||||||
v-if="$colorMode.value === 'light'"
|
v-if="$colorMode.value === 'light'"
|
||||||
autoplay
|
src="https://cdn.modrinth.com/homepage/search-light.webp"
|
||||||
loop
|
alt="Screenshot of Modrinth's 'search mods' page"
|
||||||
muted
|
|
||||||
src="https://cdn.modrinth.com/homepage/search.mp4"
|
|
||||||
playsinline
|
|
||||||
/>
|
/>
|
||||||
<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
|
v-else
|
||||||
autoplay
|
src="https://cdn.modrinth.com/homepage/search-dark.webp"
|
||||||
loop
|
alt="Screenshot of Modrinth's 'search mods' page"
|
||||||
muted
|
|
||||||
src="https://cdn.modrinth.com/homepage/search-dark.mp4"
|
|
||||||
playsinline
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-container">
|
<div class="text-container">
|
||||||
@ -387,9 +386,9 @@ export default {
|
|||||||
height: unset;
|
height: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
img,
|
img {
|
||||||
video {
|
|
||||||
border-radius: var(--size-rounded-lg);
|
border-radius: var(--size-rounded-lg);
|
||||||
|
box-shadow: var(--shadow-floating);
|
||||||
width: 40rem;
|
width: 40rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -401,6 +400,7 @@ export default {
|
|||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
line-height: 1.5rem;
|
line-height: 1.5rem;
|
||||||
|
box-shadow: var(--shadow-floating);
|
||||||
|
|
||||||
.line-nums {
|
.line-nums {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -16,6 +16,7 @@ export default (ctx, inject) => {
|
|||||||
return obj
|
return obj
|
||||||
})
|
})
|
||||||
inject('formatNumber', formatNumber)
|
inject('formatNumber', formatNumber)
|
||||||
|
inject('formatMoney', (number) => '$' + formatNumber(number.toFixed(2)))
|
||||||
inject('formatVersion', (versionsArray) =>
|
inject('formatVersion', (versionsArray) =>
|
||||||
formatVersions(versionsArray, ctx.store)
|
formatVersions(versionsArray, ctx.store)
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user