|
@@ -1,6 +1,7 @@
|
|
|
"use client";
|
|
|
|
|
|
import { useEffect, useRef } from "react";
|
|
|
+import { useTheme } from "next-themes";
|
|
|
import { Heart, X, Code, Server, Coffee, Github } from "lucide-react";
|
|
|
|
|
|
import { useI18n } from "locales/client";
|
|
@@ -14,6 +15,7 @@ interface DonationModalProps {
|
|
|
export function DonationModal({ isOpen, onClose }: DonationModalProps) {
|
|
|
const t = useI18n();
|
|
|
const modalRef = useRef<HTMLDialogElement>(null);
|
|
|
+ const theme = useTheme();
|
|
|
|
|
|
useEffect(() => {
|
|
|
const modal = modalRef.current;
|
|
@@ -112,6 +114,14 @@ export function DonationModal({ isOpen, onClose }: DonationModalProps) {
|
|
|
</ul>
|
|
|
<p className="text-xs text-center text-green-700 dark:text-green-400 mt-2 font-medium">{t("donation_modal.impact_footer")}</p>
|
|
|
</div>
|
|
|
+
|
|
|
+ <iframe
|
|
|
+ height="700"
|
|
|
+ id="kofiframe"
|
|
|
+ src="https://ko-fi.com/workoutcool/?hidefeed=true&widget=true&embed=true&preview=true"
|
|
|
+ style={{ border: "none", width: "100%", padding: "4px" }}
|
|
|
+ title="workoutcool"
|
|
|
+ ></iframe>
|
|
|
</div>
|
|
|
|
|
|
{/* Actions */}
|