From 2c3c638fe9c0d2b8ecdb7681a6170ed396f4e265 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sat, 5 Apr 2025 12:44:32 +0200 Subject: [PATCH] ui fix --- src/routes/etf/+page.svelte | 2 +- src/routes/options-calculator/+page.svelte | 1235 ++++---------------- src/routes/potus-tracker/+page.svelte | 2 +- 3 files changed, 212 insertions(+), 1027 deletions(-) diff --git a/src/routes/etf/+page.svelte b/src/routes/etf/+page.svelte index 5f4cea1c..297dd866 100644 --- a/src/routes/etf/+page.svelte +++ b/src/routes/etf/+page.svelte @@ -30,7 +30,7 @@ class="relative flex justify-center items-start overflow-hidden w-full" >
-
+

All ETF Symbols

List of all {rawData?.length} ETF symbols we support diff --git a/src/routes/options-calculator/+page.svelte b/src/routes/options-calculator/+page.svelte index e90c2643..4dcdc433 100644 --- a/src/routes/options-calculator/+page.svelte +++ b/src/routes/options-calculator/+page.svelte @@ -1,336 +1,35 @@ @@ -340,7 +39,7 @@

@@ -352,574 +51,208 @@ class="relative flex flex-row justify-center items-start overflow-hidden w-full" >
-
-
-

POTUS Tracker

+
+
+

+ Options Calculator +

-
-
- = 0 ? "grown" : "declined"} by = 0 ? "text-green-800 dark:text-[#00FC50] before:content-['+']" : "text-red-800 dark:text-[#FF2F1F]"}"> - ${data?.getData?.marketPerformance[sectorDict[selectedSector]]["Inauguration"] ?? "n/a"}%.`} - /> -
- -
-
- - - - - - - Select Sector - - - - {#each updatedSectorList as sector} - {#if sector === "S&P500" || ["Pro", "Plus"]?.includes(data?.user?.tier)} - (selectedSector = sector)} - class="cursor-pointer sm:hover:bg-gray-200 dark:sm:hover:bg-primary" - > - {sector} - - {:else} - goto("/pricing")} - class="cursor-pointer sm:hover:bg-gray-200 dark:sm:hover:bg-primary" - > - {sector} - - - - - - {/if} - {/each} - - - -
-
- -
- - - - {#if activeIdx === 0} -

- Official Presidential Schedule -

-
-
- {#each Object?.entries(groupedByDate) as [date, items], indexA} -
-
- - {date} - {#if items?.at(0)?.changesPercentage} -
- S&P500 - {items.length > 0 - ? items?.at(0)?.changesPercentage - : "n/a"}% -
- {/if} -
- -
- {#each items as item, indexB} -
-
-
- - - - - - - - - {#if indexA === 0 && indexB === 0} - - {/if} -
- - - {item.time_formatted} - {item.location !== null - ? `- ${item?.location}` - : ""} - -
- - - {item.details} - -
- {/each} -
- {/each} -
-
- {:else if activeIdx === 1} -

- Executive Actions -

-
-
- {#each Object.entries(groupedOrders) as [date, items], indexA} -
-
- {date} - {#if latestInfoDate(date)} - - {/if} -
-
- - {#each items as item, indexB} - -
- -
- - Trump Image - - -
-

- Donald J. Trump -

-

-
- {item?.title} - -
- {item?.sentiment} -
-
-

-
-
- - -
- - {item?.description?.length > 300 - ? item?.description?.slice(0, 300) + "..." - : item?.description} - -
- -
- - -
- - - - - - -
-
- {/each} -
- {/each} -
-
- {:else if activeIdx === 2} -
- +
+ {#each strategies as strategy} +
(selectedStrategy = strategy?.name)} + class="{selectedStrategy === strategy?.name + ? 'bg-blue-100' + : ''} flex items-center space-x-2 border rounded-full px-3 py-1 text-sm font-medium border border-gray-300 cursor-pointer sm:hover:bg-blue-100 ease-out transition" > -

- Truth Social Posts -

-
+ {strategy.name} + {#if strategy?.sentiment} + ({strategy.sentiment}) + {/if} +
+ {/each} +
+
+

Long Call

+

+ In a long call strategy, an investor buys a call option, + anticipating that the price of the underlying asset will increase + and generate a profit from the option's higher value. Investors + typically use a long call strategy when they have a bullish + outlook on the stock. +

-
-
- {#each posts as item, index} -
-
- - Trump Image - + - -

- {item?.content?.length > 400 - ? item?.content?.slice(0, 400) + "..." - : item?.content} -

- -
+
+ + + + + + + + + + + + + + + + + + + + + +
- {item?.date} - -
- +
+ + + + + + + + + + + + + + + + + + + + +
- {/if} -
- -
@@ -927,151 +260,3 @@
- - - - - - - - - - - - - - - - diff --git a/src/routes/potus-tracker/+page.svelte b/src/routes/potus-tracker/+page.svelte index e90c2643..c0bce371 100644 --- a/src/routes/potus-tracker/+page.svelte +++ b/src/routes/potus-tracker/+page.svelte @@ -353,7 +353,7 @@ >
-
+

POTUS Tracker