@procraft/widget-order
Version:
Order widget for landing
30 lines (26 loc) • 708 B
text/typescript
import styled from 'styled-components'
export type ProgressBarStyledProps = {
color: 'light' | 'dark'
percent: number
}
export const ProgressBarStyled = styled.div<ProgressBarStyledProps>`
max-width: 160px;
min-width: 100px;
height: 18px;
overflow: hidden;
background: #f0f2f2;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 9px;
position: relative;
> .ribbon {
width: 100%;
height: 16px;
position: absolute;
background: ${({ color }) => (color === 'light' ? '#FFB800' : '#739EC8')};
/* border-color: rgba(0, 0, 0, 0.2);
border-width: 0 1px ;
border-style: solid; */
border-radius: 8px;
right: ${({ percent }) => `${100 - percent}%`};
}
`