Add mock catalog
This commit is contained in:
22
src/routes/[manga]/+page.svelte
Normal file
22
src/routes/[manga]/+page.svelte
Normal file
@@ -0,0 +1,22 @@
|
||||
<script lang="ts">
|
||||
import Panzoom from '$lib/panzoom/Panzoom.svelte';
|
||||
import { currentManga } from '$lib/catalog';
|
||||
import { goto } from '$app/navigation';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
const manga = $currentManga;
|
||||
</script>
|
||||
|
||||
{#if manga}
|
||||
<Panzoom>
|
||||
<img draggable="false" src={manga.cover} alt={manga.title} />
|
||||
</Panzoom>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
h2 {
|
||||
z-index: 1;
|
||||
position: fixed;
|
||||
left: 10px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user