From 036d6b6c0d384e33c699f49b0afa5e4e41a71dd7 Mon Sep 17 00:00:00 2001 From: ShamzX0 Date: Wed, 12 Mar 2025 11:42:48 +0900 Subject: [PATCH 1/5] fix: feature cards dark theme styling --- .../src/components/LandingPage/Features.tsx | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/LandingPage/Features.tsx b/frontend/src/components/LandingPage/Features.tsx index 8ea5e6fd..e2a6ea14 100644 --- a/frontend/src/components/LandingPage/Features.tsx +++ b/frontend/src/components/LandingPage/Features.tsx @@ -14,7 +14,9 @@ const Features = () => { > {/* Card 1 */} -
+
+
@@ -23,7 +25,7 @@ const Features = () => { width={40} height={40} alt="" - className="lg:w-[40px] w-6" + className={`lg:w-[40px] w-6 ${isDarkMode ? "invert" : ""}`} />

Transparent Marketplace @@ -36,8 +38,10 @@ const Features = () => {

{/* Card 2 */} -
-
+ +
{ width={40} height={40} alt="" - className="lg:w-[40px] w-6" + className={`lg:w-[40px] w-6 ${isDarkMode ? "invert" : ""}`} />

User-Centric Interface @@ -59,7 +63,9 @@ const Features = () => { {/* Card 3 */} -

+
+
@@ -68,7 +74,7 @@ const Features = () => { width={40} height={40} alt="" - className="lg:w-[40px] lg:h-[40px] w-6" + className={`lg:w-[40px] w-6 ${isDarkMode ? "invert" : ""}`} />

Transparent Marketplace From fb97a0d9981ffe028c48a7d72ff9d395861a23da Mon Sep 17 00:00:00 2001 From: ShamzX0 Date: Wed, 12 Mar 2025 12:48:26 +0900 Subject: [PATCH 2/5] fix: about us dark theme styling --- frontend/src/components/LandingPage/About.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/LandingPage/About.tsx b/frontend/src/components/LandingPage/About.tsx index 7f77279e..d177036d 100644 --- a/frontend/src/components/LandingPage/About.tsx +++ b/frontend/src/components/LandingPage/About.tsx @@ -1,8 +1,17 @@ import { MoveDownRight } from "lucide-react"; +import { useContext } from "react"; +import { DarkModeContext } from "./DarkMode"; const About = () => { + const { isDarkMode } = useContext(DarkModeContext); + return ( -

+
Gradual Liquidation Process From 4760eacc7250eccfca2ab4bc61d8872fdccdf9df Mon Sep 17 00:00:00 2001 From: ShamzX0 Date: Wed, 12 Mar 2025 12:51:05 +0900 Subject: [PATCH 3/5] refactor: dropdown arrow animation --- frontend/src/components/LandingPage/About.tsx | 58 ++++++++++++++++--- 1 file changed, 49 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/LandingPage/About.tsx b/frontend/src/components/LandingPage/About.tsx index d177036d..00a4dba4 100644 --- a/frontend/src/components/LandingPage/About.tsx +++ b/frontend/src/components/LandingPage/About.tsx @@ -13,9 +13,19 @@ const About = () => { }`} >
- + Gradual Liquidation Process - +

To ensure fair market value for collateral, our platform employs limit @@ -26,9 +36,19 @@ const About = () => {

- + Dynamic Proposal System - +

Users on our platform have the ability to create proposals for lending @@ -43,9 +63,19 @@ const About = () => {

- + Immutable Deal Creation - +

Details about immutable deal creation. @@ -53,9 +83,19 @@ const About = () => {

- + Decentralized Peer-to-Peer Lending Deals - +

Peer Protocols decentralized peer-to-peer marketplace serves as the @@ -69,4 +109,4 @@ const About = () => { ); }; -export default About; +export default About; \ No newline at end of file From 674196d7b7254049455934e6b5c469b78c9dae74 Mon Sep 17 00:00:00 2001 From: ShamzX0 Date: Wed, 12 Mar 2025 13:16:53 +0900 Subject: [PATCH 4/5] fix: blog cards positioning --- frontend/src/components/LandingPage/Blog.tsx | 41 +++++++++++--------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/frontend/src/components/LandingPage/Blog.tsx b/frontend/src/components/LandingPage/Blog.tsx index c22d317b..23ea264b 100644 --- a/frontend/src/components/LandingPage/Blog.tsx +++ b/frontend/src/components/LandingPage/Blog.tsx @@ -13,25 +13,30 @@ const BlogPost: React.FC = ({ title, summary }) => { const { isDarkMode } = useContext(DarkModeContext); return ( -

- Card image -
-
{title}
-

- {summary} -

+
+
+ Card image
-
- - +
+
+ {title} +
+
+

+ {summary} +

+
+
+
+ +
From f7be6aededa16d592fe9edefecc8c84c2de169d1 Mon Sep 17 00:00:00 2001 From: ShamzX0 Date: Wed, 12 Mar 2025 13:50:01 +0900 Subject: [PATCH 5/5] tidy: clean up --- frontend/src/components/LandingPage/Blog.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/LandingPage/Blog.tsx b/frontend/src/components/LandingPage/Blog.tsx index 23ea264b..23cf4770 100644 --- a/frontend/src/components/LandingPage/Blog.tsx +++ b/frontend/src/components/LandingPage/Blog.tsx @@ -13,7 +13,9 @@ const BlogPost: React.FC = ({ title, summary }) => { const { isDarkMode } = useContext(DarkModeContext); return ( -
+
= ({ title, summary }) => { />
-
+
{title}
-

+

{summary}

- @@ -43,4 +47,4 @@ const BlogPost: React.FC = ({ title, summary }) => { ); }; -export default BlogPost; +export default BlogPost; \ No newline at end of file