added rankings but ugly and tired

This commit is contained in:
2025-10-13 16:44:48 +02:00
parent 1139cfd5f0
commit 174e3e94ed
18 changed files with 721 additions and 51 deletions

View File

@@ -0,0 +1,20 @@
// components/LoadingBar.js
import React from 'react';
import { Box, Text } from 'ink';
export const LoadingBar = ({ percentage }) => {
const width = 30;
const filledWidth = Math.round((percentage / 100) * width);
const emptyWidth = width - filledWidth;
return (
<Box>
<Text color="green">[</Text>
<Text color="green">{'='.repeat(filledWidth)}</Text>
<Text>{' '.repeat(emptyWidth)}</Text>
<Text color="green">]</Text>
<Text> {percentage}%</Text>
</Box>
);
};