From 637e3fc83235a1e480ccd23fb4e84dc89c2295cd Mon Sep 17 00:00:00 2001 From: Arpit Bansal Date: Mon, 28 Oct 2024 10:54:11 +0530 Subject: [PATCH 1/2] fix: home grid layout --- config/krakend/demo-redesign/src/app/page.tsx | 77 ++++++++++--------- .../src/components/Architecture/index.tsx | 2 +- .../src/components/Home/UseCases/index.tsx | 4 +- 3 files changed, 43 insertions(+), 40 deletions(-) diff --git a/config/krakend/demo-redesign/src/app/page.tsx b/config/krakend/demo-redesign/src/app/page.tsx index ee18b1f..737af59 100644 --- a/config/krakend/demo-redesign/src/app/page.tsx +++ b/config/krakend/demo-redesign/src/app/page.tsx @@ -43,47 +43,50 @@ const Page: FC = () => {
-
-
-
- - +
+
+
+
+ + +
+ {currentTab === "use-cases" && } + {currentTab === "integrations" && }
- {currentTab === "use-cases" && } - {currentTab === "integrations" && } -
- {/* Line */} -
+ {/* Line */} + {/*
*/} +
{/* Diagram */} -
-
+
+
diff --git a/config/krakend/demo-redesign/src/components/Architecture/index.tsx b/config/krakend/demo-redesign/src/components/Architecture/index.tsx index 13e05a7..01c9dda 100644 --- a/config/krakend/demo-redesign/src/components/Architecture/index.tsx +++ b/config/krakend/demo-redesign/src/components/Architecture/index.tsx @@ -3,7 +3,7 @@ const Architecture = () => ( xmlns="http://www.w3.org/2000/svg" viewBox="0 0 715 910" fill="none" - className="h-full w-auto" + className="" > { return ( @@ -73,7 +73,7 @@ const UseCases = () => { {useCase.title} From eac417417f374646522794a1de5816aeb3611f31 Mon Sep 17 00:00:00 2001 From: Ansh Payal Date: Mon, 28 Oct 2024 11:50:46 +0530 Subject: [PATCH 2/2] fix: use @comment field instead of title property from krakend.json --- .../demo-redesign/src/components/Home/UseCases/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/krakend/demo-redesign/src/components/Home/UseCases/index.tsx b/config/krakend/demo-redesign/src/components/Home/UseCases/index.tsx index 4e68bce..2819664 100644 --- a/config/krakend/demo-redesign/src/components/Home/UseCases/index.tsx +++ b/config/krakend/demo-redesign/src/components/Home/UseCases/index.tsx @@ -1,6 +1,7 @@ import userCases from "@/data/krakend.json"; import Link from "next/link"; import { useEffect, useState } from "react"; + const UseCases = () => { const [useCases, setUseCases] = useState({}); @@ -56,7 +57,7 @@ const UseCases = () => { key={`${useCase.custom_fields.slug}-${index}`} style={{ background: "#272B3A" }} > - {useCase.title} + {useCase["@comment"]} ); })} @@ -76,7 +77,7 @@ const UseCases = () => { className="text-white text-base p-3 rounded-md hover:outline hover:outline-brand-neutral-300 transition-colors shadow-md break-words" style={{ background: "#272B3A" }} > - {useCase.title} + {useCase["@comment"]} ); })}