From c0dd7d8b274b61416c7823f8ec27b4ff49903ce1 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sun, 25 Aug 2024 17:38:43 +0200 Subject: [PATCH] update layout --- src/routes/analysts/top-stocks/+page.svelte | 98 +++++++++++++++------ src/routes/most-shorted-stocks/+page.svelte | 79 +++++++++++++---- 2 files changed, 130 insertions(+), 47 deletions(-) diff --git a/src/routes/analysts/top-stocks/+page.svelte b/src/routes/analysts/top-stocks/+page.svelte index 72a5adc1..de15fa73 100644 --- a/src/routes/analysts/top-stocks/+page.svelte +++ b/src/routes/analysts/top-stocks/+page.svelte @@ -4,7 +4,8 @@ import InfiniteLoading from '$lib/components/InfiniteLoading.svelte'; import { abbreviateNumber } from '$lib/utils'; import UpgradeToPro from '$lib/components/UpgradeToPro.svelte'; - + import ArrowLogo from "lucide-svelte/icons/move-up-right"; + export let data; let cloudFrontUrl = import.meta.env.VITE_IMAGE_URL; @@ -30,16 +31,8 @@ - let charNumber = 40; - $: { - if ($screenWidth < 640) - { - charNumber = 15; - } - else { - charNumber = 40; - } - } + $: charNumber = $screenWidth < 640 ? 15 : 40; + @@ -69,21 +62,22 @@ -
- +
+
-
-
-
+
+
+ + +
@@ -168,7 +162,7 @@ Upside - + Market Cap @@ -210,7 +204,7 @@ {/if} - + {item?.marketCap !== null ? abbreviateNumber(item?.marketCap,true) : '-'} @@ -225,16 +219,64 @@
+
+ +
+ {#if data?.user?.tier !== 'Pro' || data?.user?.freeTrial} +
goto('/pricing')} 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} + +
goto('/analysts')} 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"> +
+
+

+ Wallstreet Analyst +

+ +
+ + Get the latest top Wall Street analyst ratings. + +
+
+ +
goto('/politicians')} 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"> +
+
+

+ Congress Trading +

+ +
+ + Get the latest top Congress trading insights. + +
+
+ + +
+
+ +
- + + + +
- - - - -
- \ No newline at end of file diff --git a/src/routes/most-shorted-stocks/+page.svelte b/src/routes/most-shorted-stocks/+page.svelte index 5638f9e0..e5711ce9 100644 --- a/src/routes/most-shorted-stocks/+page.svelte +++ b/src/routes/most-shorted-stocks/+page.svelte @@ -5,6 +5,7 @@ import { abbreviateNumber } from '$lib/utils'; import { onMount } from 'svelte'; import UpgradeToPro from '$lib/components/UpgradeToPro.svelte'; + import ArrowLogo from "lucide-svelte/icons/move-up-right"; export let data; @@ -35,17 +36,8 @@ }) - let charNumber = 40; - $: { - if ($screenWidth < 640) - { - charNumber = 15; - } - else { - charNumber = 40; - } - } - + $: charNumber = $screenWidth < 640 ? 15 : 40; + @@ -73,20 +65,22 @@ -
- +
+
-
-
-
+
+
+ + +
@@ -228,7 +222,55 @@
-
+ + +
@@ -237,5 +279,4 @@
- \ No newline at end of file