From 41698af9c460fb32135f300b4d6e985d4f629f8c Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sun, 23 Feb 2025 14:28:20 +0100 Subject: [PATCH] ui fixes --- src/lib/components/AIScore.svelte | 135 +- src/lib/components/LoginPopup.svelte | 4223 +++++++++----------------- src/routes/+layout.svelte | 2 +- src/routes/+page.svelte | 2 +- src/routes/blog/+page.svelte | 2 +- src/routes/login/+page.svelte | 2 +- src/routes/pricing/+page.svelte | 28 - src/routes/register/+page.svelte | 2 +- 8 files changed, 1420 insertions(+), 2976 deletions(-) diff --git a/src/lib/components/AIScore.svelte b/src/lib/components/AIScore.svelte index e212b044..d9e809a0 100644 --- a/src/lib/components/AIScore.svelte +++ b/src/lib/components/AIScore.svelte @@ -23,22 +23,6 @@

AI Score

- -
@@ -73,14 +57,7 @@ stroke-width="3" stroke-dasharray="100.48" stroke-dashoffset={100.48 - - ((tier === "Pro" || - ["AAPL", "NVDA", "GOOGL", "META", "AMD"]?.includes( - $stockTicker, - ) - ? score - : 0) / - 10) * - 100.48} + ((tier === "Pro" ? score : 0) / 10) * 100.48} > @@ -90,11 +67,7 @@ y="21" text-anchor="middle" font-size="10" - fill="#000" - >{tier === "Pro" || - ["AAPL", "NVDA", "GOOGL", "META", "AMD"]?.includes($stockTicker) - ? score - : 0}{tier === "Pro" ? score : 0} @@ -102,7 +75,7 @@
- {#if tier === "Pro" || ["AAPL", "NVDA", "GOOGL", "META", "AMD"]?.includes($stockTicker)} + {#if tier === "Pro"} {score} @@ -134,7 +107,7 @@

- {#if tier === "Pro" || ["AAPL", "NVDA", "GOOGL", "META", "AMD"]?.includes($stockTicker)} + {#if tier === "Pro"} {#if score === 10} Strong Buy {:else if score >= 7} @@ -154,103 +127,3 @@ - - - - - diff --git a/src/lib/components/LoginPopup.svelte b/src/lib/components/LoginPopup.svelte index d725cb28..19999076 100644 --- a/src/lib/components/LoginPopup.svelte +++ b/src/lib/components/LoginPopup.svelte @@ -19,19 +19,22 @@ case "redirect": isClicked = true; toast.success("Login successfully!", { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); await update(); break; case "failure": toast.error("Invalid credentials", { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); await update(); break; case "error": toast.error(result.error.message, { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); break; default: @@ -63,19 +66,22 @@ case "redirect": isClicked = true; toast.success("Registration successfully!", { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); await update(); break; case "failure": toast.error("Invalid credentials", { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); await update(); break; case "error": toast.error(result.error.message, { - style: "border-radius: 200px; background: #2A2E39; color: #fff;", + style: + "border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;", }); break; default: @@ -138,2837 +144,1430 @@ const output = await response.json(); } -{#if $screenWidth > 640} - + - + + - + - -{:else} - - -
- - -
- -
-
-{/if} + {:else if displaySection === "register"} +
+
+

+ Getting Started +

+
- + + Create an account to get started + + +
+
+ + + + + + + + +
+ {#if !loading && !isClicked} + + {:else} + + {/if} +
+ +
+ Or register using +
+ +
+ + + + +
+ + +
+ +
+ + +
+
+ +

+ By registering you agree to stocknear's + Terms of Use + and acknowledge that you've read our + Privacy Policy. +

+ +

+ You already have an account? + +

+ +
+
+ {/if} + + {#if oauthLoading} +
+
+ +
+
+ {/if} + +