From 552e7288ea72a91759a90046faa8db1fcc23ad2b Mon Sep 17 00:00:00 2001 From: alvaromaoc Date: Tue, 3 Jun 2025 11:25:58 +0200 Subject: [PATCH] First iteration cool UI (responsive) --- src/pages/Landing.tsx | 6 +-- src/pages/webapp/Alerts.tsx | 2 +- src/pages/webapp/Dashboard.tsx | 6 +-- src/pages/webapp/News.tsx | 63 +++++++++++++++---------------- src/pages/webapp/WebAppLayout.tsx | 2 +- 5 files changed, 39 insertions(+), 40 deletions(-) diff --git a/src/pages/Landing.tsx b/src/pages/Landing.tsx index 45496c7..ad44550 100644 --- a/src/pages/Landing.tsx +++ b/src/pages/Landing.tsx @@ -16,9 +16,9 @@ import {TrendingUp} from "lucide-react"; function Landing() { return ( -
+
+ className={"w-[80%] max-w-[1200px] min-w-[200px] mx-auto min-h-screen flex flex-col py-24 lg:py-0 lg:flex-row lg:items-center lg:justify-center gap-5"}>
@@ -66,7 +66,7 @@ function KeyFeatures() { return ( <> -
+
{cards.map((card) => ( diff --git a/src/pages/webapp/Alerts.tsx b/src/pages/webapp/Alerts.tsx index 21e409b..3daf478 100644 --- a/src/pages/webapp/Alerts.tsx +++ b/src/pages/webapp/Alerts.tsx @@ -50,7 +50,7 @@ function RecentAlerts() { const asset = getAsset(alert.assetId); return ( -
+
-
+
+
-
+
diff --git a/src/pages/webapp/News.tsx b/src/pages/webapp/News.tsx index 6a44d91..cf65708 100644 --- a/src/pages/webapp/News.tsx +++ b/src/pages/webapp/News.tsx @@ -1,5 +1,5 @@ import {useEffect, useState} from "react"; -import {ArrowTopRightOnSquareIcon, NewspaperIcon} from "@heroicons/react/16/solid"; +import {NewspaperIcon} from "@heroicons/react/16/solid"; import {NewsHttpService} from "@/services/news-http-service.ts"; import {NewsItem} from "@/model/NewsItem.ts"; import {AssetsHttpService} from "@/services/assets-http-service.ts"; @@ -63,38 +63,37 @@ function RecentNews() { const assets = newsItems.map(item => getAsset(item.assetId)); const uniqueAssets = Array.from(new Map(assets.map(item => [item.assetId, item])).values()); return ( - - diff --git a/src/pages/webapp/WebAppLayout.tsx b/src/pages/webapp/WebAppLayout.tsx index bba27b9..7c1f737 100644 --- a/src/pages/webapp/WebAppLayout.tsx +++ b/src/pages/webapp/WebAppLayout.tsx @@ -9,7 +9,7 @@ function WebAppLayout() { return (
-
+
{location.pathname !== "/dashboard" && } AutoInvestor