From b8443890d802cb76eca1a328a4b1cd0c71499e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=99=9A=20Pierre-Henry=E2=99=9B=20-=20pH=E2=91=A6?= Date: Thu, 26 Nov 2026 19:55:23 +1300 Subject: [PATCH 1/3] Add reusable copy control for installation commands --- src/components/CopyTextButton.astro | 72 +++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 src/components/CopyTextButton.astro diff --git a/src/components/CopyTextButton.astro b/src/components/CopyTextButton.astro new file mode 100644 index 0000000..7c3fb58 --- /dev/null +++ b/src/components/CopyTextButton.astro @@ -0,0 +1,72 @@ +--- +interface Props { + value: string; + label: string; + successMessage?: string; + fallbackMessage?: string; + tone?: "default" | "dark"; +} + +const { + value, + label, + successMessage = "Copied.", + fallbackMessage = "Select and copy the text above.", + tone = "default", +} = Astro.props; +--- + +
+ +

+
+ + + + From 46e12d53dcf332a0f7e7b270a4d9da26f968bc4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=99=9A=20Pierre-Henry=E2=99=9B=20-=20pH=E2=91=A6?= Date: Thu, 26 Nov 2026 19:55:54 +1300 Subject: [PATCH 2/3] Reuse copy control on the AI builder command --- src/pages/ai-builders.astro | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/src/pages/ai-builders.astro b/src/pages/ai-builders.astro index 9652ec4..29b1aa9 100644 --- a/src/pages/ai-builders.astro +++ b/src/pages/ai-builders.astro @@ -1,8 +1,11 @@ --- import ArrowIcon from "../components/ArrowIcon.astro"; import CtaBand from "../components/CtaBand.astro"; +import CopyTextButton from "../components/CopyTextButton.astro"; import BaseLayout from "../layouts/BaseLayout.astro"; import { site } from "../data/site"; + +const installCommand = `composer create-project ph7software/ph7builder:${site.latestRelease} my-dating-app --no-dev --prefer-dist`; --- @@ -28,8 +31,7 @@ import { site } from "../data/site";
$ composer create-project \
   ph7software/ph7builder:{site.latestRelease} \
   my-dating-app --no-dev --prefer-dist
- -

+ @@ -96,20 +98,6 @@ import { site } from "../data/site";
- -