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
add notebook placeholder
ammarahm-edc45d2ed8ebdd
diff --git a/apps/mobile/src/components/ListPlaceholders/index.js b/apps/mobile/src/components/ListPlaceholders/index.jsindex 4849cfe85..94ff12f40 100644--- a/apps/mobile/src/components/ListPlaceholders/index.js+++ b/apps/mobile/src/components/ListPlaceholders/index.js@@ -10,95 +10,177 @@ import {slideLeft,slideRight,} from '../../utils/animations';-import {w, hexToRGBA} from '../../utils/utils';+import {w, hexToRGBA, getElevation} from '../../utils/utils';export const NotebookPlaceHolder = ({colors, animation}) => {+ const slideRight = {+ 0: {+ transform: [+ {translateX: -2},+ {+ translateY: -2,+ },+ ],+ },+ 0.5: {+ transform: [+ {translateX: 0},+ {+ translateY: 0,+ },+ ],+ },+ 1: {+ transform: [+ {translateX: 2},+ {+ translateY: 2,+ },+ ],+ },+ };++ const slideLeft = {+ 0: {+ transform: [+ {translateX: 2},+ {+ translateY: 2,+ },+ ],+ },+ 0.5: {+ transform: [+ {translateX: 0},+ {+ translateY: 0,+ },+ ],+ },+ 1: {+ transform: [+ {translateX: -2},+ {+ translateY: -2,+ },+ ],+ },+ };+return (- <Animatable.View- animation={animation}- iterationCount="infinite"- duration={3000}- iterationDelay={0}- direction="alternate"- easing="ease-in"- useNativeDriver={true}+ <Viewstyle={{- backgroundColor: Platform.ios- ? hexToRGBA(colors.accent + '19')- : hexToRGBA(colors.shade),- width: '50%',- padding: 5,- borderRadius: 5,- marginBottom: 10,+ height: 200,}}>- <View- style={{- width: '50%',- height: 15,- borderRadius: 100,- backgroundColor: colors.accent,- marginBottom: 8,- }}- />- <View+ <Animatable.View+ animation={slideLeft}+ iterationCount="infinite"+ duration={3000}+ iterationDelay={0}+ direction="alternate"+ easing="ease-in"+ useNativeDriver={true}style={{- width: '70%',- height: 10,-- marginBottom: 8,- flexDirection: 'row',+ ...getElevation(5),+ backgroundColor: '#a9a9a9',+ width: 130,+ borderRadius: 5,+ height: 150,+ zIndex: 10,}}><Viewstyle={{- width: '30%',- height: 10,- borderRadius: 5,+ ...getElevation(3),backgroundColor: colors.accent,- marginRight: 8,- }}- />- <View- style={{- width: '30%',- height: 10,+ width: 120,borderRadius: 5,- backgroundColor: colors.accent,- marginRight: 8,- }}- />- <View- style={{- width: '30%',- height: 10,- borderRadius: 5,- backgroundColor: colors.accent,- marginRight: 8,- }}- />- </View>- <View+ height: 150,+ alignSelf: 'flex-start',+ justifyContent: 'center',+ }}>+ <View+ style={{+ width: '100%',+ height: 8,+ backgroundColor: 'white',+ marginBottom: 15,+ }}></View>+ <Text+ style={{+ fontFamily: WEIGHT.bold,+ fontSize: SIZE.xs,+ color: 'white',+ textAlign: 'center',+ }}>+ My Notebook+ </Text>+ <Text+ style={{+ fontFamily: WEIGHT.regular,+ fontSize: SIZE.xxs,+ color: 'white',+ textAlign: 'center',+ }}>+ Keep it orgainzed+ </Text>+ </View>+ </Animatable.View>+ <Animatable.View+ animation={slideRight}+ iterationCount="infinite"+ duration={3000}+ iterationDelay={0}+ direction="alternate"+ easing="ease-in"+ useNativeDriver={true}style={{- flexDirection: 'row',+ ...getElevation(5),+ backgroundColor: '#a9a9a9',+ width: 130,+ borderRadius: 5,+ height: 150,+ position: 'absolute',+ left: 35,+ top: 60,}}><Viewstyle={{- width: '15%',- height: 8,- borderRadius: 5,- backgroundColor: colors.icon,- marginRight: '5%',- }}- />- <View- style={{- width: '15%',- height: 8,+ ...getElevation(3),+ backgroundColor: colors.accent,+ width: 120,borderRadius: 5,- backgroundColor: colors.icon,- }}- />- </View>- </Animatable.View>+ height: 150,+ alignSelf: 'flex-start',+ justifyContent: 'center',+ }}>+ <View+ style={{+ width: '100%',+ height: 8,+ backgroundColor: 'white',+ marginBottom: 15,+ }}></View>+ <Text+ style={{+ fontFamily: WEIGHT.bold,+ fontSize: SIZE.xs,+ color: 'white',+ textAlign: 'center',+ }}>+ My Notebook+ </Text>+ <Text+ style={{+ fontFamily: WEIGHT.regular,+ fontSize: SIZE.xxs,+ color: 'white',+ textAlign: 'center',+ }}>+ Keep it orgainzed+ </Text>+ </View>+ </Animatable.View>+ </View>);};diff --git a/apps/mobile/src/components/SimpleList/index.js b/apps/mobile/src/components/SimpleList/index.jsindex bc825465c..244960c8a 100644--- a/apps/mobile/src/components/SimpleList/index.js+++ b/apps/mobile/src/components/SimpleList/index.js@@ -164,7 +164,7 @@ const SimpleList = ({alignItems: 'center',alignSelf: 'center',justifyContent: 'center',- opacity: 0.8,+ opacity: 1,}}><>{placeholder}diff --git a/apps/mobile/src/views/Folders/index.js b/apps/mobile/src/views/Folders/index.jsindex f4716e54b..c9b04a77a 100644--- a/apps/mobile/src/views/Folders/index.js+++ b/apps/mobile/src/views/Folders/index.js@@ -133,8 +133,6 @@ export const Folders = ({navigation}) => {placeholder={<><NotebookPlaceHolder animation={slideRight} colors={colors} />- <NotebookPlaceHolder animation={slideLeft} colors={colors} />- <NotebookPlaceHolder animation={slideRight} colors={colors} /></>}pinned={pinned}