ISSUE-045 - Venetian Blinds - Working on the basic concept of the blinds filter.
Created a new workspace to test this all out in. Offering two differing test subjects: A position flag and a driver portrait. This is useful because the images need to be treated differently compared to simple divs. Figured out a way of tinting both divs and images: Severely offset internal outline styling with semi-opaque colors. Moved DriverPortrait into its own component. Makes sense as portraits appear in various places. Plan to offer prop between front-facing and 3/4 facing photos (I have a collection of both). Created a new "Position" type that can be used, with a special function, to place elements through a common prop.
This commit is contained in:
1 parent
e747a7d7c3
commit
38aeedea65
19 files changed
+240
-37
No files matched your search
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
`;
|
||||
BasicBlock.displayName = "BasicBlock";
|
||||
Reference in new issue
Block a user