feat: finish my pages overview page according to wireframe
This commit is contained in:
12
components/TempDesignSystem/ProgressBar/index.tsx
Normal file
12
components/TempDesignSystem/ProgressBar/index.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
3
components/TempDesignSystem/ProgressBar/progressbar.ts
Normal file
3
components/TempDesignSystem/ProgressBar/progressbar.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export interface ProgressbarProps extends React.HTMLAttributes<HTMLDivElement> {
|
||||
progress: number
|
||||
}
|
||||
Reference in New Issue
Block a user