fix: move nord/neutral to themes folder, reword sponsor perks, dont trigger reload btn when agreeing to privacy policy

This commit is contained in:
dragonwocky 2023-02-03 21:10:50 +11:00
parent a6e9504b6f
commit 6519f501d3
Signed by: dragonwocky
GPG Key ID: 7998D08F7D7BD7A8
9 changed files with 8 additions and 6 deletions

View File

@ -10,7 +10,8 @@ import { Description } from "../components/Description.mjs";
import { useState } from "../state.mjs"; import { useState } from "../state.mjs";
const updateGuide = const updateGuide =
"https://notion-enhancer.github.io/getting-started/updating/"; "https://notion-enhancer.github.io/getting-started/updating/",
tsAndCs = "https://notion-enhancer.github.io/about/terms-and-conditions/";
const rectToStyle = (rect) => const rectToStyle = (rect) =>
["width", "height", "top", "bottom", "left", "right"] ["width", "height", "top", "bottom", "left", "right"]
@ -168,11 +169,11 @@ function Banner({ updateAvailable, isDevelopmentBuild }) {
<!-- Disclaimer: these perks are only a draft, for anyone reading this. <!-- Disclaimer: these perks are only a draft, for anyone reading this.
This information may change at any time. --> This information may change at any time. -->
<${Description} class="mt-[6px]"> <${Description} class="mt-[6px]">
Sponsors receive access to priority support channels, private developer Sponsors help make open-source development sustainable and receive
previews, and role cosmetics on Discord. A one-time donation is access to priority support channels, private developer previews, and
equivalent to 1 month of sponsorship perks. To claim your Discord role, role cosmetics on Discord. A one-time donation is equivalent to 1 month
join the server <a href="https://discord.gg/sFWPXtA">here</a> and follow of sponsor perks. To learn more about perks, read the
the instructions in the <b>#welcome</b> channel. <a href=${tsAndCs} class="ml-[3px]">Terms & Conditions</a>.
<//> <//>
</div>`; </div>`;
initDatabase() initDatabase()

View File

@ -36,6 +36,7 @@ function Onboarding() {
<div class="flex items-center my-[14px] gap-[8px]"> <div class="flex items-center my-[14px] gap-[8px]">
<${Checkbox} <${Checkbox}
_set=${(checked) => ($submitAgreement.disabled = !checked)} _set=${(checked) => ($submitAgreement.disabled = !checked)}
_requireReload=${false}
/> />
<p class="typography text-[14px] mr-[16px]"> <p class="typography text-[14px] mr-[16px]">
I have read and agree to the I have read and agree to the

View File

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

View File

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 81 KiB