From 41c0b85c99ca67bc43e12ca6547a72f355b4a8c8 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sun, 23 Feb 2025 13:53:49 +0100 Subject: [PATCH] ui fix --- .../[tickerID]/forecast/ai/+page.svelte | 372 +++++++----------- 1 file changed, 145 insertions(+), 227 deletions(-) diff --git a/src/routes/stocks/[tickerID]/forecast/ai/+page.svelte b/src/routes/stocks/[tickerID]/forecast/ai/+page.svelte index 8e6e2d9e..a34e889b 100644 --- a/src/routes/stocks/[tickerID]/forecast/ai/+page.svelte +++ b/src/routes/stocks/[tickerID]/forecast/ai/+page.svelte @@ -1,6 +1,7 @@
-
- {#if optionsPieChart !== null} - - {/if} -
-
- AI Consensus: {consensusRating} +
+
+ {#if optionsPieChart !== null} + + {/if} +
+
+ Analyst Consensus: {consensusRating} +
-
- {#if data?.user?.tier !== "Pro"} - - {:else if optionsPriceForecast !== null} - - {/if} -
+
@@ -397,112 +403,24 @@ Change 0 && data?.user?.tier === "Pro" + class={lowChange > 0 ? "before:content-['+'] text-[#00FC50]" - : "text-[#FF2F1F]"} + : "text-[#FF2F1F]"}>{lowChange}% - {#if data?.user?.tier !== "Pro"} - - - - - - - {:else} - {lowChange}% - {/if} - 0 && data?.user?.tier === "Pro" + class={avgChange > 0 ? "before:content-['+'] text-[#00FC50]" - : "text-[#FF2F1F]"} + : "text-[#FF2F1F]"}>{avgChange}% - {#if data?.user?.tier !== "Pro"} - - - - - - - {:else} - {avgChange}% - {/if} - 0 && data?.user?.tier === "Pro" + class={medianChange > 0 ? "before:content-['+'] text-[#00FC50]" - : "text-[#FF2F1F]"} + : "text-[#FF2F1F]"}>{medianChange}% - {#if data?.user?.tier !== "Pro"} - - - - - - - {:else} - {medianChange}% - {/if} - 0 && data?.user?.tier === "Pro" + class={highChange > 0 ? "before:content-['+'] text-[#00FC50]" - : "text-[#FF2F1F]"} - > - {#if data?.user?.tier !== "Pro"} - - - - - - - {:else} - {highChange}% - {/if}{highChange}%