diff --git a/src/pages/[manga]/[chapter]/[page].svelte b/src/pages/[manga]/[chapter]/[page].svelte new file mode 100644 index 0000000..301f4f6 --- /dev/null +++ b/src/pages/[manga]/[chapter]/[page].svelte @@ -0,0 +1,179 @@ + + + + + + {manga.title.en} Chapter {chapter.data.attributes.chapter} Page {page} + + +
+ Back to chapter list +
+ +Page {page} in chapter {chapter.data.attributes.chapter} of {manga.title.en} + +
+ {#if page > 1} + + {/if} + {#if page < chapter.data.attributes[quality].length - 1} + + {/if} +
+ + \ No newline at end of file diff --git a/src/pages/[manga]/[chapter]/_layout.svelte b/src/pages/[manga]/[chapter]/_layout.svelte index 707fbbb..319969d 100644 --- a/src/pages/[manga]/[chapter]/_layout.svelte +++ b/src/pages/[manga]/[chapter]/_layout.svelte @@ -1,6 +1,5 @@ - \ No newline at end of file +{#await Promise.all([chapterData, atHome])} + Loading data... +{:then [chapterData, atHome]} + +{/await} \ No newline at end of file diff --git a/src/pages/[manga]/[chapter]/index.svelte b/src/pages/[manga]/[chapter]/index.svelte index e69de29..853f66c 100644 --- a/src/pages/[manga]/[chapter]/index.svelte +++ b/src/pages/[manga]/[chapter]/index.svelte @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/src/pages/[manga]/index.svelte b/src/pages/[manga]/index.svelte index 456b4b3..6f827ea 100644 --- a/src/pages/[manga]/index.svelte +++ b/src/pages/[manga]/index.svelte @@ -198,6 +198,12 @@

{manga.title.en}

+ + +
+