ui: add a prototype note template

This commit is contained in:
thecodrr
2019-11-25 21:16:40 +05:00
parent c3b0773652
commit e75e2e4eb2
2 changed files with 26 additions and 8 deletions

View File

@@ -28,11 +28,7 @@ const NavMenuItem = props => (
borderBottomRightRadius: 3 borderBottomRightRadius: 3
}} }}
/> />
<props.item.icon <props.item.icon size={25} strokeWidth={1.3} style={{ marginRight: 3 }} />
size={25}
stroke-width={1.3}
style={{ marginRight: 3 }}
/>
{/* <Text sx={{ fontSize: 15, marginLeft: 1 }}>{props.item.title}</Text> */} {/* <Text sx={{ fontSize: 15, marginLeft: 1 }}>{props.item.title}</Text> */}
</Flex> </Flex>
</Button> </Button>
@@ -67,12 +63,14 @@ function App() {
flex="1 1 auto" flex="1 1 auto"
px={3} px={3}
py={3} py={3}
width="15%"
> >
<Heading fontSize="heading">Notes</Heading> <Heading fontSize="heading">Notes</Heading>
<input <input
placeholder="Search" placeholder="Search"
style={{ style={{
marginTop: 8, marginTop: 8,
marginBottom: 16,
borderRadius: 5, borderRadius: 5,
borderWidth: 0, borderWidth: 0,
padding: 13, padding: 13,
@@ -82,7 +80,26 @@ function App() {
boxShadow: "0 0 3px 0px #f0f0f0" boxShadow: "0 0 3px 0px #f0f0f0"
}} }}
/> />
<Box></Box> <Box bg="primary" px={3} py={3} sx={{ borderRadius: "default" }}>
<Flex flexDirection="row" justifyContent="space-between">
<Text fontFamily="body" fontWeight="bold">
This is a note title
</Text>
<Flex flexDirection="row">
<Icon.Share2 size={20} strokeWidth={1.3} />
<Icon.Heart
size={20}
strokeWidth={1.3}
style={{ marginLeft: 5 }}
/>
<Icon.MoreVertical size={20} strokeWidth={1.3} />
</Flex>
</Flex>
<Text fontFamily="body" fontSize="body">
You are born to be the greatest there ever was. Embrace your
true powers!
</Text>
</Box>
</Flex> </Flex>
<Editor /> <Editor />
</Flex> </Flex>

View File

@@ -11,7 +11,8 @@ export default {
}, },
//fontSizes: [12, 14, 16, 20, 24, 32, 48, 64], //fontSizes: [12, 14, 16, 20, 24, 32, 48, 64],
fontSizes: { fontSizes: {
heading: 42 heading: 42,
body: 14
}, },
fontWeights: { fontWeights: {
body: 500, body: 500,
@@ -27,7 +28,7 @@ export default {
}, },
radii: { radii: {
none: 0, none: 0,
default: 10 default: 5
}, },
buttons: { buttons: {
nav: { nav: {