Skip to content

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

feat: add notebooks placeholder

thecodrr3affcc0a3758
diff --git a/apps/web/src/components/placeholders/notebooks-placeholder.js b/apps/web/src/components/placeholders/notebooks-placeholder.js
index 1d74579f4..fe6443db4 100644
--- a/apps/web/src/components/placeholders/notebooks-placeholder.js
+++ b/apps/web/src/components/placeholders/notebooks-placeholder.js
@@ -2,7 +2,6 @@ import { motion } from "framer-motion";
import React from "react";
import { Box, Flex, Text } from "rebass";
-
const NotebooksPlaceholder = props => {
return (
<>
@@ -38,9 +37,7 @@ const NotebooksPlaceholder = props => {
width: "130px",
backgroundColor: "#c9c9c9",
height: "150px",
-
borderRadius: "5px",
-
boxShadow: "2px 2px 15px 0px #00000040"
}}
>
@@ -50,7 +47,6 @@ const NotebooksPlaceholder = props => {
sx={{
borderRadius: "5px",
boxShadow: "1px 1px 5px 0px #00000060",
- borderRadius: "5px",
height: "150px",
width: "120px",
justifyContent: "center",
@@ -144,13 +140,12 @@ const NotebooksPlaceholder = props => {
</Flex>
<Text
- color="icon"
- width="80%"
+ color="gray"
marginTop={50}
alignSelf="center"
sx={{
textAlign: "center",
- fontSize: "body"
+ fontSize: "title"
}}
>
Notebooks you add will appear here.
diff --git a/apps/web/src/views/Notebooks.js b/apps/web/src/views/Notebooks.js
index a89a9fbf2..17bb58391 100644
--- a/apps/web/src/views/Notebooks.js
+++ b/apps/web/src/views/Notebooks.js
@@ -5,6 +5,7 @@ import Notebook from "../components/notebook";
import AddNotebookDialog from "../components/dialogs/addnotebookdialog";
import ListContainer from "../components/list-container";
import { useStore, store } from "../stores/notebook-store";
+import NotebooksPlaceholder from "../components/placeholders/notebooks-placeholder";
const Notebooks = props => {
const [open, setOpen] = useState(false);
@@ -16,6 +17,7 @@ const Notebooks = props => {
<>
<ListContainer
itemsLength={notebooks.length}
+ placeholder={NotebooksPlaceholder}
item={index => (
<Notebook
index={index}