A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
ui: add list placeholders (#101)
Ammar Ahmed9a4449c9a806
diff --git a/apps/web/src/components/placeholders/favorites-placeholder.js b/apps/web/src/components/placeholders/favorites-placeholder.jsnew file mode 100644index 000000000..8964f7ead--- /dev/null+++ b/apps/web/src/components/placeholders/favorites-placeholder.js@@ -0,0 +1,66 @@+import { motion } from "framer-motion";+import React from "react";+import * as Icon from "react-feather";+import { Flex, Text } from "rebass";++const FavoritesPlaceholder = props => {+ return (+ <>+ <Flex+ style={{+ position: "relative",+ height: "100px",+ alignSelf: "center",+ flexDirection: "row"+ }}+ >+ {[+ { delay: 3, marginTop: "10px", size: 25 },+ { delay: 8, marginTop: "20px", size: 25 },+ { delay: 12, marginTop: "-30px", size: 25 },+ { delay: 10, marginTop: "0px", size: 30 },+ { delay: 7, marginTop: "-30px", size: 25 },+ { delay: 2, marginTop: "20px", size: 25 },+ { delay: 4, marginTop: "10px", size: 25 }+ ].map(item => (+ <motion.div+ style={{+ padding: 0,+ margin: 0,+ marginTop: item.marginTop,+ position: "relative"+ }}+ animate={{+ opacity: [0, 0.5, 1, 0.5, 0],+ scaleX: [0.7, 0.75, 0.85, 0.9, 1],+ scaleY: [0.7, 0.75, 0.85, 0.9, 1]+ }}+ transition={{+ duration: 7,+ ease: "linear",+ delay: item.delay,+ loop: Infinity+ }}+ >+ <Icon.Star fill="orange" size={item.size} stroke={0} />+ </motion.div>+ ))}+ </Flex>++ <Text+ color="icon"+ width="80%"+ marginTop={50}+ alignSelf="center"+ sx={{+ textAlign: "center",+ fontSize: "body"+ }}+ >+ Notes you favorite appear here.+ </Text>+ </>+ );+};++export default FavoritesPlaceholder;diff --git a/apps/web/src/components/placeholders/notebooks-placeholder.js b/apps/web/src/components/placeholders/notebooks-placeholder.jsnew file mode 100644index 000000000..1d74579f4--- /dev/null+++ b/apps/web/src/components/placeholders/notebooks-placeholder.js@@ -0,0 +1,162 @@+import { motion } from "framer-motion";+import React from "react";+import { Box, Flex, Text } from "rebass";+++const NotebooksPlaceholder = props => {+ return (+ <>+ <Flex+ style={{+ width: "300px",+ position: "relative",+ alignSelf: "center",+ flexDirection: "row",+ alignItems: "center",+ justifyContent: "center"+ }}+ >+ <motion.div+ animate={{+ x: 2,+ y: 2+ }}+ style={{+ position: "absolute",+ bottom: "50px",+ right: "120px",+ zIndex: 999+ }}+ transition={{+ duration: 4,+ ease: "linear",+ yoyo: Infinity+ }}+ >+ <Box+ style={{+ width: "130px",+ backgroundColor: "#c9c9c9",+ height: "150px",++ borderRadius: "5px",++ boxShadow: "2px 2px 15px 0px #00000040"+ }}+ >+ <Flex+ backgroundColor="primary"+ opacity={1}+ sx={{+ borderRadius: "5px",+ boxShadow: "1px 1px 5px 0px #00000060",+ borderRadius: "5px",+ height: "150px",+ width: "120px",+ justifyContent: "center",+ alignItems: "center",+ flexDirection: "column"+ }}+ >+ <Box+ style={{+ height: 10,+ width: "120px",+ backgroundColor: "white",+ marginBottom: "20px",+ top: 15+ }}+ ></Box>+ <Text+ color="white"+ fontSize={14}+ fontFamily="heading"+ textAlign="center"+ px={1}+ >+ My Notebook+ <Text color="white" fontSize={11}>+ Keep it all organized+ </Text>+ </Text>+ </Flex>+ </Box>+ </motion.div>++ <motion.div+ animate={{+ x: -2,+ y: -2+ }}+ transition={{+ duration: 4,+ ease: "linear",+ yoyo: Infinity+ }}+ >+ <Box+ style={{+ width: "130px",+ backgroundColor: "#c9c9c9",+ height: "150px",+ borderRadius: "5px",+ boxShadow: "2px 2px 15px 0px #00000040"+ }}+ >+ <Flex+ backgroundColor="primary"+ opacity={0.5}+ sx={{+ borderRadius: "5px",+ boxShadow: "1px 1px 5px 0px #00000060",+ borderRadius: "5px",+ height: "150px",+ width: "120px",+ justifyContent: "center",+ alignItems: "center",+ flexDirection: "column"+ }}+ >+ <Box+ style={{+ height: 10,+ width: "120px",+ backgroundColor: "white",+ marginBottom: "20px",+ top: 15+ }}+ ></Box>+ <Text+ color="white"+ fontSize={14}+ fontFamily="heading"+ textAlign="center"+ px={1}+ >+ My Notebook+ <Text color="white" fontSize={11}>+ Keep it flowing+ </Text>+ </Text>+ </Flex>+ </Box>+ </motion.div>+ </Flex>++ <Text+ color="icon"+ width="80%"+ marginTop={50}+ alignSelf="center"+ sx={{+ textAlign: "center",+ fontSize: "body"+ }}+ >+ Notebooks you add will appear here.+ </Text>+ </>+ );+};++export default NotebooksPlaceholder;diff --git a/apps/web/src/components/placeholders/notesplacholder.js b/apps/web/src/components/placeholders/notesplacholder.jsnew file mode 100644index 000000000..0185ef53b--- /dev/null+++ b/apps/web/src/components/placeholders/notesplacholder.js@@ -0,0 +1,133 @@+import { motion } from "framer-motion";+import React from "react";+import { Box, Flex, Text } from "rebass";+var parameters = {+ padding: "4px",+ margin: "3px",+ width: "170px",+ shadow: "primary",+ opacity: "0.5"+};++const NotesPlaceholder = props => {+ return (+ <>+ <Flex+ style={{+ position: "relative",+ width: "250px",+ alignItems: "center",+ justifyContent: "center"+ }}+ >+ {[+ {+ right: "0px",+ bottom: "-50px",+ opacity: "0.7",+ x: 2,+ y: 2,+ pos: "absolute"+ },+ {+ right: null,+ bottom: null,+ opacity: "0.9",+ x: -2,+ y: -2,+ pos: "relative"+ }+ ].map(item => (+ <motion.div+ style={{+ position: item.pos,+ left: item.right,+ marginTop: item.bottom,+ boxShadow: "2px 2px 15px 0px #00000060",+ borderRadius: "5px"+ }}+ animate={{+ x: item.x,+ y: item.y+ }}+ transition={{+ duration: 4,+ ease: "linear",+ yoyo: Infinity+ }}+ >+ <Flex+ className="home-animation"+ flexDirection="row"+ bg="#f0f0f0"+ opacity={item.opacity}+ >+ <Flex>+ <Box+ width={1}+ bg="primary"+ sx={{ borderRadius: "25px" }}+ px={parameters.padding}+ height="100%"+ ></Box>+ </Flex>+ <Flex sx={{}} flexDirection="column" px="5px" py="5px">+ <Box+ sx={{+ fontFamily: "heading"+ }}+ color="primary"+ >+ Title+ </Box>+ {[1, 2, 3, 4].map(item => (+ <Box+ opacity={parameters.opacity}+ bg={parameters.shadow}+ sx={{ borderRadius: "25px" }}+ py={parameters.padding}+ my={parameters.margin}+ width={parameters.width}+ ></Box>+ ))}++ <Flex flexDirection="row">+ <Box+ width={1 / 6}+ py={parameters.padding}+ my={parameters.margin}+ sx={{ borderRadius: "25px" }}+ bg="icon"+ ></Box>+ <Box+ width={1 / 6}+ height={1}+ py={parameters.padding}+ my={parameters.margin}+ mx="10px"+ sx={{ borderRadius: "25px" }}+ bg="icon"+ ></Box>+ </Flex>+ </Flex>+ </Flex>+ </motion.div>+ ))}+ </Flex>+ <Text+ color="icon"+ width="80%"+ marginTop={50}+ alignSelf="center"+ sx={{+ textAlign: "center",+ fontSize: "body"+ }}+ >+ Notes you write appear here.+ </Text>+ </>+ );+};++export default NotesPlaceholder;diff --git a/apps/web/src/components/placeholders/tags-placeholder.js b/apps/web/src/components/placeholders/tags-placeholder.jsnew file mode 100644index 000000000..680f8c825--- /dev/null+++ b/apps/web/src/components/placeholders/tags-placeholder.js@@ -0,0 +1,102 @@+import { motion } from "framer-motion";+import React from "react";+import { Flex, Text } from "rebass";++const TagsPlaceholder = props => {+ return (+ <>+ <Flex+ style={{+ width: "300px",+ position: "relative",+ height: "100px",+ alignSelf: "center",+ flexDirection: "row",+ alignItems: "center",+ justifyContent: "center"+ }}+ >+ {[+ {+ delay: 3,+ marginTop: "-50px",+ size: 14,+ text: "presentations",+ left: "25px"+ },+ {+ delay: 12,+ marginTop: "20px",+ size: 16,+ text: "quotesonlife",+ left: "90px"+ },+ {+ delay: 18,+ marginTop: "-25px",+ size: 18,+ text: "workinprogress",+ left: "70px"+ },+ {+ delay: 24,+ marginTop: "0px",+ size: 14,+ text: "todolists",+ left: "35px"+ },+ {+ delay: 30,+ marginTop: "40px",+ size: 24,+ text: "myschoolwork",+ left: "50px"+ }+ ].map(item => (+ <motion.div+ style={{+ padding: 0,+ margin: 0,+ marginTop: item.marginTop,+ left: item.left,+ position: "absolute"+ }}+ animate={{+ opacity: [0, 0.5, 1, 0.5, 0],+ scaleX: [0.7, 0.75, 0.85, 0.9, 1],+ scaleY: [0.7, 0.75, 0.85, 0.9, 1]+ }}+ transition={{+ duration: 12,+ ease: "linear",+ delay: item.delay,+ loop: Infinity+ }}+ >+ <Text color="text" fontSize={item.size} as="span">+ <Text as="span" color="primary">+ #+ </Text>+ {item.text}+ </Text>+ </motion.div>+ ))}+ </Flex>++ <Text+ color="icon"+ width="80%"+ marginTop={50}+ alignSelf="center"+ sx={{+ textAlign: "center",+ fontSize: "body"+ }}+ >+ Tags added to notes appear here.+ </Text>+ </>+ );+};++export default TagsPlaceholder;