From e6af359db46056c2e288287fcc458f7337bebfa5 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Thu, 5 Oct 2023 07:36:07 +0300 Subject: [PATCH] Minor design update --- src/components/ActionButton.svelte | 18 ++++ src/components/BottomBar.svelte | 26 ++++- src/components/ChannelPopup.svelte | 15 ++- src/components/Checkbox.svelte | 4 +- src/components/CreatePlaylistButton.svelte | 109 ++++++++++----------- src/components/DefaultButton.svelte | 3 +- src/components/Divider.svelte | 1 + src/components/DownloadButton.svelte | 10 +- src/components/EditButton.svelte | 3 +- src/components/NavBar.svelte | 95 ++++++++++-------- src/components/SelectAllButton.svelte | 70 ++++++------- src/components/SquareButton.svelte | 8 ++ src/pages/channel/+page.svelte | 4 +- tailwind.config.cjs | 7 +- 14 files changed, 208 insertions(+), 165 deletions(-) create mode 100644 src/components/ActionButton.svelte create mode 100644 src/components/Divider.svelte create mode 100644 src/components/SquareButton.svelte diff --git a/src/components/ActionButton.svelte b/src/components/ActionButton.svelte new file mode 100644 index 000000000..d84186212 --- /dev/null +++ b/src/components/ActionButton.svelte @@ -0,0 +1,18 @@ + + + diff --git a/src/components/BottomBar.svelte b/src/components/BottomBar.svelte index a72b5d13e..ee1adbbdd 100644 --- a/src/components/BottomBar.svelte +++ b/src/components/BottomBar.svelte @@ -2,20 +2,42 @@ import { slide } from 'svelte/transition' import DownloadButton from '~/components/DownloadButton.svelte' import SelectAllButton from '~/components/SelectAllButton.svelte' + import Divider from '~/components/Divider.svelte' + import SquareButton from '~/components/SquareButton.svelte' import { selected } from '~/store' + import { downloadMode } from '~/store'
Selected {$selected.length.toLocaleString()} channel(s)
-
+
+ + { + downloadMode.set(false) + }} + > + + + +
diff --git a/src/components/ChannelPopup.svelte b/src/components/ChannelPopup.svelte index 1399f0166..74c1cf4b1 100644 --- a/src/components/ChannelPopup.svelte +++ b/src/components/ChannelPopup.svelte @@ -1,6 +1,8 @@
- {#if $downloadMode} - { - downloadMode.set(false) - dispatch('click') - }} - area-label="Done" - > - - - - - - - - - - {:else} - - {/if} + { + downloadMode.set(true) + dispatch('click') + }} + area-label="Create Playlist" + > + + + +
diff --git a/src/components/DefaultButton.svelte b/src/components/DefaultButton.svelte index c03d195ad..cab96b385 100644 --- a/src/components/DefaultButton.svelte +++ b/src/components/DefaultButton.svelte @@ -1,5 +1,6 @@ +
diff --git a/src/components/EditButton.svelte b/src/components/EditButton.svelte index abf22b07c..6b2ffb951 100644 --- a/src/components/EditButton.svelte +++ b/src/components/EditButton.svelte @@ -18,11 +18,12 @@ diff --git a/src/components/NavBar.svelte b/src/components/NavBar.svelte index 359cac584..331042dea 100644 --- a/src/components/NavBar.svelte +++ b/src/components/NavBar.svelte @@ -2,7 +2,9 @@ import { query, hasQuery, search } from '~/store' import { onMount } from 'svelte' import SearchFieldMini from './SearchFieldMini.svelte' + import Divider from './Divider.svelte' import CreatePlaylistButton from './CreatePlaylistButton.svelte' + import SquareButton from './SquareButton.svelte' import { goto } from '$app/navigation' import { page } from '$app/stores' @@ -44,7 +46,13 @@ >
- + { + reset() + }} + class="flex mr-6" + > /iptv-org
- { + if ($page.url.pathname !== '/') { + goto('/') + } + }} + /> +
+ + -
- +
diff --git a/src/components/SelectAllButton.svelte b/src/components/SelectAllButton.svelte index c2305fa33..c41627f1e 100644 --- a/src/components/SelectAllButton.svelte +++ b/src/components/SelectAllButton.svelte @@ -15,51 +15,41 @@
{#if isAllSelected} - - - - + + + - - - - - - - - - - + + + + {:else} - - - - + + + - - - - - - - - + + - - + + {/if}
diff --git a/src/components/SquareButton.svelte b/src/components/SquareButton.svelte new file mode 100644 index 000000000..f1169695d --- /dev/null +++ b/src/components/SquareButton.svelte @@ -0,0 +1,8 @@ + diff --git a/src/pages/channel/+page.svelte b/src/pages/channel/+page.svelte index ccd807bc6..537412f9c 100644 --- a/src/pages/channel/+page.svelte +++ b/src/pages/channel/+page.svelte @@ -47,7 +47,7 @@ {#if channel}

{channel.name}

@@ -64,7 +64,7 @@ {#if streams.length}

Streams

diff --git a/tailwind.config.cjs b/tailwind.config.cjs index e15c51d98..f753fbe6f 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -11,9 +11,10 @@ module.exports = { }, colors: { primary: { - light: '#2f4368', - default: '#293b5b', - dark: '#253552' + 400: '#61a5fa', + 500: '#3b82f6', + 600: '#2664ec', + 700: '#1d4ed8' } } }