ISSUE-045 - Venetian Blinds - Starting work on the "venetian blinds" transition effect.
I'll be starting with re-creating this effect on the PositionFlag component. That involves first separating out the PositionFlag into its own common component (it's used on the timing board as well, so it makes sense). Adding new overlays for prototyping work.
This commit is contained in:
1 parent
5e86b92ca5
commit
e747a7d7c3
13 files changed
+65
-34
No files matched your search
@@ -27,33 +27,6 @@ export const BaseBackground = styled.div`
|
||||
`;
|
||||
BaseBackground.displayName = "BaseBackground";
|
||||
|
||||
type PositionFlagProps = {
|
||||
containerHeight: Px,
|
||||
};
|
||||
export const PositionFlag = styled.div<PositionFlagProps>`
|
||||
position: relative;
|
||||
height: ${({ containerHeight }) => `${containerHeight * 0.85}px`};
|
||||
width: ${({ containerHeight }) => `${containerHeight * 0.85}px`};
|
||||
|
||||
border-bottom-right-radius: 9px;
|
||||
background-color: #f4f3ee;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
`;
|
||||
PositionFlag.displayName = "PositionFlag";
|
||||
|
||||
type PositionNumberProps = {
|
||||
containerHeight: Px,
|
||||
};
|
||||
export const PositionNumber = styled.span<PositionNumberProps>`
|
||||
font-family: ${p => p.theme.fonts.f1Regular};
|
||||
font-size: ${({ containerHeight }) => `${containerHeight * 0.85 * 0.64}px`};
|
||||
margin-top: 2px;
|
||||
`;
|
||||
PositionNumber.displayName = "PositionNumber";
|
||||
|
||||
type TeamColorBarProps = {
|
||||
color: string,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user