From a03927bf5a6e79e2f4cddc9f38b207492049abc4 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Thu, 13 Jun 2024 12:32:07 +0200 Subject: [PATCH] ui fixes --- src/routes/+layout.svelte | 10 +- src/routes/+page.svelte | 34 +- src/routes/hedge-funds/+page.svelte | 2 - src/routes/hedge-funds/+page.ts | 12 +- src/routes/hedge-funds/[slug]/+page.ts | 12 +- src/routes/politicians/+page.ts | 42 +- src/routes/politicians/[slug]/+page.svelte | 1270 ++++++++++---------- 7 files changed, 711 insertions(+), 671 deletions(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index a9ed20ad..41f8f189 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -566,7 +566,15 @@ class="fixed 2xl:block top-0 left-0 xl:left-auto w-56 sm:{collapse ? 'w-20' : 'w
  • showSidebar = !showSidebar} class="mb-1 last:mb-0 hover:bg-[#272727] rounded-md {$page.url.pathname=== '/analysts/top-stocks' ? 'text-white bg-[#272727] xl:bg-[#0F0F0F] rounded-md ' : ''}"> - Top Stocks + Top Analyst Stocks + + +
  • + +
  • showSidebar = !showSidebar} class="mb-1 last:mb-0 hover:bg-[#272727] rounded-md {$page.url.pathname=== '/analysts/top-stocks' ? 'text-white bg-[#272727] xl:bg-[#0F0F0F] rounded-md ' : ''}"> + + + Most Shorted Stocks
  • diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 136c4a37..9a91fd6e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -7,7 +7,8 @@ import InfoModal from '$lib/components/InfoModal.svelte'; import nancyPelosiProfile from '$lib/images/senator/Nancy_Pelosi.png'; import warrenBuffetProfile from '$lib/images/hedge_funds/0001067983.png'; - import michaelBurryProfile from '$lib/images/hedge_funds/0001649339.png'; + //import michaelBurryProfile from '$lib/images/hedge_funds/0001649339.png'; + import analystAvatar from '$lib/images/hedge_funds/default-avatar.png'; import { screenWidth, numberOfUnreadNotification} from '$lib/store'; @@ -164,7 +165,7 @@ onMount( async() => {
    - + @@ -235,7 +237,7 @@ onMount( async() => {
    {/if} - + + @@ -852,5 +867,16 @@ onMount( async() => { ); } +.analyst-striped { + background-image: repeating-linear-gradient( + -45deg, + #737D62, + #737D62 10px, + #677058 10px, + #677058 20px + ); +} + + \ No newline at end of file diff --git a/src/routes/hedge-funds/+page.svelte b/src/routes/hedge-funds/+page.svelte index 7d149cae..4cbb2a1e 100644 --- a/src/routes/hedge-funds/+page.svelte +++ b/src/routes/hedge-funds/+page.svelte @@ -1,11 +1,9 @@ - - - - - - - {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ''} Which stocks is {name} trading? · stocknear - - - - - - - - - - - - - - - - - - - - - -
    - - - - -
    - -
    -
    - - - - -
    - - {#if isLoaded && Object?.keys(optionsData)?.length !== 0} -
    - -
    - - Trade Amount by Year -
    -
    - -
    - -
    -
    - - - - Bought - -
    -
    - - - - Sold - -
    - - -
    - - -
    - {/if} -
    -
    - - - {#if rawData?.length !== 0} -
    +
    +
    + +
    - + + + +
    - - - - - + + \ No newline at end of file + .other-striped { + background-image: repeating-linear-gradient( + -45deg, + #A4A6A8, + #A4A6A8 10px, + #C0C3C5 10px, + #C0C3C5 20px + ); + } + \ No newline at end of file