From e564b57cc2c991c3f78fc85d2b58936b9841434b Mon Sep 17 00:00:00 2001 From: khondokartowsif171 Date: Mon, 25 May 2026 15:55:53 +0600 Subject: [PATCH] feat: show demo & repo links in expanded service cards Live Demo button appears when svc.demo exists, View Repo button appears when svc.repo exists. Co-Authored-By: Claude Sonnet 4.6 --- src/pages.jsx | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/src/pages.jsx b/src/pages.jsx index 83cf41a..9bcdcf5 100644 --- a/src/pages.jsx +++ b/src/pages.jsx @@ -142,8 +142,57 @@ const ServicesPage = ({ lang }) => { ))} + + {/* Demo / Repo links */} + {(svc.demo || svc.repo) && ( +
+ {svc.demo && ( + e.stopPropagation()} + style={{ + display: "inline-flex", alignItems: "center", gap: 6, + padding: "8px 16px", + background: c.bg, border: `1px solid ${c.border}`, + borderRadius: 8, fontSize: 13, fontWeight: 500, + color: c.text, textDecoration: "none", + fontFamily: "var(--font-mono)", + }} + > + + + + Live Demo + + )} + {svc.repo && ( + e.stopPropagation()} + style={{ + display: "inline-flex", alignItems: "center", gap: 6, + padding: "8px 16px", + background: "var(--bg-elev)", border: "1px solid var(--line)", + borderRadius: 8, fontSize: 13, fontWeight: 500, + color: "var(--text-dim)", textDecoration: "none", + fontFamily: "var(--font-mono)", + }} + > + + + + View Repo + + )} +
+ )} + e.stopPropagation()} style={{ alignSelf: "flex-start",