Add analysis page tests for PGN walkthrough

This commit is contained in:
stefan-kp
2025-11-26 21:33:45 +01:00
parent 3afc75f78d
commit 05f14d30a1
4 changed files with 694 additions and 1 deletions
+14 -1
View File
@@ -2,7 +2,7 @@
import { useState, useEffect } from "react";
import { useRouter } from "next/navigation";
import { Settings, ChevronDown, ChevronUp } from "lucide-react";
import { Settings, ChevronDown, ChevronUp, Brain } from "lucide-react";
import { Personality, PERSONALITIES } from "@/lib/personalities";
import { useTranslation } from "@/lib/i18n/useTranslation";
import { SupportedLanguage } from "@/lib/i18n/translations";
@@ -232,6 +232,19 @@ export default function StartScreen({ onStartGame, onResumeGame, hasSavedGame }:
</button>
)}
</div>
<div className="border-t border-gray-200 dark:border-gray-700 pt-6">
<p className="text-sm font-bold text-gray-700 dark:text-gray-300 mb-3 uppercase tracking-wide">
{t.start.analyzeGame}
</p>
<button
onClick={() => router.push("/analysis")}
className="w-full py-4 px-4 bg-purple-600 text-white rounded-xl hover:bg-purple-700 font-semibold shadow-lg transition-transform transform hover:scale-[1.02] flex items-center justify-center gap-2"
>
<Brain size={18} />
{t.start.analyzeGame}
</button>
</div>
)}
</div>
</div>