aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Error/AnimeRateLimited.svelte
blob: 89b7ede273db7e5a09089f081a7dab70a3496f6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<script>
	import Popup from '$lib/Layout/Popup.svelte';
</script>

<Popup locked fullscreen>
	<p><slot /></p>

	<span>It is likely that you have been rate-limited by AniList. Please try again later.</span>

	{#await fetch('https://api.waifu.pics/sfw/cry') then response}
		{#await response.json() then json}
			<p />

			<a href={`https://trace.moe/?url=${encodeURIComponent(json.url)}`} target="_blank">
				<img src={json.url} alt="" style="width: 30vw;" />
			</a>
		{/await}
	{/await}
</Popup>