Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/pages/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import {TrendingUp} from "lucide-react";

function Landing() {
return (
<div className={"w-screen h-screen bg-neutral-100"}>
<div className={"w-screen min-h-screen bg-neutral-100"}>
<div
className={"w-[80%] max-w-[1200px] min-w-[200px] mx-auto h-screen flex flex-row items-center justify-center gap-5"}>
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"}>
<div className={"flex-1"}>
<Jumbotron/>
</div>
Expand Down Expand Up @@ -66,7 +66,7 @@ function KeyFeatures() {

return (
<>
<div className={"grid grid-cols-2 gap-5"}>
<div className={"grid grid-cols-1 sm:grid-cols-2 gap-5"}>
{cards.map((card) => (
<Card className={"bg-white shadow-none"}>
<CardHeader>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/webapp/Alerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function RecentAlerts() {
const asset = getAsset(alert.assetId);
return (
<Card className={"shadow-none"}>
<div className={"flex flex-row gap-4 items-center px-5"}>
<div className={"flex flex-row gap-4 items-center px-5 flex-wrap"}>
<div className={`rounded-xl ${
alert.type === "BUY"
? "text-green-700 border-green-700/20"
Expand Down
6 changes: 3 additions & 3 deletions src/pages/webapp/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ const decisionHttpService = new DecisionHttpService();

function Dashboard() {
return (
<div className={"flex flex-row gap-5"}>
<div className={"flex-2"}>
<div className={"flex flex-col lg:flex-row gap-5"}>
<div className={"lg:flex-2"}>
<Portfolio/>
</div>
<div className={"flex-1"}>
<div className={"lg:flex-1"}>
<Summary/>
</div>
</div>
Expand Down
63 changes: 31 additions & 32 deletions src/pages/webapp/News.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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 (
<Card className={"shadow-none"}>
<div className={"flex flex-row gap-4 items-center px-5"}>
<div className={"rounded-xl bg-neutral-100 w-fit box-border p-3 border"}>
<NewspaperIcon className={"size-6"}/>
<a href={url} target={"_blank"}>
<Card className={"shadow-none hover:bg-neutral-50"}>
<div className={"flex flex-row gap-4 items-center px-5 flex-wrap"}>
<div className={"rounded-xl bg-neutral-100 w-fit box-border p-3 border"}>
<NewspaperIcon className={"size-6"}/>
</div>
<div className={"flex-1"}>
<p>
{uniqueAssets.map(asset => (
<Badge variant="outline" className={"mr-1"} key={asset.assetId}>
<span className={'text-neutral-400'}>{asset.mic}</span>
<span className="ps-0.5 font-medium">{asset.ticker}</span>
</Badge>
))}
</p>
<p className={"font-light-500 pt-1"}>{newsItems[0].title}</p>
</div>
<div className={"text-neutral-500"}>
<small>{newsItems[0].date.toLocaleString('en-US', {
year: 'numeric',
month: 'long',
day: 'numeric',
hour: 'numeric',
minute: '2-digit',
second: '2-digit',
hour12: true,
})}</small>
</div>
</div>
<div className={"flex-1"}>
<p>
{uniqueAssets.map(asset => (
<Badge variant="outline" className={"mr-1"} key={asset.assetId}>
<span className={'text-neutral-400'}>{asset.mic}</span>
<span className="ps-0.5 font-medium">{asset.ticker}</span>
</Badge>
))}
</p>
<p className={"font-light-500 pt-1"}>{newsItems[0].title}</p>
</div>
<div className={"text-neutral-500"}>
<small>{newsItems[0].date.toLocaleString('en-US', {
year: 'numeric',
month: 'long',
day: 'numeric',
hour: 'numeric',
minute: '2-digit',
second: '2-digit',
hour12: true,
})}</small>
</div>
<div>
<a href={url} target={"_blank"}><ArrowTopRightOnSquareIcon className={"size-6"}/></a>
</div>
</div>
</Card>
</Card>
</a>
)
})}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/webapp/WebAppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function WebAppLayout() {

return (
<div className={"w-[80%] max-w-[1200px] min-w-[200px] mx-auto"}>
<div className={"flex justify-between flex-row my-6"}>
<div className={"flex justify-between flex-col gap-5 sm:flex-row sm:gap-0 my-6"}>
<Link className={"flex flex-row items-center gap-2 text-xl font-medium text-neutral-600"} to={"/dashboard"}>
{location.pathname !== "/dashboard" && <ChevronLeftIcon className={"size-6"} />}
AutoInvestor
Expand Down
Loading