mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
mobile: update onboarding screen ui
This commit is contained in:
committed by
Abdullah Atta
parent
e3c3bd3c9c
commit
d9127df1a3
File diff suppressed because one or more lines are too long
@@ -19,6 +19,6 @@ export const getLineHeight = (
|
||||
fontSize: keyof typeof FontSizes,
|
||||
type: 1 | 2
|
||||
) => {
|
||||
if (type === 1) return FontSizes[fontSize];
|
||||
if (type === 1) return (FontSizes[fontSize] / 100) * 120;
|
||||
if (type === 2) return (FontSizes[fontSize] / 100) * 150;
|
||||
};
|
||||
|
||||
306
apps/mobile/app/components/intro/illustration.tsx
Normal file
306
apps/mobile/app/components/intro/illustration.tsx
Normal file
@@ -0,0 +1,306 @@
|
||||
/*
|
||||
This file is part of the Notesnook project (https://notesnook.com/)
|
||||
|
||||
Copyright (C) 2023 Streetwriters (Private) Limited
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import { Gesture, GestureDetector } from "react-native-gesture-handler";
|
||||
import Animated, {
|
||||
Easing,
|
||||
useAnimatedStyle,
|
||||
useSharedValue,
|
||||
withRepeat,
|
||||
withSequence,
|
||||
withSpring,
|
||||
withTiming
|
||||
} from "react-native-reanimated";
|
||||
import Svg, {
|
||||
Circle,
|
||||
ClipPath,
|
||||
Defs,
|
||||
G,
|
||||
Mask,
|
||||
Path,
|
||||
Rect
|
||||
} from "react-native-svg";
|
||||
|
||||
const SPRING_CONFIG = {
|
||||
damping: 14,
|
||||
stiffness: 120,
|
||||
mass: 0.8
|
||||
};
|
||||
|
||||
// Each icon floats independently with a different phase/speed
|
||||
function useFloatAnim(delay: number, range = 6) {
|
||||
const y = useSharedValue(0);
|
||||
|
||||
React.useEffect(() => {
|
||||
const start = () => {
|
||||
y.value = withSequence(
|
||||
withTiming(0, { duration: delay, easing: Easing.linear }),
|
||||
withRepeat(
|
||||
withSequence(
|
||||
withTiming(-range, {
|
||||
duration: 1600,
|
||||
easing: Easing.inOut(Easing.sin)
|
||||
}),
|
||||
withTiming(range, {
|
||||
duration: 1600,
|
||||
easing: Easing.inOut(Easing.sin)
|
||||
})
|
||||
),
|
||||
-1, // infinite
|
||||
true // reverse
|
||||
)
|
||||
);
|
||||
};
|
||||
start();
|
||||
}, []);
|
||||
|
||||
return y;
|
||||
}
|
||||
|
||||
export const IntroIllustration = () => {
|
||||
// Gesture-driven tilt
|
||||
const tiltX = useSharedValue(0); // rotateX: finger up/down
|
||||
const tiltY = useSharedValue(0); // rotateY: finger left/right
|
||||
const translateX = useSharedValue(0);
|
||||
const translateY = useSharedValue(0);
|
||||
|
||||
// Independent float offsets for each corner icon
|
||||
const floatTR = useFloatAnim(0, 2); // top-right lock
|
||||
const floatBR = useFloatAnim(500, 4); // bottom-right eye-off
|
||||
const floatTL = useFloatAnim(260, 3); // top-left share
|
||||
const floatBL = useFloatAnim(780, 2); // bottom-left document
|
||||
const pan = Gesture.Pan()
|
||||
.onUpdate((e) => {
|
||||
// Clamp tilt to ±15 degrees and translate ±12 pts
|
||||
tiltY.value = (e.translationX / 12) * 1;
|
||||
tiltX.value = -(e.translationY / 12) * 1;
|
||||
translateX.value = e.translationX * 0.08;
|
||||
translateY.value = e.translationY * 0.08;
|
||||
})
|
||||
.onEnd(() => {
|
||||
tiltX.value = withSpring(0, SPRING_CONFIG);
|
||||
tiltY.value = withSpring(0, SPRING_CONFIG);
|
||||
translateX.value = withSpring(0, SPRING_CONFIG);
|
||||
translateY.value = withSpring(0, SPRING_CONFIG);
|
||||
});
|
||||
|
||||
const containerStyle = useAnimatedStyle(() => ({
|
||||
transform: [
|
||||
{ perspective: 600 },
|
||||
{ rotateX: `${tiltX.value}deg` },
|
||||
{ rotateY: `${tiltY.value}deg` },
|
||||
{ translateX: translateX.value },
|
||||
{ translateY: translateY.value }
|
||||
]
|
||||
}));
|
||||
|
||||
// Derived animated styles for each floating icon
|
||||
const styleTR = useAnimatedStyle(() => ({
|
||||
transform: [{ translateY: floatTR.value }]
|
||||
}));
|
||||
const styleBR = useAnimatedStyle(() => ({
|
||||
transform: [{ translateY: floatBR.value }]
|
||||
}));
|
||||
const styleTL = useAnimatedStyle(() => ({
|
||||
transform: [{ translateY: floatTL.value }]
|
||||
}));
|
||||
const styleBL = useAnimatedStyle(() => ({
|
||||
transform: [{ translateY: floatBL.value }]
|
||||
}));
|
||||
|
||||
return (
|
||||
<GestureDetector gesture={pan}>
|
||||
<Animated.View style={containerStyle}>
|
||||
<Svg width={243} height={210} viewBox="0 0 243 210" fill="none">
|
||||
{/* ── Concentric background circles (static) ── */}
|
||||
<Circle
|
||||
cx={116}
|
||||
cy={105}
|
||||
r={104.75}
|
||||
stroke="#1F2722"
|
||||
strokeWidth={0.5}
|
||||
/>
|
||||
<Circle
|
||||
cx={116.5}
|
||||
cy={105.5}
|
||||
r={95.25}
|
||||
fill="#008836"
|
||||
fillOpacity={0.09}
|
||||
stroke="#233C2D"
|
||||
strokeWidth={0.5}
|
||||
/>
|
||||
<Circle
|
||||
cx={116.5}
|
||||
cy={105.5}
|
||||
r={82.25}
|
||||
fill="#008836"
|
||||
fillOpacity={0.09}
|
||||
stroke="#233C2D"
|
||||
strokeWidth={0.5}
|
||||
/>
|
||||
<Circle
|
||||
cx={116.5}
|
||||
cy={105.5}
|
||||
r={62.25}
|
||||
fill="#008836"
|
||||
fillOpacity={0.08}
|
||||
stroke="#233C2D"
|
||||
strokeWidth={0.5}
|
||||
/>
|
||||
<Circle cx={116.5} cy={105.5} r={44.5} fill="#008836" />
|
||||
|
||||
{/* ── Defs ── */}
|
||||
<Defs>
|
||||
<ClipPath id="clip0">
|
||||
<Rect width={45} height={45} x={94.5} y={83} />
|
||||
</ClipPath>
|
||||
<ClipPath id="clip1">
|
||||
<Rect width={21.5} height={21.5} x={202.75} y={176.75} />
|
||||
</ClipPath>
|
||||
<Mask
|
||||
id="mask0"
|
||||
maskUnits="userSpaceOnUse"
|
||||
x={91}
|
||||
y={80}
|
||||
width={52}
|
||||
height={51}
|
||||
>
|
||||
<Path
|
||||
d="M132.504 80.055H101.496C96.007 80.055 91.5574 84.5046 91.5574 89.9935V121.002C91.5574 126.491 96.007 130.94 101.496 130.94H132.504C137.993 130.94 142.443 126.491 142.443 121.002V89.9935C142.443 84.5046 137.993 80.055 132.504 80.055Z"
|
||||
fill="white"
|
||||
/>
|
||||
</Mask>
|
||||
</Defs>
|
||||
|
||||
{/* ── Centre logo (static) ── */}
|
||||
<G clipPath="url(#clip0)">
|
||||
<G mask="url(#mask0)">
|
||||
<Path
|
||||
d="M127.584 113.991C126.726 116.496 125.008 118.616 122.734 119.973C120.461 121.33 117.78 121.836 115.168 121.401C112.556 120.967 110.183 119.62 108.471 117.6C106.759 115.58 105.82 113.018 105.819 110.371V104.892L109.751 106.535V110.368C109.751 111.401 109.971 112.422 110.398 113.362C110.825 114.302 111.448 115.14 112.226 115.819C112.373 115.948 112.527 116.073 112.685 116.19C113.845 117.054 115.239 117.549 116.685 117.611C116.734 117.611 116.781 117.615 116.83 117.616C116.879 117.617 116.942 117.616 116.998 117.616H117.166C117.221 117.616 117.262 117.616 117.311 117.611C118.756 117.549 120.149 117.054 121.31 116.191C121.467 116.074 121.621 115.949 121.769 115.821C122.79 114.927 123.541 113.765 123.934 112.467L127.584 113.991ZM128.181 100.628V110.371C128.181 110.497 128.181 110.623 128.173 110.749L124.249 109.108V100.628C124.249 98.7551 123.523 96.9554 122.225 95.6055C120.928 94.2557 119.158 93.4604 117.287 93.3862C115.415 93.3121 113.588 93.9649 112.188 95.2078C110.787 96.4508 109.922 98.1875 109.773 100.054C109.759 100.243 109.751 100.435 109.751 100.628V103.048L105.819 101.405V89.4469H117C119.965 89.4469 122.809 90.6249 124.906 92.7217C127.003 94.8185 128.181 97.6624 128.181 100.628Z"
|
||||
fill="white"
|
||||
/>
|
||||
</G>
|
||||
</G>
|
||||
</Svg>
|
||||
|
||||
{/* ── Floating corner icons rendered as absolute Animated.Views over the SVG ── */}
|
||||
|
||||
{/* Top-left — share */}
|
||||
<Animated.View
|
||||
style={[{ position: "absolute", top: 0, left: -10 }, styleTL]}
|
||||
>
|
||||
<Svg width={47} height={47} viewBox="0 0 47 47" fill="none">
|
||||
<Rect
|
||||
x={0.25}
|
||||
y={0.25}
|
||||
width={46.5}
|
||||
height={46.5}
|
||||
rx={7.75}
|
||||
fill="#1A1D1B"
|
||||
stroke="#233C2D"
|
||||
strokeWidth={0.5}
|
||||
/>
|
||||
<Rect width={22} height={22} x={13} y={12} fill="#171F1A" />
|
||||
<Path
|
||||
d="M28.125 25.75C27.6663 25.7499 27.2124 25.8417 26.7899 26.0202C26.3674 26.1987 25.9851 26.4601 25.6654 26.789L21.7037 24.2427C22.0153 23.4435 22.0153 22.5565 21.7037 21.7573L25.6654 19.211C26.2605 19.8206 27.0607 20.1875 27.911 20.2406C28.7612 20.2937 29.6008 20.0292 30.2671 19.4984C30.9334 18.9675 31.3788 18.2082 31.5171 17.3677C31.6554 16.5271 31.4766 15.6651 31.0154 14.9488C30.5542 14.2326 29.8435 13.7131 29.0211 13.4911C28.1987 13.269 27.3231 13.3603 26.5641 13.7472C25.8051 14.134 25.2169 14.7889 24.9133 15.5849C24.6098 16.3808 24.6126 17.2612 24.9212 18.0552L20.9595 20.6015C20.4824 20.1117 19.8701 19.7753 19.2009 19.6353C18.5317 19.4953 17.8359 19.5581 17.2025 19.8156C16.5691 20.0731 16.0269 20.5136 15.6452 21.0808C15.2635 21.6481 15.0596 22.3163 15.0596 23C15.0596 23.6837 15.2635 24.3519 15.6452 24.9192C16.0269 25.4864 16.5691 25.9269 17.2025 26.1844C17.8359 26.4419 18.5317 26.5047 19.2009 26.3647C19.8701 26.2247 20.4824 25.8883 20.9595 25.3985L24.9212 27.9448C24.6558 28.6294 24.6165 29.3809 24.8091 30.0893C25.0018 30.7978 25.4161 31.4259 25.9916 31.8819C26.567 32.3378 27.2733 32.5975 28.007 32.6229C28.7408 32.6484 29.4634 32.4383 30.069 32.0233C30.6747 31.6084 31.1316 31.0105 31.3729 30.3171C31.6141 29.6237 31.627 28.8712 31.4097 28.17C31.1924 27.4687 30.7562 26.8554 30.1652 26.42C29.5741 25.9845 28.8591 25.7497 28.125 25.75ZM28.125 14.75C28.5329 14.75 28.9317 14.871 29.2708 15.0976C29.61 15.3242 29.8744 15.6463 30.0305 16.0232C30.1866 16.4001 30.2274 16.8148 30.1478 17.2149C30.0683 17.615 29.8718 17.9825 29.5834 18.2709C29.2949 18.5594 28.9274 18.7558 28.5273 18.8354C28.1273 18.915 27.7126 18.8741 27.3357 18.718C26.9588 18.5619 26.6367 18.2975 26.4101 17.9584C26.1834 17.6192 26.0625 17.2204 26.0625 16.8125C26.0625 16.2655 26.2798 15.7409 26.6666 15.3541C27.0533 14.9673 27.578 14.75 28.125 14.75ZM18.5 25.0625C18.092 25.0625 17.6933 24.9415 17.3541 24.7149C17.0149 24.4883 16.7506 24.1662 16.5945 23.7893C16.4384 23.4124 16.3975 22.9977 16.4771 22.5976C16.5567 22.1975 16.7531 21.83 17.0416 21.5416C17.33 21.2532 17.6975 21.0567 18.0976 20.9771C18.4977 20.8976 18.9124 20.9384 19.2892 21.0945C19.6661 21.2506 19.9882 21.515 20.2149 21.8541C20.4415 22.1933 20.5625 22.5921 20.5625 23C20.5625 23.547 20.3452 24.0716 19.9584 24.4584C19.5716 24.8452 19.047 25.0625 18.5 25.0625ZM28.125 31.25C27.717 31.25 27.3183 31.129 26.9791 30.9024C26.6399 30.6758 26.3756 30.3537 26.2195 29.9768C26.0634 29.5999 26.0225 29.1852 26.1021 28.7851C26.1817 28.385 26.3781 28.0175 26.6666 27.7291C26.955 27.4407 27.3225 27.2442 27.7226 27.1646C28.1227 27.0851 28.5374 27.1259 28.9142 27.282C29.2911 27.4381 29.6132 27.7025 29.8399 28.0416C30.0665 28.3808 30.1875 28.7796 30.1875 29.1875C30.1875 29.7345 29.9702 30.2591 29.5834 30.6459C29.1966 31.0327 28.672 31.25 28.125 31.25Z"
|
||||
fill="#008836"
|
||||
/>
|
||||
</Svg>
|
||||
</Animated.View>
|
||||
|
||||
{/* Top-right — lock */}
|
||||
<Animated.View
|
||||
style={[{ position: "absolute", top: 28, right: -5 }, styleTR]}
|
||||
>
|
||||
<Svg width={32} height={32} viewBox="0 0 32 32" fill="none">
|
||||
<Rect
|
||||
x={0.25}
|
||||
y={0.25}
|
||||
width={31.5}
|
||||
height={31.5}
|
||||
rx={7.75}
|
||||
fill="#1A1D1B"
|
||||
stroke="#233C2D"
|
||||
strokeWidth={0.5}
|
||||
/>
|
||||
<Path
|
||||
d="M16 14.125C15.475 14.1252 14.967 14.3144 14.57 14.658C14.172 15.0017 13.912 15.4769 13.836 15.9967C13.76 16.5165 13.874 17.0462 14.157 17.4891C14.439 17.9319 14.872 18.2583 15.375 18.4086V19.75C15.375 19.9158 15.441 20.0747 15.558 20.1919C15.675 20.3092 15.834 20.375 16 20.375C16.166 20.375 16.325 20.3092 16.442 20.1919C16.559 20.0747 16.625 19.9158 16.625 19.75V18.4086C17.128 18.2583 17.561 17.9319 17.843 17.4891C18.126 17.0462 18.24 16.5165 18.164 15.9967C18.088 15.4769 17.828 15.0017 17.43 14.658C17.033 14.3144 16.525 14.1252 16 14.125ZM16 17.25C15.815 17.25 15.633 17.195 15.479 17.092C15.325 16.989 15.205 16.8426 15.134 16.6713C15.063 16.5 15.044 16.3115 15.081 16.1296C15.117 15.9477 15.206 15.7807 15.337 15.6496C15.468 15.5185 15.635 15.4292 15.817 15.393C15.999 15.3568 16.187 15.3754 16.359 15.4464C16.53 15.5173 16.676 15.6375 16.78 15.7917C16.883 15.9458 16.937 16.1271 16.937 16.3125C16.937 16.5611 16.839 16.7996 16.663 16.9754C16.487 17.1512 16.249 17.25 16 17.25ZM22.25 11.625H19.75V9.75C19.75 8.7554 19.355 7.8016 18.652 7.0983C17.948 6.3951 16.995 6 16 6C15.005 6 14.052 6.3951 13.348 7.0983C12.645 7.8016 12.25 8.7554 12.25 9.75V11.625H9.75C9.418 11.625 9.101 11.7567 8.866 11.9911C8.632 12.2255 8.5 12.5435 8.5 12.875V21.625C8.5 21.9565 8.632 22.2745 8.866 22.5089C9.101 22.7433 9.418 22.875 9.75 22.875H22.25C22.582 22.875 22.899 22.7433 23.134 22.5089C23.368 22.2745 23.5 21.9565 23.5 21.625V12.875C23.5 12.5435 23.368 12.2255 23.134 11.9911C22.899 11.7567 22.582 11.625 22.25 11.625ZM13.5 9.75C13.5 9.087 13.763 8.4511 14.232 7.9822C14.701 7.5134 15.337 7.25 16 7.25C16.663 7.25 17.299 7.5134 17.768 7.9822C18.237 8.4511 18.5 9.087 18.5 9.75V11.625H13.5V9.75ZM22.25 21.625H9.75V12.875H22.25V21.625Z"
|
||||
fill="#008836"
|
||||
/>
|
||||
</Svg>
|
||||
</Animated.View>
|
||||
|
||||
{/* Bottom-left — document */}
|
||||
<Animated.View
|
||||
style={[{ position: "absolute", bottom: 0, left: 25 }, styleBL]}
|
||||
>
|
||||
<Svg width={35} height={35} viewBox="0 0 35 35" fill="none">
|
||||
<Rect
|
||||
x={0.25}
|
||||
y={0.25}
|
||||
width={34.5}
|
||||
height={34.5}
|
||||
rx={7.75}
|
||||
fill="#1A1D1B"
|
||||
stroke="#233C2D"
|
||||
strokeWidth={0.5}
|
||||
/>
|
||||
<Rect
|
||||
width={18.3333}
|
||||
height={18.3333}
|
||||
x={8.3334}
|
||||
y={8.333}
|
||||
fill="#171F1A"
|
||||
/>
|
||||
<Path
|
||||
d="M23.6346 14.178L19.6242 10.168C19.5709 10.114 19.5077 10.072 19.4382 10.044C19.3686 10.015 19.2941 10 19.2188 10H12.3438C12.0399 10 11.7485 10.121 11.5336 10.336C11.3187 10.551 11.198 10.842 11.198 11.146V23.75C11.198 24.054 11.3187 24.345 11.5336 24.56C11.7485 24.775 12.0399 24.896 12.3438 24.896H22.6563C22.9602 24.896 23.2517 24.775 23.4666 24.56C23.6814 24.345 23.8022 24.054 23.8022 23.75V14.583C23.8022 14.508 23.7875 14.434 23.7587 14.364C23.7299 14.295 23.6878 14.231 23.6346 14.178ZM19.7917 11.956L21.8464 14.01H19.7917V11.956ZM22.6563 23.75H12.3438V11.146H18.6459V14.583C18.6459 14.735 18.7063 14.881 18.8137 14.989C18.9212 15.096 19.0669 15.156 19.2188 15.156H22.6563V23.75ZM20.3647 18.021C20.3647 18.173 20.3043 18.319 20.1969 18.426C20.0894 18.533 19.9437 18.594 19.7917 18.594H15.2084C15.0565 18.594 14.9107 18.533 14.8033 18.426C14.6959 18.319 14.6355 18.173 14.6355 18.021C14.6355 17.869 14.6959 17.723 14.8033 17.616C14.9107 17.508 15.0565 17.448 15.2084 17.448H19.7917C19.9437 17.448 20.0894 17.508 20.1969 17.616C20.3043 17.723 20.3647 17.869 20.3647 18.021ZM20.3647 20.313C20.3647 20.465 20.3043 20.61 20.1969 20.718C20.0894 20.825 19.9437 20.885 19.7917 20.885H15.2084C15.0565 20.885 14.9107 20.825 14.8033 20.718C14.6959 20.61 14.6355 20.465 14.6355 20.313C14.6355 20.161 14.6959 20.015 14.8033 19.907C14.9107 19.8 15.0565 19.74 15.2084 19.74H19.7917C19.9437 19.74 20.0894 19.8 20.1969 19.907C20.3043 20.015 20.3647 20.161 20.3647 20.313Z"
|
||||
fill="#008836"
|
||||
/>
|
||||
</Svg>
|
||||
</Animated.View>
|
||||
|
||||
{/* Bottom-right — eye-off */}
|
||||
<Animated.View
|
||||
style={[{ position: "absolute", bottom: 0, right: 5 }, styleBR]}
|
||||
>
|
||||
<Svg width={43} height={43} viewBox="0 0 43 43" fill="none">
|
||||
<Rect
|
||||
x={0.25}
|
||||
y={0.25}
|
||||
width={42.5}
|
||||
height={42.5}
|
||||
rx={7.75}
|
||||
fill="#1A1D1B"
|
||||
stroke="#233C2D"
|
||||
strokeWidth={0.5}
|
||||
/>
|
||||
<G>
|
||||
<Path
|
||||
d="M15.028 3.408C14.969 3.341 14.898 3.287 14.818 3.248C14.738 3.21 14.651 3.187 14.562 3.182C14.473 3.178 14.384 3.191 14.301 3.22C14.217 3.25 14.14 3.296 14.074 3.356C14.008 3.416 13.955 3.488 13.917 3.569C13.88 3.649 13.858 3.737 13.855 3.825C13.851 3.914 13.865 4.003 13.896 4.086C13.926 4.17 13.973 4.246 14.034 4.311L15.65 6.089C12.6 7.961 11.288 10.847 11.23 10.978C11.192 11.064 11.172 11.157 11.172 11.251C11.172 11.345 11.192 11.438 11.23 11.524C11.259 11.59 11.971 13.167 13.552 14.749C15.659 16.855 18.321 17.969 21.25 17.969C22.756 17.977 24.246 17.667 25.623 17.059L27.471 19.092C27.53 19.159 27.601 19.213 27.681 19.252C27.761 19.29 27.848 19.313 27.937 19.317C28.026 19.322 28.115 19.309 28.199 19.28C28.282 19.25 28.359 19.204 28.425 19.144C28.491 19.084 28.544 19.012 28.582 18.931C28.62 18.851 28.641 18.763 28.645 18.675C28.648 18.586 28.634 18.497 28.604 18.414C28.573 18.33 28.526 18.254 28.465 18.189L15.028 3.408ZM19.003 9.777L22.503 13.628C21.976 13.905 21.372 13.999 20.785 13.896C20.199 13.793 19.663 13.497 19.263 13.057C18.862 12.616 18.62 12.055 18.573 11.461C18.526 10.868 18.677 10.275 19.003 9.777ZM21.25 16.625C18.665 16.625 16.407 15.685 14.537 13.833C13.77 13.07 13.117 12.2 12.6 11.25C12.993 10.512 14.251 8.446 16.576 7.103L18.088 8.762C17.503 9.511 17.201 10.443 17.237 11.394C17.273 12.344 17.643 13.251 18.283 13.955C18.923 14.658 19.791 15.113 20.733 15.238C21.676 15.364 22.633 15.152 23.434 14.64L24.672 16.001C23.58 16.42 22.419 16.631 21.25 16.625ZM21.754 8.61C21.579 8.577 21.424 8.475 21.324 8.328C21.224 8.181 21.186 7.999 21.22 7.824C21.253 7.649 21.355 7.495 21.502 7.394C21.65 7.294 21.831 7.257 22.006 7.29C22.862 7.456 23.642 7.895 24.229 8.54C24.815 9.185 25.178 10.003 25.262 10.871C25.279 11.049 25.224 11.225 25.11 11.363C24.997 11.5 24.833 11.586 24.656 11.603C24.635 11.604 24.614 11.604 24.593 11.603C24.425 11.603 24.263 11.541 24.138 11.428C24.014 11.316 23.936 11.16 23.921 10.993C23.864 10.416 23.623 9.872 23.232 9.442C22.842 9.013 22.323 8.721 21.754 8.61ZM31.268 11.524C31.232 11.603 30.382 13.486 28.466 15.202C28.4 15.263 28.324 15.31 28.24 15.34C28.156 15.371 28.067 15.384 27.978 15.38C27.889 15.376 27.802 15.354 27.721 15.316C27.641 15.277 27.569 15.223 27.509 15.157C27.45 15.091 27.404 15.013 27.375 14.929C27.346 14.845 27.334 14.755 27.339 14.666C27.345 14.577 27.368 14.491 27.408 14.411C27.447 14.331 27.502 14.26 27.57 14.201C28.51 13.357 29.299 12.359 29.905 11.25C29.386 10.299 28.732 9.429 27.963 8.666C26.093 6.815 23.835 5.875 21.25 5.875C20.705 5.874 20.162 5.918 19.624 6.007C19.537 6.022 19.447 6.02 19.36 6.001C19.274 5.982 19.192 5.945 19.119 5.894C19.047 5.843 18.985 5.778 18.938 5.703C18.891 5.627 18.859 5.544 18.844 5.456C18.83 5.369 18.833 5.279 18.853 5.193C18.873 5.106 18.91 5.025 18.962 4.953C19.014 4.88 19.079 4.819 19.155 4.773C19.231 4.726 19.315 4.695 19.402 4.682C20.013 4.581 20.631 4.53 21.25 4.531C24.179 4.531 26.841 5.645 28.948 7.752C30.529 9.333 31.241 10.912 31.27 10.978C31.308 11.064 31.328 11.157 31.328 11.251C31.328 11.345 31.308 11.438 31.27 11.524H31.268Z"
|
||||
fill="#008836"
|
||||
transform="translate(0, 10)"
|
||||
/>
|
||||
</G>
|
||||
</Svg>
|
||||
</Animated.View>
|
||||
</Animated.View>
|
||||
</GestureDetector>
|
||||
);
|
||||
};
|
||||
@@ -20,97 +20,83 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
import { strings } from "@notesnook/intl";
|
||||
import { useThemeColors } from "@notesnook/theme";
|
||||
import React from "react";
|
||||
import { Linking, useWindowDimensions, View } from "react-native";
|
||||
import { SwiperFlatList } from "react-native-swiper-flatlist";
|
||||
import useGlobalSafeAreaInsets from "../../hooks/use-global-safe-area-insets";
|
||||
import { Linking, Platform, useWindowDimensions, View } from "react-native";
|
||||
import Animated, { FadeIn, FadeOut } from "react-native-reanimated";
|
||||
import { SafeAreaView } from "react-native-safe-area-context";
|
||||
import { Spacing } from "../../common/design/spacing";
|
||||
import useRotator from "../../hooks/use-rotator";
|
||||
import Navigation from "../../services/navigation";
|
||||
import { AppFontSize } from "../../utils/size";
|
||||
import { DefaultAppStyles } from "../../utils/styles";
|
||||
import SettingsService from "../../services/settings";
|
||||
import { AuthMode } from "../auth/common";
|
||||
import { Button } from "../ui/button";
|
||||
import Heading from "../ui/typography/heading";
|
||||
import Paragraph from "../ui/typography/paragraph";
|
||||
import SettingsService from "../../services/settings";
|
||||
import { SafeAreaView } from "react-native-safe-area-context";
|
||||
import { IntroIllustration } from "./illustration";
|
||||
import { ProgressPills } from "./progress-pills";
|
||||
import useGlobalSafeAreaInsets from "../../hooks/use-global-safe-area-insets";
|
||||
|
||||
const Intro = () => {
|
||||
const { colors } = useThemeColors();
|
||||
const { width } = useWindowDimensions();
|
||||
const insets = useGlobalSafeAreaInsets();
|
||||
const isTablet = width > 600;
|
||||
const rotator = useRotator([0, 1, 2], 10000, true);
|
||||
const insets = useGlobalSafeAreaInsets();
|
||||
|
||||
const renderItem = React.useCallback(
|
||||
({ item }: { item: (typeof strings.introData)[0] }) => (
|
||||
<View
|
||||
<Animated.View
|
||||
entering={FadeIn}
|
||||
exiting={FadeOut}
|
||||
style={{
|
||||
justifyContent: "center",
|
||||
width: isTablet ? width / 2 : width,
|
||||
paddingHorizontal: isTablet ? (width / 2) * 0.05 : width * 0.05
|
||||
justifyContent: "flex-start"
|
||||
}}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
flexDirection: "row"
|
||||
gap: Spacing.LEVEL_2
|
||||
}}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
width: 100,
|
||||
height: 5,
|
||||
backgroundColor: colors.primary.accent,
|
||||
borderRadius: 2,
|
||||
marginRight: 7
|
||||
}}
|
||||
/>
|
||||
{item.headings?.map((heading) =>
|
||||
heading.bold ? (
|
||||
<Heading
|
||||
key={heading.value()}
|
||||
fontFamily="SEMI_BOLD"
|
||||
fontSize="XXL"
|
||||
>
|
||||
{heading.value()}
|
||||
</Heading>
|
||||
) : (
|
||||
<Paragraph fontFamily="MEDIUM" fontSize="XL">
|
||||
{heading.value()}
|
||||
</Paragraph>
|
||||
)
|
||||
)}
|
||||
|
||||
<View
|
||||
style={{
|
||||
width: 20,
|
||||
height: 5,
|
||||
backgroundColor: colors.secondary.background,
|
||||
borderRadius: 2
|
||||
}}
|
||||
/>
|
||||
</View>
|
||||
<View
|
||||
style={{
|
||||
marginTop: DefaultAppStyles.GAP_VERTICAL,
|
||||
maxWidth: "90%",
|
||||
width: "100%"
|
||||
}}
|
||||
>
|
||||
{item.headings?.map((heading) => (
|
||||
<Heading
|
||||
key={heading()}
|
||||
style={{
|
||||
marginBottom: 5
|
||||
}}
|
||||
extraBold
|
||||
size={AppFontSize.xxl}
|
||||
>
|
||||
{heading()}
|
||||
</Heading>
|
||||
))}
|
||||
{item.user ? (
|
||||
<Paragraph fontFamily="MEDIUM" fontSize="XL">
|
||||
{item.user}
|
||||
</Paragraph>
|
||||
) : null}
|
||||
|
||||
{item.body ? (
|
||||
<Paragraph size={AppFontSize.sm}>{item.body()}</Paragraph>
|
||||
<Paragraph color={colors.secondary.paragraph} fontSize="SM">
|
||||
{item.body()}
|
||||
</Paragraph>
|
||||
) : null}
|
||||
|
||||
{item.tesimonial ? (
|
||||
<Paragraph
|
||||
style={{
|
||||
fontStyle: "italic",
|
||||
fontSize: AppFontSize.lg
|
||||
}}
|
||||
fontSize="SM"
|
||||
color={colors.secondary.paragraph}
|
||||
onPress={() => {
|
||||
Linking.openURL(item.link);
|
||||
// Linking.openURL(item.link);
|
||||
}}
|
||||
>
|
||||
{item.tesimonial()} — {item.user}
|
||||
{item.tesimonial()}
|
||||
</Paragraph>
|
||||
) : null}
|
||||
</View>
|
||||
</View>
|
||||
</Animated.View>
|
||||
),
|
||||
[colors.primary.accent, colors.secondary.background, isTablet, width]
|
||||
);
|
||||
@@ -126,17 +112,25 @@ const Intro = () => {
|
||||
<View
|
||||
testID="notesnook.splashscreen"
|
||||
style={{
|
||||
flex: 1
|
||||
flex: 1,
|
||||
paddingTop: Platform.OS === "android" ? 60 - insets.top : undefined
|
||||
}}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
flexDirection: "row",
|
||||
paddingHorizontal: Spacing.LEVEL_3
|
||||
}}
|
||||
>
|
||||
<ProgressPills activePillIndex={0} />
|
||||
</View>
|
||||
|
||||
<View
|
||||
style={[
|
||||
{
|
||||
width: "100%",
|
||||
borderBottomWidth: 1,
|
||||
borderBottomColor: colors.primary.border,
|
||||
paddingTop: insets.top + 10,
|
||||
paddingBottom: insets.top + 10,
|
||||
flexGrow: 1
|
||||
},
|
||||
isTablet && {
|
||||
@@ -149,33 +143,34 @@ const Intro = () => {
|
||||
}
|
||||
]}
|
||||
>
|
||||
<SwiperFlatList
|
||||
autoplay
|
||||
autoplayDelay={10}
|
||||
autoplayLoop={true}
|
||||
index={0}
|
||||
useReactNativeGestureHandler={true}
|
||||
showPagination
|
||||
data={strings.introData}
|
||||
paginationActiveColor={colors.primary.accent}
|
||||
paginationStyleItem={{
|
||||
width: 10,
|
||||
height: 5,
|
||||
marginRight: 4,
|
||||
marginLeft: 4
|
||||
<View
|
||||
style={{
|
||||
alignItems: "center",
|
||||
alignSelf: "center",
|
||||
paddingVertical: Spacing.LEVEL_7
|
||||
}}
|
||||
paginationDefaultColor={colors.primary.border}
|
||||
renderItem={renderItem}
|
||||
/>
|
||||
>
|
||||
<IntroIllustration />
|
||||
</View>
|
||||
|
||||
<View
|
||||
style={{
|
||||
paddingHorizontal: Spacing.LEVEL_3
|
||||
}}
|
||||
>
|
||||
{strings.introData.map((item, index) =>
|
||||
index !== rotator ? null : renderItem({ item })
|
||||
)}
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
<View
|
||||
style={{
|
||||
width: isTablet ? "50%" : "100%",
|
||||
justifyContent: "center",
|
||||
gap: DefaultAppStyles.GAP_VERTICAL,
|
||||
paddingHorizontal: isTablet ? 0 : DefaultAppStyles.GAP,
|
||||
paddingVertical: DefaultAppStyles.GAP_VERTICAL,
|
||||
gap: Spacing.LEVEL_2,
|
||||
padding: Spacing.LEVEL_3,
|
||||
flexShrink: 1,
|
||||
alignSelf: "center"
|
||||
}}
|
||||
@@ -191,7 +186,7 @@ const Intro = () => {
|
||||
});
|
||||
}}
|
||||
type="accent"
|
||||
title={strings.getStarted()}
|
||||
title={strings.continue()}
|
||||
/>
|
||||
|
||||
<Button
|
||||
|
||||
71
apps/mobile/app/components/intro/progress-pills.tsx
Normal file
71
apps/mobile/app/components/intro/progress-pills.tsx
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
This file is part of the Notesnook project (https://notesnook.com/)
|
||||
|
||||
Copyright (C) 2023 Streetwriters (Private) Limited
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import { View } from "react-native";
|
||||
import { useThemeColors } from "@notesnook/theme";
|
||||
import { Radius, Spacing } from "../../common/design/spacing";
|
||||
|
||||
export const ProgressPills = (props: { activePillIndex: number }) => {
|
||||
const { colors } = useThemeColors();
|
||||
return (
|
||||
<View
|
||||
style={{
|
||||
flexDirection: "row",
|
||||
gap: Spacing.LEVEL_1
|
||||
}}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
width: props.activePillIndex === 0 ? 26 : 14,
|
||||
height: 5,
|
||||
backgroundColor:
|
||||
props.activePillIndex === 0
|
||||
? colors.primary.accent
|
||||
: colors.secondary.background,
|
||||
borderRadius: 2
|
||||
}}
|
||||
/>
|
||||
|
||||
<View
|
||||
style={{
|
||||
width: props.activePillIndex === 1 ? 26 : 14,
|
||||
height: 5,
|
||||
backgroundColor:
|
||||
props.activePillIndex === 1
|
||||
? colors.primary.accent
|
||||
: colors.secondary.background,
|
||||
borderRadius: Radius.XXS
|
||||
}}
|
||||
/>
|
||||
|
||||
<View
|
||||
style={{
|
||||
width: props.activePillIndex === 2 ? 26 : 14,
|
||||
height: 5,
|
||||
backgroundColor:
|
||||
props.activePillIndex === 2
|
||||
? colors.primary.accent
|
||||
: colors.secondary.background,
|
||||
borderRadius: Radius.XXS
|
||||
}}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
@@ -64,7 +64,7 @@ export const Button = ({
|
||||
loading = false,
|
||||
title = null,
|
||||
icon,
|
||||
fontSize = AppFontSize.sm,
|
||||
fontSize = AppFontSize.md,
|
||||
type = "transparent",
|
||||
iconSize = AppFontSize.md,
|
||||
style = {},
|
||||
@@ -75,7 +75,7 @@ export const Button = ({
|
||||
textStyle,
|
||||
iconPosition = "left",
|
||||
buttonType,
|
||||
bold,
|
||||
bold = true,
|
||||
iconColor,
|
||||
fwdRef,
|
||||
proTag,
|
||||
@@ -155,8 +155,14 @@ export const Button = ({
|
||||
allowFontScaling={allowFontScaling}
|
||||
style={[
|
||||
{
|
||||
marginLeft: icon || (loading && iconPosition === "left") ? 5 : 0,
|
||||
marginRight: icon || (loading && iconPosition === "right") ? 5 : 0
|
||||
marginLeft:
|
||||
icon || (loading && iconPosition === "left")
|
||||
? DefaultAppStyles.GAP_SMALL
|
||||
: 0,
|
||||
marginRight:
|
||||
icon || (loading && iconPosition === "right")
|
||||
? DefaultAppStyles.GAP_SMALL
|
||||
: 0
|
||||
},
|
||||
textStyle
|
||||
]}
|
||||
|
||||
@@ -105,7 +105,7 @@ const buttonTypes = (
|
||||
},
|
||||
secondary: {
|
||||
primary: colors.secondary.background,
|
||||
text: colors.secondary.paragraph,
|
||||
text: colors.primary.paragraph,
|
||||
selected: colors.secondary.background,
|
||||
borderWidth: 0.8,
|
||||
borderColor: getColorLinearShade(colors.secondary.background, 0.05, isDark),
|
||||
|
||||
@@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
import React from "react";
|
||||
import { DimensionValue, View } from "react-native";
|
||||
import { SvgXml } from "./lazy";
|
||||
import SvgImage from "react-native-svg/lib/typescript/elements/Image";
|
||||
export const SvgView = ({
|
||||
width = 250,
|
||||
height = 250,
|
||||
|
||||
@@ -21,7 +21,11 @@ import { useThemeColors } from "@notesnook/theme";
|
||||
import React from "react";
|
||||
import { Text, TextProps, ViewStyle } from "react-native";
|
||||
import { AppFontSize } from "../../../utils/size";
|
||||
import { FontFamily, FontSizes } from "../../../common/design/font";
|
||||
import {
|
||||
FontFamily,
|
||||
FontSizes,
|
||||
getLineHeight
|
||||
} from "../../../common/design/font";
|
||||
|
||||
interface HeadingProps extends TextProps {
|
||||
color?: string;
|
||||
@@ -32,6 +36,7 @@ interface HeadingProps extends TextProps {
|
||||
extraBold?: boolean;
|
||||
fontSize?: keyof typeof FontSizes;
|
||||
fontFamily?: keyof typeof FontFamily;
|
||||
lineHeight?: "100%" | "150%";
|
||||
}
|
||||
|
||||
const extraBoldStyle = {
|
||||
@@ -48,6 +53,7 @@ const Heading = ({
|
||||
extraBold,
|
||||
fontSize,
|
||||
fontFamily,
|
||||
lineHeight = "100%",
|
||||
...restProps
|
||||
}: HeadingProps) => {
|
||||
const { colors } = useThemeColors();
|
||||
@@ -59,7 +65,11 @@ const Heading = ({
|
||||
style={[
|
||||
{
|
||||
fontSize: fontSize ? FontSizes[fontSize] : size || AppFontSize.xl,
|
||||
color: color || colors.primary.heading
|
||||
color: color || colors.primary.heading,
|
||||
lineHeight:
|
||||
fontSize && lineHeight
|
||||
? getLineHeight(fontSize, lineHeight === "100%" ? 1 : 2)
|
||||
: undefined
|
||||
},
|
||||
fontFamily
|
||||
? { fontFamily: FontFamily[fontFamily] }
|
||||
|
||||
@@ -21,7 +21,11 @@ import { useThemeColors } from "@notesnook/theme";
|
||||
import React from "react";
|
||||
import { Text, TextProps } from "react-native";
|
||||
import { AppFontSize } from "../../../utils/size";
|
||||
import { FontFamily, FontSizes } from "../../../common/design/font";
|
||||
import {
|
||||
FontFamily,
|
||||
FontSizes,
|
||||
getLineHeight
|
||||
} from "../../../common/design/font";
|
||||
|
||||
interface ParagraphProps extends TextProps {
|
||||
color?: string;
|
||||
@@ -31,6 +35,7 @@ interface ParagraphProps extends TextProps {
|
||||
size?: number;
|
||||
fontSize?: keyof typeof FontSizes;
|
||||
fontFamily?: keyof typeof FontFamily;
|
||||
lineHeight?: "100%" | "150%";
|
||||
}
|
||||
const Paragraph = ({
|
||||
color,
|
||||
@@ -38,6 +43,7 @@ const Paragraph = ({
|
||||
style,
|
||||
fontSize,
|
||||
fontFamily,
|
||||
lineHeight = "100%",
|
||||
...restProps
|
||||
}: ParagraphProps) => {
|
||||
const { colors } = useThemeColors();
|
||||
@@ -50,7 +56,11 @@ const Paragraph = ({
|
||||
{
|
||||
fontSize: fontSize ? FontSizes[fontSize] : size || AppFontSize.xl,
|
||||
color: color || colors.primary.paragraph,
|
||||
fontFamily: fontFamily ? FontFamily[fontFamily] : FontFamily.REGULAR
|
||||
fontFamily: fontFamily ? FontFamily[fontFamily] : FontFamily.REGULAR,
|
||||
lineHeight:
|
||||
fontSize && lineHeight
|
||||
? getLineHeight(fontSize, lineHeight === "100%" ? 1 : 2)
|
||||
: undefined
|
||||
},
|
||||
style
|
||||
]}
|
||||
|
||||
@@ -18,20 +18,34 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
|
||||
import "../services/tip-manager";
|
||||
/**
|
||||
* A hook that can be used to rotate values in an array.
|
||||
* It will return random item in an array after given interval
|
||||
*/
|
||||
function useRotator<T>(data: T[], interval = 3000): T | null {
|
||||
function useRotator<T>(
|
||||
data: T[],
|
||||
interval = 3000,
|
||||
sequential = false
|
||||
): T | null {
|
||||
//@ts-ignore Added sample() method to Array.prototype to get random value.
|
||||
const [current, setCurrent] = useState<T>(data.sample());
|
||||
const [current, setCurrent] = useState<T>(
|
||||
sequential ? data[0] : data.sample()
|
||||
);
|
||||
const intervalRef = useRef<NodeJS.Timeout>(undefined);
|
||||
const currentRef = useRef<T>(undefined);
|
||||
const indexRef = useRef<number>(0);
|
||||
currentRef.current = current;
|
||||
|
||||
useEffect(() => {
|
||||
intervalRef.current = setInterval(() => {
|
||||
//@ts-ignore Added sample() method to Array.prototype to get random value.
|
||||
setCurrent(data.sample());
|
||||
if (sequential) {
|
||||
indexRef.current = (indexRef.current + 1) % data.length;
|
||||
setCurrent(data[indexRef.current]);
|
||||
} else {
|
||||
//@ts-ignore Added sample() method to Array.prototype to get random value.
|
||||
setCurrent(data.sample());
|
||||
}
|
||||
}, interval);
|
||||
|
||||
return () => {
|
||||
@@ -39,7 +53,7 @@ function useRotator<T>(data: T[], interval = 3000): T | null {
|
||||
clearInterval(intervalRef.current);
|
||||
}
|
||||
};
|
||||
}, [data, interval]);
|
||||
}, [data, interval, sequential]);
|
||||
|
||||
return current;
|
||||
}
|
||||
|
||||
@@ -28,18 +28,18 @@ Object.defineProperty(global, "Buffer", {
|
||||
}
|
||||
});
|
||||
|
||||
if (__DEV__ && Config.isTesting !== "true") {
|
||||
const messages =
|
||||
require("@notesnook/intl/dist/locales/$pseudo-LOCALE.json").messages;
|
||||
i18n.load({
|
||||
en: messages
|
||||
});
|
||||
} else {
|
||||
const messages = require("@notesnook/intl/dist/locales/$en.json").messages;
|
||||
i18n.load({
|
||||
en: messages
|
||||
});
|
||||
}
|
||||
// if (!__DEV__ && Config.isTesting !== "true") {
|
||||
// const messages =
|
||||
// require("@notesnook/intl/dist/locales/$pseudo-LOCALE.json").messages;
|
||||
// i18n.load({
|
||||
// en: messages
|
||||
// });
|
||||
// } else {
|
||||
const messages = require("@notesnook/intl/dist/locales/$en.json").messages;
|
||||
i18n.load({
|
||||
en: messages
|
||||
});
|
||||
// }
|
||||
|
||||
i18n.activate("en");
|
||||
setI18nGlobal(i18n);
|
||||
|
||||
12
apps/mobile/package-lock.json
generated
12
apps/mobile/package-lock.json
generated
@@ -7419,14 +7419,14 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/call-bind": {
|
||||
"version": "1.0.8",
|
||||
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz",
|
||||
"integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==",
|
||||
"version": "1.0.9",
|
||||
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz",
|
||||
"integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"call-bind-apply-helpers": "^1.0.0",
|
||||
"es-define-property": "^1.0.0",
|
||||
"get-intrinsic": "^1.2.4",
|
||||
"call-bind-apply-helpers": "^1.0.2",
|
||||
"es-define-property": "^1.0.1",
|
||||
"get-intrinsic": "^1.3.0",
|
||||
"set-function-length": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const isGithubRelease = false;
|
||||
const config = {
|
||||
commands: require("@callstack/repack/commands/rspack")
|
||||
// commands: require("@callstack/repack/commands/rspack")
|
||||
};
|
||||
|
||||
if (!config.dependencies) config.dependencies = {};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -816,17 +816,31 @@ $day$: Current day (eg. Monday)`,
|
||||
introData: [
|
||||
{
|
||||
headings: [
|
||||
() => t`Open source.`,
|
||||
() => t`End to end encrypted.`,
|
||||
() => t`Private.`
|
||||
{
|
||||
bold: false,
|
||||
value: () => t`Open source.`
|
||||
},
|
||||
{
|
||||
bold: true,
|
||||
value: () => t`End-to-end encrypted.`
|
||||
},
|
||||
{
|
||||
bold: false,
|
||||
value: () => t`Private.`
|
||||
}
|
||||
],
|
||||
body: () => t`Write notes with freedom, no spying, no tracking.`
|
||||
},
|
||||
{
|
||||
headings: [
|
||||
() => t`Privacy for everyone`,
|
||||
() => t`— not just the`,
|
||||
() => t`privileged few`
|
||||
{
|
||||
bold: true,
|
||||
value: () => t`Privacy for everyone`
|
||||
},
|
||||
{
|
||||
bold: false,
|
||||
value: () => t`— not just the privileged few`
|
||||
}
|
||||
],
|
||||
body: () =>
|
||||
t`Your privacy matters to us, no matter who you are. In a world where everyone is trying to spy on you, Notesnook encrypts all your data before it leaves your device. With Notesnook no one can ever sell your data again.`
|
||||
|
||||
Reference in New Issue
Block a user