diff --git a/src/app/MockData/MockData.ts b/src/app/MockData/MockData.ts
new file mode 100644
index 0000000..30d2039
--- /dev/null
+++ b/src/app/MockData/MockData.ts
@@ -0,0 +1,110 @@
+export const PortfolioData = [
+ {
+ "id": "japan",
+ "color": "hsl(173, 70%, 50%)",
+ "data": [
+ {
+ "x": "plane",
+ "y": 274,
+ },
+ {
+ "x": "helicopter",
+ "y": 197,
+ },
+ {
+ "x": "boat",
+ "y": 175,
+ },
+ {
+ "x": "train",
+ "y": 181,
+ },
+ {
+ "x": "subway",
+ "y": 54,
+ },
+ {
+ "x": "bus",
+ "y": 91,
+ },
+ {
+ "x": "car",
+ "y": 68,
+ },
+ {
+ "x": "moto",
+ "y": 244,
+ },
+ {
+ "x": "bicycle",
+ "y": 298,
+ },
+ {
+ "x": "horse",
+ "y": 286,
+ },
+ {
+ "x": "skateboard",
+ "y": 0,
+ },
+ {
+ "x": "others",
+ "y": 214,
+ },
+ ],
+ },
+ {
+ "id": "france",
+ "color": "hsl(346, 70%, 50%)",
+ "data": [
+ {
+ "x": "plane",
+ "y": 166,
+ },
+ {
+ "x": "helicopter",
+ "y": 147,
+ },
+ {
+ "x": "boat",
+ "y": 276,
+ },
+ {
+ "x": "train",
+ "y": 132,
+ },
+ {
+ "x": "subway",
+ "y": 165,
+ },
+ {
+ "x": "bus",
+ "y": 47,
+ },
+ {
+ "x": "car",
+ "y": 27,
+ },
+ {
+ "x": "moto",
+ "y": 40,
+ },
+ {
+ "x": "bicycle",
+ "y": 80,
+ },
+ {
+ "x": "horse",
+ "y": 274,
+ },
+ {
+ "x": "skateboard",
+ "y": 109,
+ },
+ {
+ "x": "others",
+ "y": 211,
+ },
+ ],
+ },
+];
diff --git a/src/components/grid/HomePageGrid.tsx b/src/components/grid/HomePageGrid.tsx
index 21ef887..0c90e83 100644
--- a/src/components/grid/HomePageGrid.tsx
+++ b/src/components/grid/HomePageGrid.tsx
@@ -1,21 +1,44 @@
import React from "react";
-import PortfolioChart from "../charts/PortfolioChart";
-import Portfolio from "../modules/Portfolio";
+import PortfolioModule from "../modules/PortfolioModule";
+import NewsModule from "../modules/NewsModule";
+import HeatmapModule from "../modules/HeadmapModule";
+import MarketsModule from "../modules/MarketsModule";
+import MoversModule from "../modules/MoversModule";
+import EarningsModule from "../modules/EarningsModule";
+import DocumentsModule from "../modules/DocumentsModule";
+import IndicatorsModule from "../modules/IndicatorsModule";
+import ForexAndBondsModule from "../modules/ForexAndBondsModule";
function HomePageGrid() {
return (
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
2
-
3
-
1
-
2
-
1
-
2
-
3
-
4
);
}
diff --git a/src/components/modules/DocumentsModule.tsx b/src/components/modules/DocumentsModule.tsx
new file mode 100644
index 0000000..21f8c22
--- /dev/null
+++ b/src/components/modules/DocumentsModule.tsx
@@ -0,0 +1,8 @@
+import React from "react";
+import HomepageModule from "./HomepageModule";
+
+const DocumentsModule = () => {
+ return
;
+};
+
+export default DocumentsModule;
diff --git a/src/components/modules/EarningsModule.tsx b/src/components/modules/EarningsModule.tsx
new file mode 100644
index 0000000..b895b11
--- /dev/null
+++ b/src/components/modules/EarningsModule.tsx
@@ -0,0 +1,8 @@
+import React from "react";
+import HomepageModule from "./HomepageModule";
+
+const EarningsModule = () => {
+ return
;
+};
+
+export default EarningsModule;
diff --git a/src/components/modules/ForexAndBondsModule.tsx b/src/components/modules/ForexAndBondsModule.tsx
new file mode 100644
index 0000000..69ab902
--- /dev/null
+++ b/src/components/modules/ForexAndBondsModule.tsx
@@ -0,0 +1,8 @@
+import React from "react";
+import HomepageModule from "./HomepageModule";
+
+const ForexAndBondsModule = () => {
+ return
;
+};
+
+export default ForexAndBondsModule;
diff --git a/src/components/modules/Headmap.tsx b/src/components/modules/Headmap.tsx
deleted file mode 100644
index e69de29..0000000
diff --git a/src/components/modules/HeadmapModule.tsx b/src/components/modules/HeadmapModule.tsx
new file mode 100644
index 0000000..4576695
--- /dev/null
+++ b/src/components/modules/HeadmapModule.tsx
@@ -0,0 +1,8 @@
+import React from "react";
+import HomepageModule from "./HomepageModule";
+
+const HeatmapModule = () => {
+ return
;
+};
+
+export default HeatmapModule;
diff --git a/src/components/modules/HomepageModule.tsx b/src/components/modules/HomepageModule.tsx
new file mode 100644
index 0000000..422ea66
--- /dev/null
+++ b/src/components/modules/HomepageModule.tsx
@@ -0,0 +1,24 @@
+import { Settings2Icon } from "lucide-react";
+import React, { ReactNode } from "react";
+import { Button } from "../ui/button";
+
+interface HomepageModuleProps {
+ title: string;
+ children?: ReactNode;
+}
+
+const HomepageModule = ({ title, children }: HomepageModuleProps) => {
+ return (
+
+ );
+};
+
+export default HomepageModule;
diff --git a/src/components/modules/IndicatorsModule.tsx b/src/components/modules/IndicatorsModule.tsx
new file mode 100644
index 0000000..d0baa48
--- /dev/null
+++ b/src/components/modules/IndicatorsModule.tsx
@@ -0,0 +1,8 @@
+import React from "react";
+import HomepageModule from "./HomepageModule";
+
+const IndicatorsModule = () => {
+ return
;
+};
+
+export default IndicatorsModule;
diff --git a/src/components/modules/MarketsModule.tsx b/src/components/modules/MarketsModule.tsx
new file mode 100644
index 0000000..2082d29
--- /dev/null
+++ b/src/components/modules/MarketsModule.tsx
@@ -0,0 +1,8 @@
+import React from "react";
+import HomepageModule from "./HomepageModule";
+
+const MarketsModule = () => {
+ return
;
+};
+
+export default MarketsModule;
diff --git a/src/components/modules/Module.tsx b/src/components/modules/Module.tsx
deleted file mode 100644
index dafe2e5..0000000
--- a/src/components/modules/Module.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import React from "react";
-
-interface ModuleProps {
- title: string;
-}
-
-function Module({ title }: ModuleProps) {
- return (
-
- );
-}
-
-export default Module;
diff --git a/src/components/modules/MoversModule.tsx b/src/components/modules/MoversModule.tsx
new file mode 100644
index 0000000..947129d
--- /dev/null
+++ b/src/components/modules/MoversModule.tsx
@@ -0,0 +1,8 @@
+import React from "react";
+import HomepageModule from "./HomepageModule";
+
+const MoversModule = () => {
+ return
;
+};
+
+export default MoversModule;
diff --git a/src/components/modules/NewsModule.tsx b/src/components/modules/NewsModule.tsx
new file mode 100644
index 0000000..7ecdb1b
--- /dev/null
+++ b/src/components/modules/NewsModule.tsx
@@ -0,0 +1,8 @@
+import React from "react";
+import HomepageModule from "./HomepageModule";
+
+const NewsModule = () => {
+ return
;
+};
+
+export default NewsModule;
diff --git a/src/components/modules/Portfolio.tsx b/src/components/modules/Portfolio.tsx
deleted file mode 100644
index 1236ca7..0000000
--- a/src/components/modules/Portfolio.tsx
+++ /dev/null
@@ -1,123 +0,0 @@
-import React from "react";
-import PortfolioChart from "../charts/PortfolioChart";
-import Module from "./Module";
-
-function Portfolio() {
- const data = [
- {
- "id": "japan",
- "color": "hsl(173, 70%, 50%)",
- "data": [
- {
- "x": "plane",
- "y": 274,
- },
- {
- "x": "helicopter",
- "y": 197,
- },
- {
- "x": "boat",
- "y": 175,
- },
- {
- "x": "train",
- "y": 181,
- },
- {
- "x": "subway",
- "y": 54,
- },
- {
- "x": "bus",
- "y": 91,
- },
- {
- "x": "car",
- "y": 68,
- },
- {
- "x": "moto",
- "y": 244,
- },
- {
- "x": "bicycle",
- "y": 298,
- },
- {
- "x": "horse",
- "y": 286,
- },
- {
- "x": "skateboard",
- "y": 0,
- },
- {
- "x": "others",
- "y": 214,
- },
- ],
- },
- {
- "id": "france",
- "color": "hsl(346, 70%, 50%)",
- "data": [
- {
- "x": "plane",
- "y": 166,
- },
- {
- "x": "helicopter",
- "y": 147,
- },
- {
- "x": "boat",
- "y": 276,
- },
- {
- "x": "train",
- "y": 132,
- },
- {
- "x": "subway",
- "y": 165,
- },
- {
- "x": "bus",
- "y": 47,
- },
- {
- "x": "car",
- "y": 27,
- },
- {
- "x": "moto",
- "y": 40,
- },
- {
- "x": "bicycle",
- "y": 80,
- },
- {
- "x": "horse",
- "y": 274,
- },
- {
- "x": "skateboard",
- "y": 109,
- },
- {
- "x": "others",
- "y": 211,
- },
- ],
- },
- ];
-
- return (
- // ADD MODULE
-
- );
-}
-
-export default Portfolio;
diff --git a/src/components/modules/PortfolioModule.tsx b/src/components/modules/PortfolioModule.tsx
new file mode 100644
index 0000000..f9cb782
--- /dev/null
+++ b/src/components/modules/PortfolioModule.tsx
@@ -0,0 +1,15 @@
+import React from "react";
+import PortfolioChart from "../charts/PortfolioChart";
+import HomepageModule from "./HomepageModule";
+
+import { PortfolioData } from "@/app/MockData/MockData";
+
+const PortfolioModule = () => {
+ return (
+
+
+
+ );
+};
+
+export default PortfolioModule;
diff --git a/src/components/nav/NavPages.tsx b/src/components/nav/NavPages.tsx
index 8aa7793..47b5b70 100644
--- a/src/components/nav/NavPages.tsx
+++ b/src/components/nav/NavPages.tsx
@@ -1,21 +1,20 @@
import React from "react";
import { Button } from "../ui/button";
-import { link } from "fs";
-function NavPages() {
+const NavPages = () => {
return (
-
);
-}
+};
export default NavPages;
diff --git a/src/components/nav/Navbar.tsx b/src/components/nav/Navbar.tsx
index 4aa3884..3de6651 100644
--- a/src/components/nav/Navbar.tsx
+++ b/src/components/nav/Navbar.tsx
@@ -4,7 +4,7 @@ import NavbarSearch from "./NavbarSearch";
import { Circle, icons } from "lucide-react";
import NavPages from "./NavPages";
-function Navbar() {
+const Navbar = () => {
return (
@@ -22,6 +22,6 @@ function Navbar() {
);
-}
+};
export default Navbar;
diff --git a/src/components/nav/NavbarSearch.tsx b/src/components/nav/NavbarSearch.tsx
index 9208ccc..4e848ba 100644
--- a/src/components/nav/NavbarSearch.tsx
+++ b/src/components/nav/NavbarSearch.tsx
@@ -3,7 +3,7 @@ import { Input } from "../ui/input";
import { Button } from "../ui/button";
import { Search } from "lucide-react";
-function NavbarSearch() {
+const NavbarSearch = () => {
return (
@@ -20,6 +20,6 @@ function NavbarSearch() {
);
-}
+};
export default NavbarSearch;