diff --git a/src/routes/dividends-calendar/+page.svelte b/src/routes/dividends-calendar/+page.svelte index 80650432..0bb70490 100644 --- a/src/routes/dividends-calendar/+page.svelte +++ b/src/routes/dividends-calendar/+page.svelte @@ -4,7 +4,6 @@ import { format, startOfWeek, addDays, addWeeks, subWeeks, differenceInWeeks } from 'date-fns' import { screenWidth, numberOfUnreadNotification } from '$lib/store'; import dividendsLogo from '$lib/images/dividends_calendar_logo.png'; - import ScrollToTop from '$lib/components/ScrollToTop.svelte'; import { goto } from '$app/navigation'; import { abbreviateNumber } from '$lib/utils'; @@ -251,18 +250,18 @@ $: { -
+
- + -
+
@@ -310,7 +309,7 @@ $: {
-
+
diff --git a/src/routes/earnings-calendar/+page.svelte b/src/routes/earnings-calendar/+page.svelte index ed204bff..ae65c4dc 100644 --- a/src/routes/earnings-calendar/+page.svelte +++ b/src/routes/earnings-calendar/+page.svelte @@ -4,7 +4,6 @@ import { format, startOfWeek, addDays, addWeeks, subWeeks, differenceInWeeks } from 'date-fns' import { screenWidth, numberOfUnreadNotification } from '$lib/store'; import logo from '$lib/images/earnings_calender_logo.png'; - import ScrollToTop from '$lib/components/ScrollToTop.svelte'; import { goto } from '$app/navigation'; import { abbreviateNumber } from '$lib/utils'; @@ -251,18 +250,18 @@ $: { -
+
- + -
+
@@ -308,7 +307,7 @@ $: {
-
+
@@ -393,10 +392,10 @@ $: { {#if item?.time === 'amc'} - After Close + After Close {:else} - Before Open + Before Open {/if} diff --git a/src/routes/ipos/+layout.svelte b/src/routes/ipos/+layout.svelte index b12015ec..7b2f08c9 100644 --- a/src/routes/ipos/+layout.svelte +++ b/src/routes/ipos/+layout.svelte @@ -74,8 +74,8 @@ $: { -
-
-
-
+
+
-
+
diff --git a/src/routes/ipos/+page.svelte b/src/routes/ipos/+page.svelte index 2e8b8c11..3a42f706 100644 --- a/src/routes/ipos/+page.svelte +++ b/src/routes/ipos/+page.svelte @@ -53,7 +53,7 @@ -
+
diff --git a/src/routes/ipos/[slug]/+page.svelte b/src/routes/ipos/[slug]/+page.svelte index ae6de922..f391fe70 100644 --- a/src/routes/ipos/[slug]/+page.svelte +++ b/src/routes/ipos/[slug]/+page.svelte @@ -99,13 +99,13 @@ $: { -
+
{#if isLoaded} -
+
@@ -139,16 +139,16 @@ $: { {#if rawData?.length !== 0} - {#if $screenWidth > 640} +
- - - - - - + + + + + + @@ -156,27 +156,21 @@ $: { goto("/stocks/"+item?.symbol)} class="sm:hover:bg-[#245073] sm:hover:bg-opacity-[0.2] odd:bg-[#27272A] border-b-[#09090B] shake-ticker cursor-pointer"> - - - - @@ -207,84 +201,7 @@ $: {
IPO DateNameIPO PriceCurrent PriceReturn SinceIPO DateSymbolNameIPO PriceCurrent PriceReturn Since
+ {new Date(item?.date)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' })} {item?.symbol} - -
-
- {item?.symbol} - {item?.name?.length > charNumber ? formatString(item?.name?.slice(0,charNumber)) + "..." : formatString(item?.name)} -
-
+
+ {item?.name?.length > charNumber ? formatString(item?.name?.slice(0,charNumber)) + "..." : formatString(item?.name)} + {item?.ipoPrice !== null ? '$'+item?.ipoPrice : '-'}
- {:else} - -
- {#each ipoList as item} -
-
- - -
- IPO Date - - {item?.date !== null ? new Date(item?.date)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' }) : '-'} - -
-
-
- -
-
- IPO Price - - {item?.ipoPrice !== null ? '$'+item?.ipoPrice : '-'} - -
- -
- Current Price - - {item?.currentPrice !== null ? '$'+item?.currentPrice : '-'} - -
-
- -
- - -
-
- Market Cap - - {item?.marketCap !== null && item?.marketCap !== 0 ? abbreviateNumber(item?.marketCap,true) : '-'} - -
- -
- Return Since - -
- {#if item?.return >=0 && item?.return !== null} - - +{abbreviateNumber(item?.return)}% - {:else if item?.return < 0 && item?.return !== null} - - {abbreviateNumber(item?.return)}% - {:else} - - - - - {/if} -
-
-
-
- - -
- {/each} - - - -
- - - {/if} - +
{:else}