Skip to content

Commit

Permalink
ajustados estilos duracion de las rondas
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Fernández Ocaña <[email protected]>
  • Loading branch information
Polinss3 and DaniFdz committed May 25, 2024
1 parent 1f3061f commit 9c42f12
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions web/src/components/RoundData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,32 @@ export default function RoundData() {
return roundNumber === 0 ? (
<></>
) : (
<div>
<h4>Ronda {roundNumber}</h4>
<div className="px-8 py-4 flex flex-col items-center justify-center w-full text-lg gap-4">
<h4 className="text-3xl text-fountain-blue-500">Ronda {roundNumber}</h4>
<p>
<span>Duración total de la ronda:</span>
{roundDuration}s
<span className="font-bold">Duración total de la ronda: </span>
{roundDuration}s ({roundDuration*10}ds)
</p>
<p>
<span>Tiempo en el rango:</span>
<span>{timeInRange / 1000}s</span>/ {timeElapsed / 1000}s
<span className="font-bold">Tiempo en el rango: </span>
<span
className={
timeInRange / timeElapsed > 0.25
? 'text-green-500'
: timeInRange / timeElapsed > 0.12
? 'text-yellow-500'
: 'text-guardsman-red-600'
}
>{Math.round(timeInRange / 1000)}s</span> / {Math.round(timeElapsed / 1000)}s (
<span
className={
timeInRange / timeElapsed > 0.25
? 'text-green-500'
: timeInRange / timeElapsed > 0.12
? 'text-yellow-500'
: 'text-guardsman-red-600'
}
>{Math.round(timeInRange / 100)}ds</span>{" "}/ {Math.round(timeElapsed / 100)}ds)
</p>
</div>
);
Expand Down

0 comments on commit 9c42f12

Please sign in to comment.