From cf7c147b694fad3af1205a8973750ee134350413 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Fri, 21 May 2021 16:37:02 +0200 Subject: [PATCH] titles --- .gitignore | 1 + src/pages/[manga]/[chapter]/_layout.svelte | 20 +++++++++++++++++ src/pages/[manga]/index.svelte | 25 ++++++++++++++++------ src/pages/index.svelte | 4 ++++ 4 files changed, 44 insertions(+), 6 deletions(-) create mode 100644 src/pages/[manga]/[chapter]/_layout.svelte diff --git a/.gitignore b/.gitignore index da93220..068df95 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /public/build/ .DS_Store +.routify \ No newline at end of file diff --git a/src/pages/[manga]/[chapter]/_layout.svelte b/src/pages/[manga]/[chapter]/_layout.svelte new file mode 100644 index 0000000..257c174 --- /dev/null +++ b/src/pages/[manga]/[chapter]/_layout.svelte @@ -0,0 +1,20 @@ + + + \ No newline at end of file diff --git a/src/pages/[manga]/index.svelte b/src/pages/[manga]/index.svelte index f8e57d9..c657fff 100644 --- a/src/pages/[manga]/index.svelte +++ b/src/pages/[manga]/index.svelte @@ -1,5 +1,6 @@ + + Chapters of {manga.title.en} + +

{manga.title.en}

{#await chapters} Loading chapters... {:then chapters} -
    +
      {#each chapters.results as chapter} -
    1. {chapter.data.attributes.title}
    2. +
    3. {chapter.data.attributes.volume ? "Vol " + chapter.data.attributes.volume : ""} Chapter {chapter.data.attributes.chapter} {chapter.data.attributes.title}
    4. {/each}
    {/await} -
\ No newline at end of file + + + \ No newline at end of file diff --git a/src/pages/index.svelte b/src/pages/index.svelte index bd33319..4c19520 100644 --- a/src/pages/index.svelte +++ b/src/pages/index.svelte @@ -27,6 +27,10 @@ $: result.then(console.log); + + Mangadex search + +

MANGADEX