Improve MineGeo interface and functionality

This commit is contained in:
2026-10-06 19:24:41 +05:00
parent 7404f1dc1c
commit 233e4d57f0
67 changed files with 3053 additions and 643 deletions

View File

@@ -1,7 +1,10 @@
"use client";
import { useI18n } from "@/components/I18nProvider";
import { useState } from "react";
import { api } from "./StartGame";
export function Pairing({ code }: { code: string }) {
const { t } = useI18n();
const [message, setMessage] = useState(""),
[busy, setBusy] = useState(false);
async function approve() {
@@ -17,22 +20,23 @@ export function Pairing({ code }: { code: string }) {
}
return (
<div className="auth-card">
<span className="eyebrow">LINK YOUR CAPTURE CLIENT</span>
<span className="eyebrow">{t("LINK YOUR CAPTURE CLIENT")}</span>
<h2>{code}</h2>
<p className="muted">
Approve only if this code is displayed by your MineGeo Fabric mod.
Linking lets that client upload private map drafts to your account.
{t(
"Approve only if this code is displayed by your MineGeo Fabric mod. Linking lets that client upload private map drafts to your account.",
)}
</p>
<button
className="button primary full"
disabled={busy || !!message}
onClick={approve}
>
Link my Minecraft client
{t("Link my Minecraft client")}
</button>
{message && (
<p role="status" className="success-message">
{message}
{t(message)}
</p>
)}
</div>