ISSUE-031 - Big update. AngledFlag component is born!

It's not 100% complete - I still need to add the second, slightly offset sub flag that goes beneath the main flag, creating a sort of refractive-glass/parallax effect.

Needed to add a new workspace. Thankfully it's pretty easy to add a new workspace. So, kinda nice.

Did a lot of work making 2:1 versions of each flag in vector. Was a bit of a pain in the ass.

Renamed a prop for ProgressSlider, "onBarColor" because prefixing a prop with "on" is special for React and it gets upset and spits out an error.
This commit is contained in:
Kyle Geib committed 2022-01-24 16:15:43 -05:00
1 parent 55e07a444e
commit 4a9c124832
46 files changed
+1063 -70

No files matched your search

@@ -0,0 +1,14 @@
import { AngledFlag } from "../../BroadcastGraphics/Common/AngledFlag";
import { BasicBlock } from "./styles";
export function AngledFlagWorkSpace() {
return (
<BasicBlock width={400} height={400} color="rgba(30, 30, 30, .7)">
<AngledFlag
flagMode="country"
flag="JPN"
flagHeight={64}
/>
</BasicBlock>
);
}
@@ -0,0 +1,21 @@
import styled from "styled-components";
import { Px } from "../../../types/style";
type BasicBlockProps = {
width: Px,
height: Px,
color: string,
center?: boolean,
}
export const BasicBlock = styled.div<BasicBlockProps>`
display: flex;
justify-content: center;
align-items: center;
width: ${({ width }) => `${width}px`};
height: ${({ height }) => `${height}px`};
background-color: ${({ color }) => color};
border-radius: 15px;
`;