Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

minor fixes

thecodrr07c924b16544
diff --git a/apps/web/src/app.js b/apps/web/src/app.js
index 59a90e862..9faaa0acb 100644
--- a/apps/web/src/app.js
+++ b/apps/web/src/app.js
@@ -2,7 +2,8 @@ import React, { useState, useEffect } from "react";
import "./app.css";
import Editor from "./components/editor";
import { ThemeProvider } from "emotion-theming";
-import { Flex, Box, Button } from "rebass";
+import { Flex, Box, Button, Text } from "rebass";
+import { Input } from "@rebass/forms";
import theme from "./theme";
import { routes, navigate } from "./navigation";
import CheckBox from "./components/checkbox";
@@ -65,7 +66,10 @@ function App() {
<Flex flex="1 1 auto" flexDirection="row" alignContent="stretch" px={0}>
<Flex
className="navigationView"
- sx={{ borderRight: "1px solid", borderColor: "border" }}
+ sx={{
+ borderRight: "1px solid",
+ borderColor: "border"
+ }}
flexDirection="column"
flex="1 1 auto"
px={2}
@@ -74,17 +78,54 @@ function App() {
/>
<Editor />
<Flex
- sx={{ borderRight: "1px solid", borderColor: "border" }}
+ sx={{ borderLeft: "1px solid", borderColor: "border" }}
flexDirection="column"
- bg="navbg"
+ bg="#1790F307"
flex="1 1 auto"
px={2}
py={2}
width={["0%", "0%", "10%"]}
>
+ <Text variant="title" color="primary" my={2}>
+ Properties
+ </Text>
<CheckBox icon={Icon.MapPin} label="Pin" />
<CheckBox icon={Icon.Star} label="Favorite" />
<CheckBox icon={Icon.Lock} label="Lock" />
+ <Flex
+ className="unselectable"
+ fontSize="body"
+ sx={{ marginBottom: 2 }}
+ alignItems="center"
+ >
+ <Icon.Tag size={18} />
+ <Text sx={{ marginLeft: 1 }}>Tags:</Text>
+ </Flex>
+ <Input sx={{ marginBottom: 2 }} variant="default" />
+ <Flex
+ className="unselectable"
+ fontSize="body"
+ sx={{ marginBottom: 2 }}
+ alignItems="center"
+ >
+ <Icon.Octagon size={18} />
+ <Text sx={{ marginLeft: 1 }}>Colors:</Text>
+ </Flex>
+ <Flex flexWrap="wrap" sx={{ marginBottom: 2 }}>
+ {[
+ { label: "red", code: "#ed2d37" },
+ { label: "orange", code: "#ec6e05" },
+ { label: "yellow", code: "yellow" },
+ { label: "green", code: "green" },
+ { label: "blue", code: "blue" },
+ { label: "purple", code: "purple" },
+ { label: "gray", code: "gray" }
+ ].map(color => (
+ <Box sx={{ cursor: "pointer" }}>
+ <Icon.Circle size={40} fill={color.code} strokeWidth={0} />
+ </Box>
+ ))}
+ </Flex>
</Flex>
</Flex>
<Box id="snackbarContainer" />
diff --git a/apps/web/src/components/checkbox/index.js b/apps/web/src/components/checkbox/index.js
index ec4a6cbc5..7de082e69 100644
--- a/apps/web/src/components/checkbox/index.js
+++ b/apps/web/src/components/checkbox/index.js
@@ -16,7 +16,7 @@ const CheckBox = props => {
width="full"
alignItems="center"
justifyContent="space-between"
- sx={{ cursor: "pointer", marginBottom: 1 }}
+ sx={{ cursor: "pointer", marginBottom: 2 }}
>
<Flex
className="unselectable"
@@ -29,6 +29,7 @@ const CheckBox = props => {
</Flex>
<Text color={checked ? "primary" : "foreground"}>
<Icon.CheckCircle
+ size={18}
className="unselectable"
style={{ cursor: "pointer" }}
/>
diff --git a/apps/web/yarn.lock b/apps/web/yarn.lock
index d561217ae..bc8e9523e 100644
--- a/apps/web/yarn.lock
+++ b/apps/web/yarn.lock
@@ -6991,9 +6991,10 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:
"notes-core@https://github.com/thecodrr/notes-core.git":
version "0.2.0"
- resolved "https://github.com/thecodrr/notes-core.git#7b90918d311794d87698b89152e97f1a3296824d"
+ resolved "https://github.com/thecodrr/notes-core.git#d726ec274ead7a4ac297f68ced5213029d3a39a0"
dependencies:
fuzzysearch "^1.0.3"
+ sjcl "^1.0.8"
transfun "^1.0.2"
npm-bundled@^1.0.1:
@@ -9407,6 +9408,11 @@ sisteransi@^1.0.3:
resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.4.tgz#386713f1ef688c7c0304dc4c0632898941cad2e3"
integrity sha512-/ekMoM4NJ59ivGSfKapeG+FWtrmWvA1p6FBZwXrqojw90vJu8lBmrTxCMuBCydKtkaUe2zt4PlxeTKpjwMbyig==
+sjcl@^1.0.8:
+ version "1.0.8"
+ resolved "https://registry.yarnpkg.com/sjcl/-/sjcl-1.0.8.tgz#f2ec8d7dc1f0f21b069b8914a41a8f236b0e252a"
+ integrity sha512-LzIjEQ0S0DpIgnxMEayM1rq9aGwGRG4OnZhCdjx7glTaJtf4zRfpg87ImfjSJjoW9vKpagd82McDOwbRT5kQKQ==
+
slash@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55"