1 <!-- This file is part of api-worker <https://github.com/senpy-club/api-worker>.
2 Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, version 3.
8 This program is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 Copyright (C) 2022-2022 Fuwn <contact@fuwn.me>
17 SPDX-License-Identifier: GPL-3.0-only -->
19 import { onMount } from "svelte";
20 import { fetchRandomImage } from "$lib/api";
26 image = (await fetchRandomImage()).image;
32 <title>Home | The Senpy Club</title>
39 <p>Fetching a random image...</p>
41 <div id="random-image">
45 alt="Image of an anime girl holding a programming book"
53 If you'd like to support the project in any way, check out the repositories:
56 <li><a href="https://github.com/senpy-club/api-worker">API</a></li>
57 <li><a href="https://github.com/senpy-club/frontend-next">Frontend</a></li>