From 989ec5594ff4ff7820f5e50118951fb4d9cff0c3 Mon Sep 17 00:00:00 2001 From: Dibyam Kumar Date: Thu, 23 Nov 2023 13:29:40 +0530 Subject: [PATCH] Fix Layers Page UI --- .../deepchem/components/Layers/LayerCard.js | 17 ++--- new-website/deepchem/pages/layers.js | 70 ++++++++++--------- 2 files changed, 46 insertions(+), 41 deletions(-) diff --git a/new-website/deepchem/components/Layers/LayerCard.js b/new-website/deepchem/components/Layers/LayerCard.js index 5eb1b372..a7795d77 100644 --- a/new-website/deepchem/components/Layers/LayerCard.js +++ b/new-website/deepchem/components/Layers/LayerCard.js @@ -28,14 +28,15 @@ const LayerCard = ({ layer }) => {
{parseName(layer.name)}
-
- {layer.category === "torch" && ( - PyTorch - )} - {layer.category === "keras" && ( - Keras - )} -
+ + +
+ {layer.category === "torch" && ( + PyTorch + )} + {layer.category === "keras" && ( + Keras + )}
{layer.category}
diff --git a/new-website/deepchem/pages/layers.js b/new-website/deepchem/pages/layers.js index a188efaa..1233356a 100644 --- a/new-website/deepchem/pages/layers.js +++ b/new-website/deepchem/pages/layers.js @@ -77,24 +77,26 @@ const Layers = () => { >
{/* HEADING BEGIN */} -
+
Our Layers
- {/* HEADING END */} - {/* BODY BEGIN */} -
- {/* FILTER SECTION BEGIN */} -
+
+ {/* HEADING END */} + + {/* BODY BEGIN */} +
+ {/* FILTER SECTION BEGIN */} +
{/* MODEL BEGIN */}
Model
@@ -118,29 +120,31 @@ const Layers = () => {
{/* MODEL END */} - {/* LAYER CARDS SECTION BEGIN */} -
- {filteredLayers.length ? ( - filteredLayers.map((layer) => ( - - )) - ) : ( -
- -

No such layers exist!

-
- )} -
- {/* MODEL CARDS SECTION END */}
- {/* BODY END */} + {/* FILTER SECTION END */} + + {/* LAYER CARDS SECTION BEGIN */} +
+ {filteredLayers.length ? ( + filteredLayers.map((layer) => ( + + )) + ) : ( +
+ +

No such layers exist!

+
+ )} +
+ {/* MODEL CARDS SECTION END */}
+ {/* BODY END */}
);