Skip to content

Commit

Permalink
feat: more detailed warning
Browse files Browse the repository at this point in the history
resolves #9
  • Loading branch information
vgskye committed Jun 2, 2023
1 parent 6023f9d commit 866515d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/app.postcss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ progress {
-webkit-appearance: none;
}

.inline-code {
@apply inline bg-surface0 p-0.5 rounded-sm
}

.checkbox {
@apply w-4 h-4 rounded focus:ring-blue text-blue bg-base
}
Expand Down
8 changes: 6 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,19 @@
An error occurred while installing Fabulously Optimized: {errorMessage}
</div>
{:else}
Really downgrade version?
<div>
You are attempting to downgrade the Minecraft version. This is <span class="inline font-semibold">NOT SUPPORTED</span> by Mojang or Fabulously Optimized and it may cause world corruption or crashes. <br>
If you want to do this safely, you should backup <code class="inline-code">mods</code>, <code class="inline-code">config</code> and <code class="inline-code">saves</code> folders to a different location and delete them from your .minecraft folder.<br>
To skip this warning after backing up the folders, delete <code class="inline-code">paigaldaja_meta.json</code> from your .minecraft folder.
</div>
<div class="flex flex-row gap-2 items-center justify-center">
<input
class="checkbox"
type="checkbox"
bind:checked={confirmDowngrade}
id="confirm-downgrade"
/>
<label for="confirm-downgrade"> Yes, I want to downgrade FO. </label>
<label for="confirm-downgrade">Yes, I want to downgrade FO.</label>
</div>
<button
class="rounded-full bg-blue text-base disabled:bg-surface0 py-2 px-4 focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue disabled:text-overlay0"
Expand Down

0 comments on commit 866515d

Please sign in to comment.