From e62c1fbc600f6bb90b46818becd9f67f1788204f Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Fri, 15 Nov 2024 20:52:27 +0100 Subject: [PATCH] update financial page and pricing --- src/lib/components/FinancialTable.svelte | 53 +++++ src/routes/price-plan/+page.svelte | 150 ------------- src/routes/pricing/+page.svelte | 138 ++++++------ .../stocks/[tickerID]/financials/+page.svelte | 199 +----------------- 4 files changed, 128 insertions(+), 412 deletions(-) create mode 100644 src/lib/components/FinancialTable.svelte delete mode 100644 src/routes/price-plan/+page.svelte diff --git a/src/lib/components/FinancialTable.svelte b/src/lib/components/FinancialTable.svelte new file mode 100644 index 00000000..d40e9e33 --- /dev/null +++ b/src/lib/components/FinancialTable.svelte @@ -0,0 +1,53 @@ + + +{#each fields as { label, key }} + + + {label} + + {#each data as item} + + {item[key] !== null && item[key] !== 0 + ? abbreviateNumber(item[key]) + : "-"} + + {/each} + +{/each} diff --git a/src/routes/price-plan/+page.svelte b/src/routes/price-plan/+page.svelte deleted file mode 100644 index 7ffb70b4..00000000 --- a/src/routes/price-plan/+page.svelte +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ""} Price - Plan - - - -
- - -
-
-
-
-
-

- Price Plan -

-
- -
-
-

- Hi everyone πŸ‘‹, -

-

- After gathering feedback from users and analyzing our data at - the $1.99/month price point, I wanted to share some insights and - plans with you. -
-
- At our current rate, Stocknear is on track to reach profitability - in about 2–2.5 years, a timeline that may not be sustainable for - our platform. To give us a stronger chance of sustaining the platform - over the next 12 months, we're considering a new price point of - $4.99/month, which still keeps us among the - most affordable option for premium Wall Street data. -

-
- If you're already a Pro Member, your current rate will remain - locked in as long as your subscription stays active. -
-
- This new price plan will take effect on - Monday, November 11, 2024. Now is the last - chance to secure the - Pro Subscription - at $1.99/monthβ€”after this, the introductory - price will no longer be available. -
-
- To my Pro Members, I want to take a moment to say thank you. You're - the reason I’m doing this. The mission of Stocknear has always been - to support small retail investors who may not have the resources - to pay for high-priced subscriptions. Many of you have supported - me through valuable feedback, bug reports, donations, and by subscribing - to the platform. Hearing how Stocknear has helped so many of you - has been incredibly motivating. Thank you for sticking with me! - -
-
- - Cheers, -
-
Your Chief of Nothing -
-
-
-
- - -
-
-
-
diff --git a/src/routes/pricing/+page.svelte b/src/routes/pricing/+page.svelte index eefa3dc5..ba6a4dfd 100644 --- a/src/routes/pricing/+page.svelte +++ b/src/routes/pricing/+page.svelte @@ -10,16 +10,13 @@ export let form; let cloudFrontUrl = import.meta.env.VITE_IMAGE_URL; - + let mode = true; //let mode = false; const emailAddress = "support@stocknear.com"; - /* -function toggleMode() -{ + function toggleMode() { mode = !mode; -} -*/ + } let LoginPopup; @@ -47,8 +44,10 @@ function toggleMode() if (subscriptionType === "lifeTime") { subId = import.meta.env.VITE_LEMON_SQUEEZY_LIFE_TIME_ACCESS_ID; - } else { + } else if (mode) { subId = import.meta.env.VITE_LEMON_SQUEEZY_ANNUAL_ID; + } else { + subId = import.meta.env.VITE_LEMON_SQUEEZY_MONTHLY_ID; } const isDarkMode = @@ -147,29 +146,30 @@ function toggleMode()

- +
+ Pay Monthly + + + +
+ Pay Yearly + Save 50% +
+
@@ -347,38 +347,42 @@ function toggleMode()
- - -
- - star-solid - - - - - - - - - - Most Popular +
+ Discount
+ {#if mode} +
+ + star-solid + + + + + + + + + + Most Popular +
+ {/if} +
- $4.99 + {mode ? "$4.99" : "$9.99"} /month
-
(Billed Annually)
-
- less than a πŸ” -
+ {#if mode} +
(Billed Annually)
+
+ less than a πŸ” +
+ {/if} - - Revenue - {#each income as cash} - - {abbreviateNumber(cash?.revenue)} - {/each} - - - Cost of Revenue - {#each income as cash} - - {abbreviateNumber(cash?.costOfRevenue)} - {/each} - - - - Gross Profit - {#each income as cash} - - {abbreviateNumber(cash?.grossProfit)} - {/each} - - - Selling, General & Admin - {#each income as cash} - - {abbreviateNumber( - cash?.sellingGeneralAndAdministrativeExpenses, - )} - {/each} - - - Research & Development - {#each income as cash} - - {abbreviateNumber( - cash?.researchAndDevelopmentExpenses, - )} - {/each} - - - Other Expenses - {#each income as cash} - - {abbreviateNumber(cash?.otherExpenses)} - {/each} - - - Operating Expenses - {#each income as cash} - - {abbreviateNumber(cash?.o)} - {/each} - - - Interest Expense - {#each income as cash} - - {abbreviateNumber(cash?.interestExpense)} - {/each} - - - - Pretax Income - {#each income as cash} - - {abbreviateNumber(cash?.incomeBeforeTax)} - {/each} - - - - Income Tax - {#each income as cash} - - {abbreviateNumber(cash?.incomeTaxExpense)} - {/each} - - - Net Income - {#each income as cash} - - {abbreviateNumber(cash?.netIncome)} - {/each} - - - Shares Outstanding (Basic) - {#each income as cash} - - {abbreviateNumber(cash?.weightedAverageShsOut)} - {/each} - - - - Shares Outstanding (Diluted) - {#each income as cash} - - {abbreviateNumber( - cash?.weightedAverageShsOutDil, - )} - {/each} - - - EPS (Basic) - {#each income as cash} - - {cash?.eps?.toFixed(2)} - {/each} - - - EPS (Diluted) - {#each income as cash} - - {cash?.epsdiluted?.toFixed(2)} - {/each} - - - EBITDA - {#each income as cash} - - {abbreviateNumber(cash?.ebitda)} - {/each} - - - Depreciation & Amortization - {#each income as cash} - - {abbreviateNumber(cash?.depreciation)} - {/each} - +