From 70cc9bd54bce47bb757e6a46424c8b5e43facdfa Mon Sep 17 00:00:00 2001 From: pavanjoshi914 Date: Fri, 13 Dec 2024 16:27:06 +0530 Subject: [PATCH] feat: copy widget and ui updates --- .../src/screens/internal-apps/SimpleBoost.tsx | 59 ++++++++++++++++--- 1 file changed, 52 insertions(+), 7 deletions(-) diff --git a/frontend/src/screens/internal-apps/SimpleBoost.tsx b/frontend/src/screens/internal-apps/SimpleBoost.tsx index fbee8490..b0a535d2 100644 --- a/frontend/src/screens/internal-apps/SimpleBoost.tsx +++ b/frontend/src/screens/internal-apps/SimpleBoost.tsx @@ -1,11 +1,22 @@ +import { CopyIcon } from "lucide-react"; import React from "react"; import AppHeader from "src/components/AppHeader"; +import ExternalLink from "src/components/ExternalLink"; import Loading from "src/components/Loading"; +import { Button } from "src/components/ui/button"; +import { + Card, + CardContent, + CardHeader, + CardTitle, +} from "src/components/ui/card"; import { Input } from "src/components/ui/input"; import { Label } from "src/components/ui/label"; import { LoadingButton } from "src/components/ui/loading-button"; +import { Textarea } from "src/components/ui/textarea"; import { useToast } from "src/components/ui/use-toast"; import { useApps } from "src/hooks/useApps"; +import { copyToClipboard } from "src/lib/clipboard"; import { createApp } from "src/requests/createApp"; import { handleRequestError } from "src/utils/handleRequestError"; @@ -55,13 +66,47 @@ export function SimpleBoost() { description="The donation button for your website." /> {nwcUri && ( -
-

Add the following widget to your website.

- -
- -
-
+ + + How to Add Widget + + +
    +
  • + Add SimpleBoost to your website using a CDN or install it via + npm from{" "} + + here + +
  • +
  • + Add the following widget anywhere on your website: +
    +