Testing page generation

This commit is contained in:
ZXY101
2023-08-03 10:08:04 +02:00
parent 00f438a290
commit 07e007aaa7
26 changed files with 564 additions and 92 deletions

View File

@@ -1,13 +1,14 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { currentManga } from '$lib/catalog';
import type { Manga } from '$lib/types/catalog';
import Button from './Button.svelte';
import { navbarTitle } from './NavBar.svelte';
export let manga: Manga;
const { cover, currentPage, title, totalPages } = manga;
const { cover, title } = manga;
function onClick() {
console.log('bruh');
navbarTitle.set(title);
currentManga.set(manga);
}
</script>
@@ -16,7 +17,6 @@
<div class="content">
{title}
<img src={cover} alt={title} />
{currentPage} / {totalPages}
</div>
</a>