Skip to content

Commit

Permalink
feat: Dashboard Responsive Web Develop (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
juntaepark authored Aug 23, 2023
1 parent 13363eb commit 910c832
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,20 @@ export const SupplyInfoWrapper = styled.div`
}
`;

export const ProgressBar = styled.div`
export interface progressBarProps {
width?: string;
}

export const ProgressBar = styled.div<progressBarProps>`
${mixins.flexbox("column", "flex-start", "center")};
width: 100%;
height: 12px;
border-radius: 99px;
background-color: ${({ theme }) => theme.color.background11};
.progress-bar-rate {
width: 245px;
width: ${({ width }) => {
return width ? width : "0%";
}};
height: 12px;
border-radius: 8px;
background-color: ${({ theme }) => theme.color.point};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const SupplyOverview: React.FC<SupplyOverviewInfoProps> = ({
</div>
<div>{supplyOverviewInfo.circulatingSupply}</div>
</div>
<ProgressBar>
<ProgressBar width={"60%"}>
<div className="progress-bar-rate" />
</ProgressBar>
</div>
Expand Down

0 comments on commit 910c832

Please sign in to comment.