feat: finish my pages overview page according to wireframe

This commit is contained in:
Simon Emanuelsson
2024-04-02 10:26:12 +02:00
parent d902a5a704
commit 8c8fa2d02c
48 changed files with 1161 additions and 91 deletions

View File

@@ -0,0 +1,12 @@
import styles from "./progressbar.module.css"
import type { ProgressbarProps } from "./progressbar"
export default function ProgressBar({ className, progress }: ProgressbarProps) {
className = className ?? ""
return (
<div className={`${className} ${styles.bar}`}>
<div className={styles.progress} style={{ width: `${progress}%` }} />
</div>
)
}

View File

@@ -0,0 +1,12 @@
.bar {
background-color: var(--some-white-color, #fff);
border-radius: 4rem;
height: 2rem;
width: 100%;
}
.progress {
background-color: var(--some-black-color, #1f1f1f);
border-radius: 4rem;
height: 2rem;
}

View File

@@ -0,0 +1,3 @@
export interface ProgressbarProps extends React.HTMLAttributes<HTMLDivElement> {
progress: number
}