From d19e2fb24de06dfbeb283a38565fa893d65a1aaa Mon Sep 17 00:00:00 2001 From: Xen0Xys Date: Sat, 15 Jun 2024 16:47:47 +0200 Subject: [PATCH] :sparkles: Add new episode view --- assets/css/index.css | 14 ++++++++ components/ui/scroll-area/ScrollArea.vue | 29 ++++++++++++++++ components/ui/scroll-area/ScrollBar.vue | 30 +++++++++++++++++ components/ui/scroll-area/index.ts | 2 ++ components/webtoons/episodes/EpisodeItem.vue | 35 ++++++++++++++++++++ components/webtoons/episodes/EpisodeList.vue | 30 +++++++++++++++++ components/webtoons/webtoons/WebtoonItem.vue | 26 +++++++++------ components/webtoons/webtoons/WebtoonList.vue | 15 ++++++--- layouts/NavLayout.vue | 2 +- pages/index.vue | 2 +- pages/webtoon/[id].vue | 21 ++++++++++++ utils/api.ts | 4 +++ 12 files changed, 193 insertions(+), 17 deletions(-) create mode 100644 components/ui/scroll-area/ScrollArea.vue create mode 100644 components/ui/scroll-area/ScrollBar.vue create mode 100644 components/ui/scroll-area/index.ts create mode 100644 components/webtoons/episodes/EpisodeItem.vue create mode 100644 components/webtoons/episodes/EpisodeList.vue create mode 100644 pages/webtoon/[id].vue diff --git a/assets/css/index.css b/assets/css/index.css index 3391771..7921f1a 100644 --- a/assets/css/index.css +++ b/assets/css/index.css @@ -123,4 +123,18 @@ p.muted{ @apply text-sm text-muted-foreground; } + + /*::-webkit-scrollbar {*/ + /* width: 10px;*/ + /*}*/ + /*::-webkit-scrollbar-track {*/ + /* background: #f1f1f1;*/ + /*}*/ + /*::-webkit-scrollbar-thumb {*/ + /* background: #888;*/ + /* border-radius: 5px;*/ + /*}*/ + /*::-webkit-scrollbar-thumb:hover {*/ + /* background: #555;*/ + /*}*/ } diff --git a/components/ui/scroll-area/ScrollArea.vue b/components/ui/scroll-area/ScrollArea.vue new file mode 100644 index 0000000..8f501cc --- /dev/null +++ b/components/ui/scroll-area/ScrollArea.vue @@ -0,0 +1,29 @@ + + + diff --git a/components/ui/scroll-area/ScrollBar.vue b/components/ui/scroll-area/ScrollBar.vue new file mode 100644 index 0000000..efaaee2 --- /dev/null +++ b/components/ui/scroll-area/ScrollBar.vue @@ -0,0 +1,30 @@ + + + diff --git a/components/ui/scroll-area/index.ts b/components/ui/scroll-area/index.ts new file mode 100644 index 0000000..2bd4fae --- /dev/null +++ b/components/ui/scroll-area/index.ts @@ -0,0 +1,2 @@ +export { default as ScrollArea } from './ScrollArea.vue' +export { default as ScrollBar } from './ScrollBar.vue' diff --git a/components/webtoons/episodes/EpisodeItem.vue b/components/webtoons/episodes/EpisodeItem.vue new file mode 100644 index 0000000..25e3897 --- /dev/null +++ b/components/webtoons/episodes/EpisodeItem.vue @@ -0,0 +1,35 @@ + + + + + diff --git a/components/webtoons/episodes/EpisodeList.vue b/components/webtoons/episodes/EpisodeList.vue new file mode 100644 index 0000000..2549a9c --- /dev/null +++ b/components/webtoons/episodes/EpisodeList.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/components/webtoons/webtoons/WebtoonItem.vue b/components/webtoons/webtoons/WebtoonItem.vue index 805cb21..fb1ff86 100644 --- a/components/webtoons/webtoons/WebtoonItem.vue +++ b/components/webtoons/webtoons/WebtoonItem.vue @@ -30,12 +30,18 @@ onMounted(() => {