This commit is contained in:
MuslemRahimi 2025-02-25 17:44:56 +01:00
parent c131dfd259
commit 5a63299a6c
9 changed files with 37 additions and 27 deletions

View File

@ -70,11 +70,11 @@
></path></svg ></path></svg
> >
</div> </div>
Realtime Options Data Realtime Options & Dark Pool Data
</dt> </dt>
<dd class="mt-2 text-base leading-7 text-white"> <dd class="mt-2 text-base leading-7 text-white">
Instant access to live options data to spot opportunities and Instant access to live options & dark pool data to spot
trade with precision before the market moves. opportunities and trade with precision before the market moves.
</dd> </dd>
</div> </div>

View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

View File

@ -1,5 +1,6 @@
<script lang="ts"> <script lang="ts">
import cardBackground from "$lib/images/bg-hedge-funds.png"; import cardBackground from "$lib/images/bg-hedge-funds.png";
import defaultAvatar from "$lib/images/hedge-fund-avatar.png";
import { abbreviateNumber, formatString } from "$lib/utils"; import { abbreviateNumber, formatString } from "$lib/utils";
import { onMount } from "svelte"; import { onMount } from "svelte";
@ -7,8 +8,6 @@
export let data; export let data;
let cloudFrontUrl = import.meta.env.VITE_IMAGE_URL;
let rawData = data?.getAllHedgeFunds; let rawData = data?.getAllHedgeFunds;
let displayList = rawData?.slice(0, 20) ?? []; let displayList = rawData?.slice(0, 20) ?? [];
let filterQuery = ""; let filterQuery = "";
@ -155,7 +154,7 @@
<img <img
style="clip-path: circle(50%);" style="clip-path: circle(50%);"
class="rounded-full w-16" class="rounded-full w-16"
src={`${cloudFrontUrl}/assets/hedge_funds/default-avatar.png`} src={defaultAvatar}
loading="lazy" loading="lazy"
/> />
</div> </div>

View File

@ -1,9 +1,11 @@
<script lang="ts"> <script lang="ts">
import { numberOfUnreadNotification } from "$lib/store";
import { formatString, sectorNavigation, abbreviateNumber } from "$lib/utils"; import { formatString, sectorNavigation, abbreviateNumber } from "$lib/utils";
import Table from "$lib/components/Table/Table.svelte"; import Table from "$lib/components/Table/Table.svelte";
import UpgradeToPro from "$lib/components/UpgradeToPro.svelte"; import UpgradeToPro from "$lib/components/UpgradeToPro.svelte";
import SEO from "$lib/components/SEO.svelte"; import SEO from "$lib/components/SEO.svelte";
import cardBackground from "$lib/images/bg-hedge-funds.png";
import defaultAvatar from "$lib/images/hedge-fund-avatar.png";
export let data; export let data;
@ -71,19 +73,17 @@
<div <div
class="flex space-x-3 border-b-[2px] border-below-title pb-3 lg:border-none lg:pb-0" class="flex space-x-3 border-b-[2px] border-below-title pb-3 lg:border-none lg:pb-0"
> >
<div class="flex-shrink-0"> <div
<svg class=" sm:-mt-3 shadow-lg rounded-full border border-slate-600 w-14 h-14 sm:w-20 sm:h-20 relative hedge-fund-striped bg-[#20202E] flex items-center justify-center"
class="h-16 w-16 sm:h-20 sm:w-20 text-gray-200" >
fill="currentColor" <img
viewBox="0 0 24 24" style="clip-path: circle(50%);"
style="max-width:100px" class="rounded-full w-10 sm:w-16"
><path src={defaultAvatar}
fill-rule="evenodd" loading="lazy"
d="M18.685 19.097A9.723 9.723 0 0021.75 12c0-5.385-4.365-9.75-9.75-9.75S2.25 6.615 2.25 12a9.723 9.723 0 003.065 7.097A9.716 9.716 0 0012 21.75a9.716 9.716 0 006.685-2.653zm-12.54-1.285A7.486 7.486 0 0112 15a7.486 7.486 0 015.855 2.812A8.224 8.224 0 0112 20.25a8.224 8.224 0 01-5.855-2.438zM15.75 9a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z" />
clip-rule="evenodd"
></path></svg
>
</div> </div>
<div class="mt-0 pt-0.5 text-left"> <div class="mt-0 pt-0.5 text-left">
<h1 class="mb-0 text-2xl font-bold text-white"> <h1 class="mb-0 text-2xl font-bold text-white">
{formatString(companyName)} {formatString(companyName)}
@ -219,3 +219,15 @@
</div> </div>
</div> </div>
</section> </section>
<style>
.hedge-fund-striped {
background-image: repeating-linear-gradient(
-45deg,
#a77120,
#a77120 10px,
#90621c 10px,
#90621c 20px
);
}
</style>

View File

@ -12,14 +12,13 @@ export const load = async ({ locals }) => {
let output = await response?.json(); let output = await response?.json();
if (user?.tier !== "Pro") { if (user?.tier !== "Pro") {
Object.keys(output.topPosNetPremium).forEach(ticker => { for (const ticker in output.topPosNetPremium ?? {}) {
output.topPosNetPremium[ticker] = output.topPosNetPremium[ticker].slice(0, 3); output.topPosNetPremium[ticker] = output.topPosNetPremium[ticker].slice(0, 3);
}); }
for (const ticker in output.topNegNetPremium ?? {}) {
Object.keys(output.topNegNetPremium).forEach(ticker => { output.topNegNetPremium[ticker] = output.topNegNetPremium[ticker].slice(0, 3);
output.topNegNetPremium[ticker] = output.topNegNetPremium[ticker].slice(0, 3); }
}); }
}
return output; return output;
}; };