e.stopPropagation()}
+ >
+
+
+ {t("profile.getBadge")}
+
+
{t("profile.badgeDescription")}
+
+
+ {/* Live preview */}
+
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+

+
+
+ {/* Style picker */}
+
+
{t("profile.badgeStyle")}
+
+ {(
+ [
+ ["flat", "profile.flat"],
+ ["flat-square", "profile.flatSquare"],
+ ["gradient", "profile.scoreColor"],
+ ] as const
+ ).map(([value, labelKey]) => (
+
+ ))}
+
+
+
+ {/* Markdown */}
+
+
{t("profile.markdownLabel")}
+
+ e.currentTarget.select()}
+ className="min-w-0 flex-1 rounded-md border bg-muted px-3 py-2 text-xs"
+ />
+
+
+
+
+ {/* HTML */}
+
+
{t("profile.htmlLabel")}
+
+ e.currentTarget.select()}
+ className="min-w-0 flex-1 rounded-md border bg-muted px-3 py-2 text-xs"
+ />
+
+
+
+
+
+
+
+