@@ -27,15 +28,15 @@ export default function MissionResult({ gameState, onContinue }: MissionResultPr
animate={{ opacity: 1 }}
>
{isSuccess ? '¡MISIÓN EXITOSA!' : 'MISIÓN FALLIDA'}
-
-
Misión {gameState.currentRound} de 5
- Resistencia: {gameState.missionHistory.filter(m => m.isSuccess).length} |
+ Resistencia: {gameState.missionHistory.filter(m => m.isSuccess).length} |
Espías: {gameState.missionHistory.filter(m => !m.isSuccess).length}
-
- CONTINUAR →
-
+ {isHost ? (
+
+ CONTINUAR →
+
+ ) : (
+
+ Esperando al comandante...
+
+ )}
);
}
diff --git a/client/src/components/MissionReveal.tsx b/client/src/components/MissionReveal.tsx
index ef0bb48..1734892 100644
--- a/client/src/components/MissionReveal.tsx
+++ b/client/src/components/MissionReveal.tsx
@@ -1,5 +1,6 @@
import { motion } from 'framer-motion';
import { useEffect } from 'react';
+import Image from 'next/image';
interface MissionRevealProps {
votes: boolean[];
@@ -7,11 +8,11 @@ interface MissionRevealProps {
}
export default function MissionReveal({ votes, onFinished }: MissionRevealProps) {
- // Timer de seguridad: 10 segundos y avanza
+ // Timer de seguridad: 5 segundos y avanza
useEffect(() => {
const timer = setTimeout(() => {
if (onFinished) onFinished();
- }, 10000);
+ }, 5000);
return () => clearTimeout(timer);
}, [onFinished]);
@@ -30,20 +31,22 @@ export default function MissionReveal({ votes, onFinished }: MissionRevealProps)
{votes.map((vote, idx) => (
- {vote ? '✓' : '✗'}
+
))}
@@ -52,7 +55,7 @@ export default function MissionReveal({ votes, onFinished }: MissionRevealProps)
className="text-white text-xl font-mono mt-8"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
- transition={{ delay: votes.length * 0.8 + 1 }}
+ transition={{ delay: votes.length * 0.3 + 0.5 }}
>