ISSUE-062 - Basic base in place with no real interactivity or anything like that.
Saving progress for the day. It's dinner time!
This commit is contained in:
1 parent
c42f64f43c
commit
28e0e7f3d4
12 files changed
+77
-27
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import styled, { css } from "styled-components";
|
||||
|
||||
import { BGStatusIndicatorModes } from "../../../../types/state";
|
||||
|
||||
type StatusIndicatorBaseProps = {
|
||||
mode: BGStatusIndicatorModes,
|
||||
};
|
||||
export const StatusIndicatorBase = styled.div<StatusIndicatorBaseProps>`
|
||||
background-color: black;
|
||||
border-top-right-radius: ${p => p.theme.design.statusIndicator.roundedCornerRadiusPx}px;
|
||||
height: ${p => p.theme.design.statusIndicator.heightNormalPx}px;
|
||||
width: ${({ theme: { design: { timingTower } }, mode }) => {
|
||||
if (mode === BGStatusIndicatorModes.LapNarrow) {
|
||||
return timingTower.rowLeftHalfWidthPx;
|
||||
}
|
||||
if (mode === BGStatusIndicatorModes.LapWide) {
|
||||
return timingTower.rowLeftHalfWidthPx + timingTower.rowRightHalfWidthPx;
|
||||
}
|
||||
return 10;
|
||||
}}px;
|
||||
`;
|
||||
StatusIndicatorBase.displayName = "StatusIndicatorBase";
|
||||
Reference in new issue
Block a user