Skip to content

Commit

Permalink
better progress bar (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecF2 authored May 21, 2023
1 parent b917be6 commit c87bfa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/components/doe/progressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ const ProgressBar = () => {

return (
<div className={styles.container}>
<MiniTruck
style={{ left: `calc(${progress}% - ${progress * 1.15}px)` }}
// style={{ left: `calc(${progress}% - 32%)` }}
/>
<MiniTruck style={{ left: `calc(${progress}% - 26%)` }} />
<div className={styles.flag}>
<FlagPole />
<Flag style={{ bottom: `calc(${progress * 0.52}% + 13%)` }} />
Expand Down
6 changes: 1 addition & 5 deletions src/styles/doe/progressBar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@
margin: auto;

> svg {
width: 80px;
width: 21%;
height: auto;
position: relative;

@include lg {
width: 121px;
}
}

@include lg {
Expand Down

0 comments on commit c87bfa5

Please sign in to comment.