aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Error/AnimeRateLimited.svelte
blob: d5d5153027f72878a254f52d0565bb18a316c433 (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></p>

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