diff --git a/cyclops-ui/src/components/pages/EditModule/EditModule.tsx b/cyclops-ui/src/components/pages/EditModule/EditModule.tsx index ed58003c..5d8ffdc5 100644 --- a/cyclops-ui/src/components/pages/EditModule/EditModule.tsx +++ b/cyclops-ui/src/components/pages/EditModule/EditModule.tsx @@ -415,7 +415,9 @@ const EditModule = () => { {contextHolder} - {moduleName} + + <span style={{ color: "#888" }}>Edit module</span> {moduleName} + diff --git a/cyclops-ui/src/components/pages/Modules/Modules.tsx b/cyclops-ui/src/components/pages/Modules/Modules.tsx index c31aff0a..6274f97a 100644 --- a/cyclops-ui/src/components/pages/Modules/Modules.tsx +++ b/cyclops-ui/src/components/pages/Modules/Modules.tsx @@ -153,11 +153,40 @@ const Modules = () => { if (filteredData.length === 0) { return (
+ + + + + + + +

Add new module

+
+
+
+
); } - return filteredData.map((module: any, index) => ( + + let moduleCards = filteredData.map((module: any, index) => ( { )); + + moduleCards.push( + + + + + + + +

Add new module

+
+
+
+ , + ); + + return moduleCards; }; return ( diff --git a/cyclops-ui/src/components/pages/Modules/styles.module.css b/cyclops-ui/src/components/pages/Modules/styles.module.css index f4158cf1..99299c8f 100644 --- a/cyclops-ui/src/components/pages/Modules/styles.module.css +++ b/cyclops-ui/src/components/pages/Modules/styles.module.css @@ -5,3 +5,23 @@ .modulecard:hover { transform: scale(1.05); } + +.addmodulecard { + transition: + transform 0.2s, + color 0.2s; + border: 2px dashed #d3d3d3; + width: 100%; + height: 100%; + max-width: 500px; + display: flex; + justify-content: center; + align-items: center; + color: #888; +} + +.addmodulecard:hover { + transform: scale(1.05); + border-color: #fe8801; + color: #fe8801; +}