-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jason Healy
committed
Jan 24, 2020
1 parent
e43335e
commit 31b69a8
Showing
8 changed files
with
318 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
declare module 'rimble-ui' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
html { | ||
background-color: #f5f5f5; | ||
overflow: hidden; | ||
} | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
font-family: 'proxima-nova'; | ||
overflow: hidden; | ||
font-size: 16px; | ||
} | ||
|
||
#root { | ||
display: flex; | ||
height: 100vh; | ||
} | ||
|
||
#base_styles_container { | ||
display: flex; | ||
flex: 1; | ||
} | ||
|
||
* { | ||
box-sizing: border-box; | ||
-webkit-font-smoothing: antialiased; | ||
} |
147 changes: 147 additions & 0 deletions
147
examples/react-graphql/client/src/views/Dashboard/Dashboard.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
import React, { useState } from 'react' | ||
import { useQuery, useMutation } from '@apollo/react-hooks' | ||
|
||
import { Flex, Box, Text, Heading, Button, Icon } from 'rimble-ui' | ||
|
||
interface DashboardProps {} | ||
|
||
const Dashboard: React.FC<DashboardProps> = () => { | ||
const [sidePanelOpen, toggleSidePanel] = useState(false) | ||
|
||
return ( | ||
<Flex flexDirection={'row'} flex={1}> | ||
<Box p={3} bg="#1C1C1C"> | ||
<Box borderRadius={1} width={40} height={40} bg="white"></Box> | ||
</Box> | ||
<Box p={3} width={220} bg="#28292B" borderRight={1} borderColor={'#4B4B4B'}> | ||
<Box mb={32}> | ||
<Heading as={'h3'}>Daf Dashboard</Heading> | ||
<Text>Description</Text> | ||
</Box> | ||
<Box bg="#222222" mb={2} p={1} pl={3} borderRadius={1}> | ||
<Text>Activity</Text> | ||
</Box> | ||
<Box bg="#983587" mb={2} p={1} pl={3} borderRadius={1}> | ||
<Text>Explore</Text> | ||
</Box> | ||
<Box bg="#222222" mb={2} p={1} pl={3} borderRadius={1}> | ||
<Text>Issue Credential</Text> | ||
</Box> | ||
<Box bg="#222222" mb={2} p={1} pl={3} borderRadius={1}> | ||
<Text>Request</Text> | ||
</Box> | ||
<Box bg="#222222" mb={2} p={1} pl={3} borderRadius={1}> | ||
<Text>Link 1</Text> | ||
</Box> | ||
<Box bg="#222222" mb={2} p={1} pl={3} borderRadius={1}> | ||
<Text>Link 1</Text> | ||
</Box> | ||
</Box> | ||
<Box flex={1} bg="#1C1C1C"> | ||
<Box | ||
p={3} | ||
bg="#1C1C1C" | ||
borderBottom={1} | ||
borderColor={'#4B4B4B'} | ||
flexDirection={'row'} | ||
display={'flex'} | ||
justifyContent={'space-between'} | ||
> | ||
<Heading as={'h4'}>Page Header</Heading> | ||
<Icon name={'Menu'} color={'#CCC'} size={35} onClick={() => toggleSidePanel(!sidePanelOpen)} /> | ||
</Box> | ||
|
||
<Box p={3} flex={1} height={'100%'} overflow={'scroll'} pb={64}> | ||
<Box borderRadius={1} bg="#2B2B2B" flex={1} mb={32}> | ||
<Box p={3} borderBottom={1} borderColor={'#4B4B4B'}> | ||
<Heading as={'h5'}>Panel Header</Heading> | ||
</Box> | ||
<Box p={3}>Panel body</Box> | ||
</Box> | ||
|
||
<Box borderRadius={1} bg="#222222" flex={1} mb={32}> | ||
<Box p={3} borderBottom={1} borderColor={'#4B4B4B'}> | ||
<Heading as={'h5'}>Panel Header</Heading> | ||
</Box> | ||
<Box p={3}>Panel body</Box> | ||
</Box> | ||
|
||
<Box borderRadius={1} bg="#222222" flex={1} mb={32}> | ||
<Box p={3} borderBottom={1} borderColor={'#4B4B4B'}> | ||
<Heading as={'h5'}>Panel Header</Heading> | ||
</Box> | ||
<Box p={3}>Panel body</Box> | ||
</Box> | ||
|
||
<Box borderRadius={1} bg="#222222" flex={1} mb={32}> | ||
<Box p={3} borderBottom={1} borderColor={'#4B4B4B'}> | ||
<Heading as={'h5'}>Panel Header</Heading> | ||
</Box> | ||
<Box p={3}>Panel body</Box> | ||
</Box> | ||
|
||
<Box borderRadius={1} bg="#222222" flex={1} mb={32}> | ||
<Box p={3} borderBottom={1} borderColor={'#4B4B4B'}> | ||
<Heading as={'h5'}>Panel Header</Heading> | ||
</Box> | ||
<Box p={3}>Panel body</Box> | ||
</Box> | ||
|
||
<Box borderRadius={1} bg="#222222" flex={1} mb={32}> | ||
<Box p={3} borderBottom={1} borderColor={'#4B4B4B'}> | ||
<Heading as={'h5'}>Panel Header</Heading> | ||
</Box> | ||
<Box p={3}>Panel body</Box> | ||
</Box> | ||
|
||
<Box borderRadius={1} bg="#222222" flex={1} mb={32}> | ||
<Box p={3} borderBottom={1} borderColor={'#4B4B4B'}> | ||
<Heading as={'h5'}>Panel Header</Heading> | ||
</Box> | ||
<Box p={3}>Panel body</Box> | ||
</Box> | ||
|
||
<Box borderRadius={1} bg="#222222" flex={1} mb={32}> | ||
<Box p={3} borderBottom={1} borderColor={'#4B4B4B'}> | ||
<Heading as={'h5'}>Panel Header</Heading> | ||
</Box> | ||
<Box p={3}>Panel body</Box> | ||
</Box> | ||
|
||
<Box borderRadius={1} bg="#222222" flex={1} mb={32}> | ||
<Box p={3} borderBottom={1} borderColor={'#4B4B4B'}> | ||
<Heading as={'h5'}>Panel Header</Heading> | ||
</Box> | ||
<Box p={3}>Panel body</Box> | ||
</Box> | ||
|
||
<Box borderRadius={1} bg="#222222" flex={1} mb={32}> | ||
<Box p={3} borderBottom={1} borderColor={'#4B4B4B'}> | ||
<Heading as={'h5'}>Panel Header</Heading> | ||
</Box> | ||
<Box p={3}>Panel body</Box> | ||
</Box> | ||
|
||
<Box borderRadius={1} bg="#222222" flex={1} mb={32}> | ||
<Box p={3} borderBottom={1} borderColor={'#4B4B4B'}> | ||
<Heading as={'h5'}>Panel Header</Heading> | ||
</Box> | ||
<Box p={3}>Panel body</Box> | ||
</Box> | ||
</Box> | ||
</Box> | ||
{sidePanelOpen && ( | ||
<Box width={350} bg="#1C1C1C" borderLeft={1} borderColor={'#4B4B4B'}> | ||
<Box p={3}> | ||
<Heading as={'h4'}>Context Panel</Heading> | ||
</Box> | ||
<Box p={3}> | ||
<Text>We can show contextual information here</Text> | ||
</Box> | ||
</Box> | ||
)} | ||
</Flex> | ||
) | ||
} | ||
|
||
export default Dashboard |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,5 @@ | |
"noEmit": true, | ||
"jsx": "react" | ||
}, | ||
"include": ["src"] | ||
"include": ["./src/**/*", "@types"] | ||
} |
Oops, something went wrong.