Add wish how to

pull/1/head
I Made Setia Baruna 2021-01-10 00:49:17 +08:00
parent 6afe231ef4
commit 7cb32c5788
2 changed files with 91 additions and 2 deletions

View File

@ -0,0 +1,63 @@
<script>
import { mdiStar } from '@mdi/js';
import Icon from './Icon.svelte';
</script>
<div>
<h1 class="font-display text-white text-xl mb-4">How to use Wish Counter</h1>
<div class="text-white p-2 bg-background rounded-xl">
<p class="mb-2">After you do 1 pull Wish:</p>
<p class="mb-2">
Press
<b class="rounded-lg px-2 py-1 border-white border inline-flex items-center">+1</b>
when you get
<span class="inline-flex items-center">3
<Icon path={mdiStar} size={0.7} /></span>
</p>
<p class="mb-2">
Press
<b class="rounded-lg px-2 py-1 border-white border inline-flex items-center">Get 4
<Icon path={mdiStar} size={0.7} /></b>
when you get
<span class="inline-flex items-center">4
<Icon path={mdiStar} size={0.7} /></span>
</p>
<p class="mb-2">
Press
<b class="rounded-lg px-2 py-1 border-white border inline-flex items-center">Get 5
<Icon path={mdiStar} size={0.7} /></b>
when you get
<span class="inline-flex items-center">5
<Icon path={mdiStar} size={0.7} /></span>
</p>
<p class="text-gray-400">
It will automatically add the lifetime pulls,
<span class="inline-flex items-center">5
<Icon path={mdiStar} size={0.7} /></span>
and
<span class="inline-flex items-center">4
<Icon path={mdiStar} size={0.7} /></span>
pity
</p>
<p class="text-gray-400">
When the
<span class="inline-flex items-center">4
<Icon path={mdiStar} size={0.7} /></span>
pity reach 10, it will automatically reset to 0
</p>
<p class="text-gray-400">
When the
<span class="inline-flex items-center">5
<Icon path={mdiStar} size={0.7} /></span>
pity reach 90, it will automatically reset to 0
</p>
</div>
<div class="text-white p-2 bg-background rounded-xl mt-4">
For when you do 10 pulls Wish, press the
<b class="rounded-lg px-2 py-1 border-white border inline-flex items-center">+10</b>
button,
<span class="text-gray-400">but the pity counter won't be accurate, because there is no way to tell when the drop
occur (maybe you got it on the 1st or even the 10th). To make the counter still accurate, you need to check it on
the history table and add it 1 by 1 like you do 1 pull Wish.</span>
</div>
</div>

View File

@ -1,12 +1,38 @@
<script>
import { mdiHelpCircle } from '@mdi/js';
import { getContext } from 'svelte';
import Button from '../../components/Button.svelte';
import Icon from '../../components/Icon.svelte';
import HowToModal from '../../components/WishCounterHowToModal.svelte';
import Counter from './_counter.svelte';
const { open: openModal } = getContext('simple-modal');
function openHowTo() {
openModal(
HowToModal,
{},
{
closeButton: false,
styleWindow: { background: '#25294A', width: '800px' },
},
);
}
</script>
<svelte:head>
<title>Wish Counter - Paimon.moe</title>
</svelte:head>
<div class="pt-20 lg:ml-64 lg:pt-8 p-4 md:p-8">
<h1 class="font-display font-black text-5xl text-white mb-2">Wish Counter</h1>
<div class="pt-20 lg:ml-64 lg:pt-8 px-4 md:px-8">
<div class="flex flex-col md:flex-row mb-4 items-center">
<h1 class="font-display font-black text-5xl text-white text-center md:text-left md:mr-4">Wish Counter</h1>
<Button on:click={openHowTo}>
<Icon size={0.8} path={mdiHelpCircle} />
How To Use
</Button>
</div>
<div class="grid gap-4 grid-cols-1 md:grid-cols-2 xl:grid-cols-3 max-w-screen-xl">
<Counter id="character-event" name="Character Event" />
<Counter id="weapon-event" name="Weapon Event" />