Port navigation.

This commit is contained in:
Paul
2021-06-19 15:29:04 +01:00
parent 5aa8f30e14
commit 5b77ed439f
25 changed files with 1341 additions and 42 deletions

View File

@@ -9,7 +9,11 @@ export interface IconBaseProps<T> {
animate?: boolean;
}
export default styled.svg<{ square?: boolean }>`
interface IconModifiers {
square?: boolean
}
export default styled.svg<IconModifiers>`
img {
width: 100%;
height: 100%;
@@ -20,3 +24,11 @@ export default styled.svg<{ square?: boolean }>`
` }
}
`;
export const ImageIconBase = styled.img<IconModifiers>`
object-fit: cover;
${ props => !props.square && css`
border-radius: 50%;
` }
`;