From 96156185e7cdea41ab4ebb1a20c1509c0ebe7d76 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 28 Oct 2024 14:45:23 +0100 Subject: [PATCH] ui fixes --- .../[tickerID]/dividends/+layout.svelte | 88 ++++--- .../[tickerID]/financials/+layout.svelte | 244 ++++++++++++------ .../stocks/[tickerID]/financials/+page.svelte | 19 +- .../financials/balance-sheet/+layout.svelte | 87 ------- .../financials/cash-flow/+page.svelte | 19 +- .../[tickerID]/financials/ratios/+page.svelte | 19 +- .../stocks/[tickerID]/insider/+layout.svelte | 209 ++++++++++----- .../insider/congress-trading/+layout.svelte | 80 ------ .../stocks/[tickerID]/options/+layout.svelte | 8 +- 9 files changed, 391 insertions(+), 382 deletions(-) delete mode 100644 src/routes/stocks/[tickerID]/financials/balance-sheet/+layout.svelte delete mode 100644 src/routes/stocks/[tickerID]/insider/congress-trading/+layout.svelte diff --git a/src/routes/stocks/[tickerID]/dividends/+layout.svelte b/src/routes/stocks/[tickerID]/dividends/+layout.svelte index 9940ab83..464c89b6 100644 --- a/src/routes/stocks/[tickerID]/dividends/+layout.svelte +++ b/src/routes/stocks/[tickerID]/dividends/+layout.svelte @@ -1,7 +1,35 @@
@@ -25,7 +53,7 @@ >

- Pro Subscription 🔥 + Pro Subscription

@@ -36,43 +64,31 @@ {/if} - + {/if} diff --git a/src/routes/stocks/[tickerID]/financials/+layout.svelte b/src/routes/stocks/[tickerID]/financials/+layout.svelte index 6ed1653c..85c6bdb9 100644 --- a/src/routes/stocks/[tickerID]/financials/+layout.svelte +++ b/src/routes/stocks/[tickerID]/financials/+layout.svelte @@ -1,7 +1,9 @@ -
-
-
-
-
- -
+ class="w-full bg-[#141417] duration-100 ease-out sm:hover:text-white text-gray-400 sm:hover:border-gray-700 border border-gray-800 rounded-lg h-fit pb-4 mt-4 cursor-pointer" + > + +
+

+ Pro Subscription +

+ +
+ + Upgrade now for unlimited access to all data and tools. + +
+
+ {/if} + + + + + + {/if}
- - - +
diff --git a/src/routes/stocks/[tickerID]/financials/+page.svelte b/src/routes/stocks/[tickerID]/financials/+page.svelte index 5b0f02d4..ab78a9f5 100644 --- a/src/routes/stocks/[tickerID]/financials/+page.svelte +++ b/src/routes/stocks/[tickerID]/financials/+page.svelte @@ -3,6 +3,7 @@ numberOfUnreadNotification, displayCompanyName, stockTicker, + coolMode, } from "$lib/store"; import { abbreviateNumber } from "$lib/utils"; import * as DropdownMenu from "$lib/components/shadcn/dropdown-menu/index.js"; @@ -28,7 +29,7 @@ let filterRule = "annual"; let displayStatement = "revenue"; - let mode = false; + $coolMode = false; let timeFrame = "10Y"; onMount(async () => { @@ -141,7 +142,7 @@ ]; function toggleMode() { - mode = !mode; + $coolMode = !$coolMode; } function changeStatement(event) { @@ -330,7 +331,7 @@ } income = filterStatement(fullStatement, timeFrame); - if (mode === true) { + if ($coolMode === true) { optionsData = plotData(); } } @@ -379,7 +380,7 @@

- {#if mode} + {#if $coolMode} {statementConfig?.find( (item) => item?.propertyName === displayStatement, )?.label} @@ -405,7 +406,7 @@ /> - {#if mode} + {#if $coolMode} {statementConfig?.find( (item) => item?.propertyName === displayStatement, )?.text} @@ -471,14 +472,14 @@
- {#if mode} + {#if $coolMode} Cool Mode @@ -565,7 +566,7 @@

- {#if mode} + {#if $coolMode}
- {#if mode} + {#if $coolMode} Cool Mode @@ -588,7 +589,7 @@
- {#if mode} + {#if $coolMode}
- {#if mode} + {#if $coolMode} Cool Mode @@ -552,7 +553,7 @@
- {#if mode} + {#if $coolMode}