feat: add share buttons for victory screens (X, LinkedIn, WhatsApp)

This commit is contained in:
jessy-david-dev
2026-04-10 22:57:31 +02:00
parent 19d9afd2b4
commit a52edfd458
5 changed files with 118 additions and 3 deletions
+2
View File
@@ -3,6 +3,7 @@
import { useEffect, useRef } from "react";
import { ArticleView } from "./ArticleView";
import { Breadcrumbs } from "./Breadcrumbs";
import { ShareBar } from "./ShareBar";
import type { Puzzle } from "../../lib/types";
type SoloPhase = "setup" | "playing" | "won";
@@ -77,6 +78,7 @@ export function SoloScreen({
</span>
))}
</div>
<ShareBar text={`🎉 J'ai atteint "${puzzle?.target}" en ${clicks} clics et ${elapsedDisplay} sur WikiRush !`} />
<div className="flex flex-col gap-2.5">
<button className={btnPrimary} onClick={onNewGame}>Nouvelle partie</button>
<button className={btnGhost} onClick={onQuit}>Accueil</button>