diff --git a/src/app/MockData/MockData.ts b/src/app/MockData/MockData.ts
index 75d4b5d..04b9146 100644
--- a/src/app/MockData/MockData.ts
+++ b/src/app/MockData/MockData.ts
@@ -680,3 +680,54 @@ export const heatmapData = {
},
],
};
+
+export type newsDataType = {
+ headline: string;
+ subtitle: string;
+ dateTime: string;
+ outlet: string;
+ outletLogo: string;
+};
+
+export const newsData = [
+ {
+ "headline": "Tesla reports 0-60 under 1s available in latest Roadster",
+ "subtitle":
+ "Tesla CEO Elon Musk announced his latest engineering goals for the long awaited Roadster refresh. The new Roadster will be a collaboration between Musk's Tesla and SpaceX.",
+ "dateTime": "2024-02-27T11:30:59.123Z",
+ "outlet": "Bloomberg",
+ "outletLogo": "https://logo.here/bloomberg",
+ },
+ {
+ "headline": "Tesla reports 0-60 under 1s available in latest Roadster",
+ "subtitle":
+ "Tesla CEO Elon Musk announced his latest engineering goals for the long awaited Roadster refresh. The new Roadster will be a collaboration between Musk's Tesla and SpaceX.",
+ "dateTime": "2024-02-27T11:30:59.123Z",
+ "outlet": "Bloomberg",
+ "outletLogo": "https://logo.here/bloomberg",
+ },
+ {
+ "headline": "Tesla reports 0-60 under 1s available in latest Roadster",
+ "subtitle":
+ "Tesla CEO Elon Musk announced his latest engineering goals for the long awaited Roadster refresh. The new Roadster will be a collaboration between Musk's Tesla and SpaceX.",
+ "dateTime": "2024-02-27T11:30:59.123Z",
+ "outlet": "Bloomberg",
+ "outletLogo": "https://logo.here/bloomberg",
+ },
+ {
+ "headline": "Tesla reports 0-60 under 1s available in latest Roadster",
+ "subtitle":
+ "Tesla CEO Elon Musk announced his latest engineering goals for the long awaited Roadster refresh. The new Roadster will be a collaboration between Musk's Tesla and SpaceX.",
+ "dateTime": "2024-02-27T11:30:59.123Z",
+ "outlet": "Bloomberg",
+ "outletLogo": "https://logo.here/bloomberg",
+ },
+ {
+ "headline": "Tesla reports 0-60 under 1s available in latest Roadster",
+ "subtitle":
+ "Tesla CEO Elon Musk announced his latest engineering goals for the long awaited Roadster refresh. The new Roadster will be a collaboration between Musk's Tesla and SpaceX.",
+ "dateTime": "2024-02-27T11:30:59.123Z",
+ "outlet": "Bloomberg",
+ "outletLogo": "https://logo.here/bloomberg",
+ },
+];
diff --git a/src/components/charts/NewsTable.tsx b/src/components/charts/NewsTable.tsx
new file mode 100644
index 0000000..149492f
--- /dev/null
+++ b/src/components/charts/NewsTable.tsx
@@ -0,0 +1,7 @@
+import React from "react";
+
+const NewsTable = () => {
+ return
NewsTable
;
+};
+
+export default NewsTable;
diff --git a/src/components/charts/PortfolioChart.tsx b/src/components/charts/PortfolioChart.tsx
index 916ebb3..1461d76 100644
--- a/src/components/charts/PortfolioChart.tsx
+++ b/src/components/charts/PortfolioChart.tsx
@@ -30,7 +30,7 @@ const PortfolioChart = (props: any) => {
textColor,
},
width: chartContainerRef.current.clientWidth * 0.95,
- height: 300,
+ height: chartContainerRef.current.clientHeight * 0.95,
grid: {
vertLines: {
visible: false,
@@ -59,7 +59,11 @@ const PortfolioChart = (props: any) => {
}, [data, backgroundColor, portfolioLineColor, indexLineColor, textColor]);
return (
-
+
);
};
diff --git a/src/components/grid/HomePageGrid.tsx b/src/components/grid/HomePageGrid.tsx
index d2a71e8..1e80102 100644
--- a/src/components/grid/HomePageGrid.tsx
+++ b/src/components/grid/HomePageGrid.tsx
@@ -24,10 +24,10 @@ function HomePageGrid() {
-
+
-
+
diff --git a/src/components/modules/HomepageModuleCard.tsx b/src/components/modules/HomepageModuleCard.tsx
index ec42640..35ad51d 100644
--- a/src/components/modules/HomepageModuleCard.tsx
+++ b/src/components/modules/HomepageModuleCard.tsx
@@ -12,11 +12,8 @@ const HomepageModule = ({ title, children }: HomepageModuleProps) => {
-
{children}
+
{children}
);
};
diff --git a/src/components/ui/table.tsx b/src/components/ui/table.tsx
new file mode 100644
index 0000000..7f3502f
--- /dev/null
+++ b/src/components/ui/table.tsx
@@ -0,0 +1,117 @@
+import * as React from "react"
+
+import { cn } from "@/lib/utils"
+
+const Table = React.forwardRef<
+ HTMLTableElement,
+ React.HTMLAttributes
+>(({ className, ...props }, ref) => (
+
+))
+Table.displayName = "Table"
+
+const TableHeader = React.forwardRef<
+ HTMLTableSectionElement,
+ React.HTMLAttributes
+>(({ className, ...props }, ref) => (
+
+))
+TableHeader.displayName = "TableHeader"
+
+const TableBody = React.forwardRef<
+ HTMLTableSectionElement,
+ React.HTMLAttributes
+>(({ className, ...props }, ref) => (
+
+))
+TableBody.displayName = "TableBody"
+
+const TableFooter = React.forwardRef<
+ HTMLTableSectionElement,
+ React.HTMLAttributes
+>(({ className, ...props }, ref) => (
+ tr]:last:border-b-0",
+ className
+ )}
+ {...props}
+ />
+))
+TableFooter.displayName = "TableFooter"
+
+const TableRow = React.forwardRef<
+ HTMLTableRowElement,
+ React.HTMLAttributes
+>(({ className, ...props }, ref) => (
+
+))
+TableRow.displayName = "TableRow"
+
+const TableHead = React.forwardRef<
+ HTMLTableCellElement,
+ React.ThHTMLAttributes
+>(({ className, ...props }, ref) => (
+ |
+))
+TableHead.displayName = "TableHead"
+
+const TableCell = React.forwardRef<
+ HTMLTableCellElement,
+ React.TdHTMLAttributes
+>(({ className, ...props }, ref) => (
+ |
+))
+TableCell.displayName = "TableCell"
+
+const TableCaption = React.forwardRef<
+ HTMLTableCaptionElement,
+ React.HTMLAttributes
+>(({ className, ...props }, ref) => (
+
+))
+TableCaption.displayName = "TableCaption"
+
+export {
+ Table,
+ TableHeader,
+ TableBody,
+ TableFooter,
+ TableHead,
+ TableRow,
+ TableCell,
+ TableCaption,
+}