From 8abcc5e16df6496a6adc9518ed8d17e0c9dbcbfa Mon Sep 17 00:00:00 2001 From: migbash <20924663+migbash@users.noreply.github.com> Date: Mon, 27 Feb 2023 22:54:07 +0000 Subject: [PATCH] feat: #1055 (cont) + (loader) + (components); --- .../home/livescores-v2/Livescores_Main.svelte | 487 ++++++++---------- .../livescores-v2/Livescores_Top_Row.svelte | 294 +++++++++++ .../livescores-v2/Livescores_Widget.svelte | 6 +- 3 files changed, 500 insertions(+), 287 deletions(-) create mode 100644 src/lib/components/page/home/livescores-v2/Livescores_Top_Row.svelte diff --git a/src/lib/components/page/home/livescores-v2/Livescores_Main.svelte b/src/lib/components/page/home/livescores-v2/Livescores_Main.svelte index 8d1f776e5..1093d2210 100644 --- a/src/lib/components/page/home/livescores-v2/Livescores_Main.svelte +++ b/src/lib/components/page/home/livescores-v2/Livescores_Main.svelte @@ -3,10 +3,8 @@ COMPONENT JS (w/ TS) =================--> + + + + +
+ {#each fixture_dates as item} +
$sessionStore.livescoreNowSelectedDate = new Date(item)}> +

+ {WEEK_DAYS_ABBRV[new Date(item).getDay()]} +
+ + {new Date(item).getDate()} + +

+
+ {/each} + +
+ + showCalendar = !showCalendar} + on:mouseover={(e) => e.currentTarget.src = vec_calendar_sel} + on:mouseleave={(e) => {if (!showCalendar) e.currentTarget.src = vec_calendar}} + class="cursor-pointer" + /> + + {#if showCalendar} + + {/if} +
+
+ + +
+
$sessionStore.livescoreFixtureView = 'all'}> +

+ All ({numOfFixtures}) +

+
+
$sessionStore.livescoreFixtureView = 'live'}> +
+

+ Live ({numOfFixturesLive}) +

+ pulsating-dot +
+
+
+ + + + \ No newline at end of file diff --git a/src/lib/components/page/home/livescores-v2/Livescores_Widget.svelte b/src/lib/components/page/home/livescores-v2/Livescores_Widget.svelte index 656346102..1746e5a1a 100644 --- a/src/lib/components/page/home/livescores-v2/Livescores_Widget.svelte +++ b/src/lib/components/page/home/livescores-v2/Livescores_Widget.svelte @@ -25,8 +25,8 @@ COMPONENT JS (w/ TS) //#endregion ➤ Types Imports import SeoBox from '$lib/components/SEO-Box.svelte'; + import LivescoresLoader from './Livescores_Loader.svelte'; import LivescoresMain from './Livescores_Main.svelte'; - import LoaderLivescores from './loaders/Loader_Livescores.svelte'; //#region ➤ Assets Imports //#endregion ➤ Assets Imports @@ -101,14 +101,16 @@ NOTE: [HINT] use (CTRL+SPACE) to select a (class) (id) style from the global (ap

+ + {#await widgetInit()} - + {:then data}