+
All US Politicians
-
+
-
-
+
{item?.representative}
-
+
{item?.party ?? "n/a"}
{#if item?.district !== undefined && item?.district?.length !== 0}
/ {item?.district}
@@ -312,18 +312,18 @@
-
+
{item?.lastTrade?.length !== undefined
? new Date(item?.lastTrade)?.toLocaleString(
"en-US",
@@ -336,7 +336,7 @@
)
: "n/a"}
- Last Traded
diff --git a/src/routes/politicians/[slug]/+page.svelte b/src/routes/politicians/[slug]/+page.svelte
index fb836842..5bcf832c 100644
--- a/src/routes/politicians/[slug]/+page.svelte
+++ b/src/routes/politicians/[slug]/+page.svelte
@@ -152,10 +152,12 @@
-
+
{formatString(name)}
-
+
{politicianParty ?? "n/a"} / {politicianCongress}
{#if politicianDistrict !== undefined && politicianDistrict?.length !== 0}
/ {politicianDistrict}
@@ -164,41 +166,39 @@
-
+
${new Intl.NumberFormat("en", {
minimumFractionDigits: 0,
maximumFractionDigits: 0,
}).format(totalAmountTraded)}
-
+
Total Amount
-
+
{numOfTrades?.toLocaleString("en-US")}
-
+
Transaction
-
+
{lastTradedDate?.length !== undefined
? new Date(lastTradedDate)?.toLocaleString("en-US", {
month: "short",
@@ -208,19 +208,21 @@
})
: "n/a"}
-
+
Last Transaction
-
+
{buySellRatio?.toFixed(2)}
-
+
Buy/Sell
@@ -228,9 +230,9 @@
{#if mainSectors?.length !== 0}
-
+
Main Sectors:
@@ -240,7 +242,7 @@
href={sectorNavigation?.find(
(listItem) => listItem?.title === item,
)?.link}
- class="px-3 text-sm py-1 sm:text-[1rem] rounded-md bg-white/10 sm:hover:bg-white/20 ml-0"
+ class="inline-block badge bg-blue-50 dark:bg-primary duration-0 rounded-sm ml-1 px-3 m-auto text-blue-600 dark:text-blue-400 dark:sm:hover:text-white sm:hover:text-muted text-[1rem]"
>
{item}
@@ -255,7 +257,7 @@
{#each mainIndustries as item}
{item}
@@ -266,60 +268,36 @@
{/if}
- Trading History
+ Trading History
-
-
+
+
-
- Symbol
-
-
- Name
-
-
+ Symbol
+ Name
+
Transaction Type
-
- Amount
-
-
+ Amount
+
Transaction
-
- Last Trade
-
-
- Filed
-
+ Last Trade
+ Filed
{#each tableData as item}
+
{formatString(name)}
-
+
{politicianParty ?? "n/a"} / {politicianCongress} {#if politicianDistrict !== undefined && politicianDistrict?.length !== 0} / {politicianDistrict} @@ -164,41 +166,39 @@
Trading History
+Trading History
| - | - Symbol - | -- Name - | -+ | Symbol | +Name | +Transaction Type | -- Amount - | -+ | Amount | +Transaction | -- Last Trade - | -- Filed - | +Last Trade | +Filed |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|