Files
test/src/components/Workspaces/CustomWorkSpaces/styles.ts
T
Kyle Geib 4a9c124832 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.
2022-01-24 16:15:43 -05:00

22 lines
456 B
TypeScript

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;
`;