Add project page

This commit is contained in:
Hazem Krimi
2021-04-28 21:25:37 +01:00
parent b52ea26893
commit 683fb07c69
2 changed files with 39 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import { useReactiveVar } from '@apollo/client';
import { roleVar } from '../../graphql/state';
import { Empty } from '../../assets';
import { Box } from '../../components';
import { Wrapper } from './styles';
const Project = () => {
const role = useReactiveVar(roleVar);
return (
<Wrapper color={role}>
<Box
width='100%'
height='100vh'
display='grid'
alignItems='center'
justifyContent='center'
>
<Box>
<Empty />
</Box>
</Box>
</Wrapper>
);
};
export default Project;
+12
View File
@@ -0,0 +1,12 @@
import styled from 'styled-components';
type WrapperProps = {
color?: 'client' | 'productOwner' | 'developer' | 'admin';
};
export const Wrapper = styled.div<WrapperProps>`
.empty {
fill: ${({ theme, color }) =>
color ? theme.colors[color].main : theme.colors.client.main};
}
`;