diff --git a/app/main-form.tsx b/app/main-form.tsx index 2cbf1e7..a9aefe5 100644 --- a/app/main-form.tsx +++ b/app/main-form.tsx @@ -22,6 +22,7 @@ import { ReducerMany, ReturnProps } from "@/lib/reducer"; import { toByte } from "@/lib/size"; import { toast } from "sonner"; import UploadedList from "@/components/UploadedList"; +import Donation from "@/components/Donation"; const schema = z.object({ unit: z.enum(["kb", "mb"]), @@ -114,6 +115,7 @@ export default function MainForm() { }; return (
+
diff --git a/components/Donation.tsx b/components/Donation.tsx new file mode 100644 index 0000000..dc4cff3 --- /dev/null +++ b/components/Donation.tsx @@ -0,0 +1,49 @@ +"use client"; + +import { + Dialog, + DialogClose, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, + DialogTrigger, +} from "@/components/ui/dialog"; +import { Button } from "./ui/button"; +import Image from "next/image"; +import { toast } from "sonner"; + +export default function Donation() { + return ( + + + + + + + QR Prompt Pay + + รองรับทุกธนาคารและ E-Wallet (รวมถึง True Wallet) + + +
+ +
+ + + + + +
+
+ ); +} diff --git a/next.config.mjs b/next.config.mjs index 3a12d80..5b72af8 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,8 @@ /** @type {import('next').NextConfig} */ -const nextConfig = { output: "export", compress: true }; +const nextConfig = { + output: "export", + compress: true, + images: { unoptimized: true }, +}; -export default nextConfig; \ No newline at end of file +export default nextConfig; diff --git a/public/qr-prompt-pay.png b/public/qr-prompt-pay.png new file mode 100644 index 0000000..856163e Binary files /dev/null and b/public/qr-prompt-pay.png differ