Remove april mop :)

pull/1/head
Made Baruna 2021-04-02 14:48:38 +08:00
parent 84cb31e96e
commit e7f284693e
6 changed files with 3 additions and 103 deletions

View File

@ -394,14 +394,5 @@
"download": "Download Both Data",
"lastModified": "Last modified",
"or": "OR"
},
"giveaway": {
"title": "🎉 We are doing our 1st Primogem Giveaway!",
"message": "Paimon.moe will be giving away 6400 Primogems to 4 lucky winners! To enter, submit your UID below. Winner will be announced on Discord at 4 April 19:00 GMT+8 (the last day of Venti banner)! So make sure to join our Discord!",
"submit": "Enter Giveaway",
"invalidUID1": "Invalid UID! Please check it again",
"invalidUID2": "Invalid UID! Need help finding your uid?",
"click": "Click here",
"aprilfools": "April Fools 😂! Hey but seriously be careful when joining a giveaway! If this is a real scam, you can get hacked! Don't enter your username, email, or even password on an unknown website. Usually, if it's too good to be true, you need to research it first! That's all from me, be careful and have fun!"
}
}

View File

@ -394,14 +394,5 @@
"download": "Download Kedua Data",
"lastModified": "Terakhir dimodifikasi",
"or": "ATAU"
},
"giveaway": {
"title": "🎉 Giveaway Primogem Pertama Paimon.moe!",
"message": "Paimon.moe akan memberikan 6400 Primogem ke 4 orang yang beruntung! Untuk bergabung, masukkan UID mu dibawah. Pemenang akan diumumkan di Discord tanggal 4 April 19:00 GMT+8 (hari terakhir banner Venti)! Jadi pastikan udah join Discord nya ya!",
"submit": "Enter Giveaway",
"invalidUID1": "UID Salah! Coba cek kembali",
"invalidUID2": "UID Salah! Perlu bantuan menemukan uid mu?",
"click": "Klik disini",
"aprilfools": "April Fools 😂! Hey tapi hati-hati saat ada giveaway atau apapun itu yang perlu memasukkan username atau password! Kalau ini penipuan beneran, akun mu bisa dibajak! Jangan memasukkan username, email, atau password di website yang belum dikenal. Biasanya jika terlalu bagus untuk menjadi kenyataan, kamu harus cari tau terlebih dahulu, apakah beneran atau tipu-tipu! Itu saja dari saya, be careful and have fun!"
}
}

View File

@ -58,7 +58,7 @@
{/if}
<div class="lg:ml-64 px-4 md:px-8 py-8 flex flex-col">
<p class="text-gray-400">
Paimon.moe is not affiliated with miHoYo<a href="/giveaway">.</a> <br />
Paimon.moe is not affiliated with miHoYo.<br />
Genshin Impact, game content and materials are trademarks and copyrights of miHoYo.
</p>
<div class="flex mt-4 md:items-center flex-col md:flex-row">

View File

@ -1,9 +0,0 @@
<script>
import { onMount } from 'svelte';
onMount(() => {
window.location.href = 'https://youtu.be/SWqgjQ7nPNA';
});
</script>
<div>Giveaway</div>

View File

@ -1,52 +0,0 @@
<script>
import { t } from 'svelte-i18n';
import Button from '../../components/Button.svelte';
import Input from '../../components/Input.svelte';
let inputCount = 0;
let showMessage = false;
let youtubeLink;
function increaseCount() {
inputCount++;
if (inputCount === 3) {
youtubeLink.click();
showAprilFoolMessage();
}
}
function showAprilFoolMessage() {
setTimeout(() => {
showMessage = true;
}, 5000);
}
</script>
<div class="text-white">
<p class="font-semibold mb-4">{$t('giveaway.title')}</p>
<p>{$t('giveaway.message')}</p>
<div class="flex flex-col md:flex-row mt-4 mb-1">
<Input placeholder="UID" />
<Button on:click={increaseCount} className="mt-2 md:mt-0 md:ml-2">{$t('giveaway.submit')}</Button>
</div>
{#if inputCount > 1}
<p class="text-red-200">
{$t('giveaway.invalidUID2')}
<a
on:click={showAprilFoolMessage}
bind:this={youtubeLink}
class="text-primary hover:underline"
href="/giveaway"
target="_blank"
>
{$t('giveaway.click')}
</a>
</p>
{:else if inputCount > 0}
<p class="text-red-200">{$t('giveaway.invalidUID1')}</p>
{/if}
{#if showMessage}
<p class="mt-4 mb-32 md:mb-0">{$t('giveaway.aprilfools')}</p>
{/if}
</div>

View File

@ -1,7 +1,7 @@
<script>
import { t } from 'svelte-i18n';
import { getContext, onMount } from 'svelte';
import { onMount } from 'svelte';
import dayjs from 'dayjs';
import { characters } from '../../data/characters';
@ -11,11 +11,8 @@
import { getAccountPrefix } from '../../stores/account';
import { readSave, updateTime, fromRemote } from '../../stores/saveManager';
import SummaryItem from './_summaryItem.svelte';
import GiveawayModal from './_giveaway.svelte';
import Icon from '../../components/Icon.svelte';
import { mdiEarth, mdiGlobeLight, mdiGlobeModel } from '@mdi/js';
const { open: openModal } = getContext('simple-modal');
import { mdiEarth } from '@mdi/js';
let numberFormat = Intl.NumberFormat();
@ -140,17 +137,6 @@
console.log(avg);
loading = false;
}
function openGiveaway() {
openModal(
GiveawayModal,
{},
{
closeButton: false,
styleWindow: { background: '#25294A', width: '600px' },
},
);
}
</script>
{#if !loading}
@ -181,12 +167,5 @@
<Icon path={mdiEarth} className="mr-2" />
{$t('wish.globalWishTally')}
</a>
<div
on:click={openGiveaway}
class="bg-item rounded-xl p-4 w-full text-white mt-4 cursor-pointer hover:text-primary"
style="height: min-content;"
>
{$t('giveaway.title')} <img class="w-4 h-4 mx-2 inline" src="/images/primogem.png" alt="primogem" />
</div>
</div>
{/if}