ISSUE-031 - Progress checkpoint.
A lot of work going on here. * Moved WorkspaceControls component to a new sub directory * Renamed overlay images * Started a static ChyronDriverBasic component (using Hamilton as an example) * Created a fancy DriverNumber rendering system * Defined DriverNumber style for Mercedes and no one else yet * A bunch of new states for the grid: cars, drivers, teams, etc * Defined a bunch of data for the drivers and teams * Created another string utility function to generate repeat strings; unit tests included
This commit is contained in:
1 parent
1c38137480
commit
db14bf902f
21 files changed
+787
-41
No files matched your search
@@ -0,0 +1,40 @@
|
||||
import styled from "styled-components";
|
||||
|
||||
export const NumberContainer = styled.div`
|
||||
position: relative;
|
||||
display: inline;
|
||||
`;
|
||||
NumberContainer.displayName = "NumberContainer";
|
||||
|
||||
type NumberProps = {
|
||||
fontFamily: string,
|
||||
fontSize: string,
|
||||
numberColor: string,
|
||||
}
|
||||
type StrokeNumberProps = NumberProps & {
|
||||
strokeColor: string,
|
||||
strokeWidth: string,
|
||||
}
|
||||
export const StrokeNumber = styled.span<StrokeNumberProps>`
|
||||
position: absolute;
|
||||
font-family: ${({ fontFamily }) => fontFamily};
|
||||
font-size: ${({ fontSize }) => fontSize};
|
||||
color: ${({ numberColor }) => numberColor};
|
||||
|
||||
-webkit-text-stroke-color: ${({ strokeColor }) => strokeColor};
|
||||
-webkit-text-stroke-width: ${({ strokeWidth }) => strokeWidth};
|
||||
`;
|
||||
StrokeNumber.displayName = "StrokeNumber";
|
||||
|
||||
type ShadowNumberProps = NumberProps & {
|
||||
shadowProperties: string,
|
||||
};
|
||||
export const ShadowNumber = styled.span<ShadowNumberProps>`
|
||||
position: absolute;
|
||||
font-family: ${({ fontFamily }) => fontFamily};
|
||||
font-size: ${({ fontSize }) => fontSize};
|
||||
color: ${({ numberColor }) => numberColor};
|
||||
|
||||
text-shadow: ${({ shadowProperties }) => shadowProperties};
|
||||
`;
|
||||
ShadowNumber.displayName = "ShadowNumber";
|
||||
Reference in new issue
Block a user