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; +--- + +
+ +

+
+ + + + 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";
- -