Skip to content

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

add walkthroughs for pro/trial users

ammarahm-ed80dea89173a3
diff --git a/apps/mobile/src/assets/images/assets.js b/apps/mobile/src/assets/images/assets.js
index d104b8995..f76df1e9e 100644
--- a/apps/mobile/src/assets/images/assets.js
+++ b/apps/mobile/src/assets/images/assets.js
@@ -1124,6 +1124,8 @@ export const ACCENT_SVG = color => `
<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 776.4 516.1"><defs/><path fill="#f2f2f2" d="M157.8 467.5a354.6 354.6 0 01-3.4 45.5l-.2 1.6-142.7-.8a58.7 58.7 0 01-1.3-1.6 67.8 67.8 0 01-3.7-5.5C1 497.6-1.5 487 1 479.5v-.1a13 13 0 012.6-4.4c5.7-6.5 17.4-5.5 28-.2-9.5-10.4-17-23.5-17.7-35.2-.5-11.4 5.4-19.6 12-26.5a65.6 65.6 0 01.6-.7l.3-.3c5-5.3 11-10.5 19.4-9.9 9.4.7 19.7 8.6 27 17.7 7.3 9.1 12 19.5 17 29.6a119.4 119.4 0 0018 29c-10.6-13.4-19.2-28.8-22.4-43.7s-.3-29.2 9.1-36.2a22.2 22.2 0 019.8-4h1.2a39 39 0 0128.2 9.2 65 65 0 0120 31.1 106 106 0 013.7 32.6z"/><path fill="#fff" d="M64.4 514.1h-2.7l-2.7-1.6-1.6-1q-13.6-8.3-27.3-16Q16.3 488 2.4 481a1.1 1.1 0 01-.6-1.3c.2-.3.5-.4.9-.2l3.4 1.7q13.9 7 27.7 14.8 13.8 7.8 27.4 16.2l.6.3 2.6 1.6zm35.2.2h-1.7l-1.1-1.6-26.9-37.6L26 413.5a1 1 0 01-.2-.4c-.1-.4.2-.7.7-.7a1.3 1.3 0 01.8.6L52 447.5l43.7 61.3 2.7 4 1.2 1.5zm37.6-9.8l-.5 8.4-.2 1.6h-1.7l.1-1.6c.4-4 .6-8 .7-12.2a170.5 170.5 0 00-3.4-34.4 214 214 0 00-10.4-35.7 245.2 245.2 0 00-17-35.3 1 1 0 01-.1-.6c0-.5.7-.7 1.2-.2a1.5 1.5 0 01.3.3l2.4 4.3a245 245 0 0116.3 35.4 213 213 0 019.6 35.8 168.2 168.2 0 012.7 34.2z"/><path fill="#3f3d56" d="M537.4 286h-167a14.7 14.7 0 01-9.6-3.2 1 1 0 011.2-1.6 12.7 12.7 0 008.4 2.8h167a15 15 0 0015-15V167a15 15 0 00-15-15h-167a15 15 0 00-15 15v60a1 1 0 01-2 0v-60a17 17 0 0117-17h167a17 17 0 0117 17v102a17 17 0 01-17 17z"/><path fill="#3f3d56" d="M759.4 344h-442a1 1 0 010-2h442a15 15 0 0015-15V17a15 15 0 00-15-15h-470a15 15 0 00-15 15v202a1 1 0 01-2 0V17a17 17 0 0117-17h470a17 17 0 0117 17v310a17 17 0 01-17 17z"/><path fill="#3f3d56" d="M273 32.6h503v2H273z"/><circle cx="292" cy="19.5" r="6" fill="#3f3d56"/><circle cx="309.3" cy="19.5" r="6" fill="#3f3d56"/><circle cx="326.5" cy="19.5" r="6" fill="#3f3d56"/><path fill="#3f3d56" d="M677.9 101h-310a15.5 15.5 0 010-31h310a15.5 15.5 0 010 31zm-310-29a13.5 13.5 0 000 27h310a13.5 13.5 0 000-27z"/><path fill="${color}" d="M675.9 180h-60a15.5 15.5 0 010-31h60a15.5 15.5 0 010 31zm0 52h-60a15.5 15.5 0 010-31h60a15.5 15.5 0 010 31zm0 52h-60a15.5 15.5 0 010-31h60a15.5 15.5 0 010 31z"/><path fill="#a0616a" d="M249.4 293.6a11.2 11.2 0 00-2.3-.3 11 11 0 00-4.3.9 10 10 0 00-1.3.6l-44.7-20-1.3-12.2-19.3-.5.2 20.2a10.9 10.9 0 007.8 10.3l52.3 15 .4 1a11 11 0 006.5 6.1 10.9 10.9 0 003.7.6 10.4 10.4 0 002.3-.2 9.6 9.6 0 001.2-.4V294a11.4 11.4 0 00-1.2-.3zM127 504.2h12.3l5.8-47.3h-18v47.3z"/><path fill="#2f2e41" d="M163 515.6h-38.6v-14.9h23.7a14.9 14.9 0 0114.9 15z"/><path fill="#a0616a" d="M63.3 491l11.3 4.8 24-41.1-16.7-7.2L63.3 491z"/><path fill="#2f2e41" d="M91.8 515.6l-35.4-15.2 5.9-13.6L84 496a14.9 14.9 0 017.8 19.5z"/><circle cx="157.4" cy="173.4" r="24.6" fill="#a0616a"/><path fill="#2f2e41" d="M139.6 492.7l-13.5-2.6a4.5 4.5 0 01-3.6-4.9l9-87.2a3.5 3.5 0 00-6.8-1.8l-39 91.2a4.5 4.5 0 01-6 2.3l-11-4.9a4.5 4.5 0 01-2.4-5.5L93 399.1a3.5 3.5 0 00.2-.6l8.6-73.3a4.5 4.5 0 012.8-3.6l27.4-11.2a4.5 4.5 0 014.8 1l34.6 33.6a4.5 4.5 0 011.3 4.1l-27.8 140a4.5 4.5 0 01-4.4 3.6 4.5 4.5 0 01-.9 0z"/><path fill="#ccc" d="M124.2 329.2c-4.8-5.5-8.2-8-10.6-7.6-2.4.4-3.8 3.7-5.2 7.2-2 4.8-4.2 10.2-9.8 10.6a4.6 4.6 0 01-4.5-1.9c-4.4-6.4 6-27.8 7-29.7l-.5-101a4.5 4.5 0 012.4-4c28.6-15.5 67.2 11.4 74.7 16.9a4.5 4.5 0 011.8 3.8A4954 4954 0 00174 345c0 5.3-1.8 8.6-5.4 10a10.8 10.8 0 01-3.8.6c-11 0-28.8-12.6-40.7-26.3z"/><path fill="#ccc" d="M164.2 280.2a4.5 4.5 0 01-2-3.6l-2-45.3a11.7 11.7 0 0122.7-4.7l14.5 38a4.5 4.5 0 01-2.6 5.9l-26.6 10.1a4.5 4.5 0 01-4-.4z"/><path fill="#a0616a" d="M96.6 350.9a10.7 10.7 0 01-1.7-16.4l-4.7-104.9 23.2 2.7-2.7 102.4a10.8 10.8 0 01-14 16.2z"/><path fill="#ccc" d="M80.5 257.5a4.5 4.5 0 01-.6-4l14.3-43a11.7 11.7 0 0123 3.7V255a4.5 4.5 0 01-4.6 4.5H84.2a4.5 4.5 0 01-3.7-1.9z"/><path fill="#2f2e41" d="M141.5 190a4.9 4.9 0 01-6.4-.4c-5.2-4.9-9.7-10.8-12-17.6a26 26 0 013.1-23.5 37.1 37.1 0 0117.3-11.2 28.3 28.3 0 018-2 11 11 0 017.7 2.1 6.9 6.9 0 012.3 7.4 25.8 25.8 0 0111.8-6 14.3 14.3 0 018.4.3c3.8 1.5 6.2 5.3 7.4 9.2a16.7 16.7 0 01.2 9.2 11.1 11.1 0 01-5.7 7c-3.5 1.7-7.6 1-11.2-.1s-7-3.1-10.7-3.9-8-.3-10.7 2.4c-1.9 2-2.6 4.7-3.3 7.3l-3.4 13.5a16.9 16.9 0 01-2.2 5.6 3.3 3.3 0 01-.6.7z"/><path fill="#ccc" d="M309.2 273.4v46.2l.6.5v-46.6a4.5 4.5 0 00-.6 0zm67-30.2l-32-23.1a10.8 10.8 0 00-15.1 2.4l-18.7 25.7-1.2 1.7v99.3a9.6 9.6 0 01-9.6 9.5h-5.3l3 .7a10.4 10.4 0 002.2.2 10.8 10.8 0 008.8-4.5l1.3-1.8 69-95a10.8 10.8 0 00-2.5-15zm1.3 14.4L310.4 350l-.7 1h-.1a10.3 10.3 0 00.2-2v-97.9l.6-.8 19.7-27.2a9.6 9.6 0 0113.4-2.1l31.9 23.2a9.6 9.6 0 012 13.3z"/><path fill="#ccc" d="M343.6 281.9a8.4 8.4 0 01-5-1.6l-18-13a8.5 8.5 0 01-1.8-12l13-17.9a8.5 8.5 0 0111.8-1.9l18 13a8.5 8.5 0 011.9 12l-13 17.9a8.4 8.4 0 01-5.6 3.4 8.6 8.6 0 01-1.3 0z"/><path fill="#e6e6e6" d="M315 323.2a5.5 5.5 0 01-3.2-1l-3.1-2.4V273h.5a5.7 5.7 0 011.4.3 5.5 5.5 0 011.5.8l22.7 16.4a5.6 5.6 0 011.2 7.8L319.6 321a5.5 5.5 0 01-3.6 2.2 5.7 5.7 0 01-1 0z" opacity=".5"/><path fill="#3f3d56" d="M299.6 218.8h-39.4a10.8 10.8 0 00-10.8 10.8v119.6a10.8 10.8 0 0010.8 10.8h39.4a10.8 10.8 0 0010-6.7 10.5 10.5 0 00.6-1.9 10.3 10.3 0 00.2-1.3 8.2 8.2 0 000-1V229.7a10.8 10.8 0 00-10.8-10.8zm9.6 130.4a9.6 9.6 0 01-9.6 9.5h-39.4a9.6 9.6 0 01-9.6-9.5V229.6a9.6 9.6 0 019.6-9.5h39.4a9.6 9.6 0 019.6 9.5z"/><path fill="${color}" d="M291 270.8h-22.2a8.5 8.5 0 01-8.5-8.5v-22.1a8.5 8.5 0 018.5-8.5H291a8.5 8.5 0 018.5 8.5v22.1a8.5 8.5 0 01-8.5 8.5z"/><path fill="${color}" d="M291 320.4h-22.2a8.5 8.5 0 01-8.5-8.5v-22.1a8.5 8.5 0 018.5-8.5H291a8.5 8.5 0 018.5 8.5v22.1a8.5 8.5 0 01-8.5 8.5z" opacity=".5"/><path fill="#3f3d56" d="M279.9 331.4a8.3 8.3 0 108.3 8.3 8.3 8.3 0 00-8.3-8.3zm0 15.2a7 7 0 117-7 7 7 0 01-7 7zm-21.5 169.5H9a1.2 1.2 0 010-2.4h249.3a1.2 1.2 0 010 2.4z"/></svg>
`;
-export const WELCOME_SVG = color => `
-<svg id="b19d21a7-7bc0-44bd-ab2a-ad7473c6bec7" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="979.32677" height="424.8366" viewBox="0 0 979.32677 424.8366"><path d="M993.71816,412.83936H419.142a9.19888,9.19888,0,0,0,0,18.39776H435.417V651.3026a9.19888,9.19888,0,0,0,18.39776,0l.1398-220.06548h461.1557l42.52,220.06548a9.19887,9.19887,0,1,0,18.39775,0l2.67633-220.06548h15.01383a9.19888,9.19888,0,0,0,0-18.39776Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M518.73716,371.85047v38.9547H421.141a19.48915,19.48915,0,1,1-1.35523-38.95474q.67739-.02358,1.35523,0Z" transform="translate(-110.33661 -237.5817)" fill="#f2f2f2"/><path d="M521.13449,410.50552a1.49881,1.49881,0,0,1-1.49822,1.49822H419.40273a20.52615,20.52615,0,0,1,0-41.05229H519.63627a1.49827,1.49827,0,1,1,0,2.99653H419.40273a17.52964,17.52964,0,0,0,0,35.05924H519.63627A1.49883,1.49883,0,0,1,521.13449,410.50552Z" transform="translate(-110.33661 -237.5817)" fill="${color}"/><path d="M518.73716,380.84H413.85905a.29966.29966,0,0,1-.00552-.59929H518.73716a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M518.73716,388.03169H413.85905a.29966.29966,0,0,1-.00552-.59929H518.73716a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M518.73716,395.22332H413.85905a.29966.29966,0,0,1-.00552-.59929H518.73716a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M518.73716,402.41487H413.85905a.29966.29966,0,0,1-.00552-.59929H518.73716a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M500.33941,330.80932v38.95474H402.74324a19.48915,19.48915,0,0,1-1.35522-38.95474q.67737-.02358,1.35522,0Z" transform="translate(-110.33661 -237.5817)" fill="#f2f2f2"/><path d="M502.73673,369.46442a1.49885,1.49885,0,0,1-1.49822,1.49826H401.005a20.52614,20.52614,0,0,1,0-41.05229H501.23851a1.49826,1.49826,0,1,1,0,2.99652H401.005a17.52964,17.52964,0,0,0,0,35.05928H501.23851A1.49884,1.49884,0,0,1,502.73673,369.46442Z" transform="translate(-110.33661 -237.5817)" fill="#3f3d56"/><path d="M500.33941,339.79886H395.4613a.29966.29966,0,0,1-.00553-.59929H500.33941a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M500.33941,346.99054H395.4613a.29966.29966,0,0,1-.00553-.59929H500.33941a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M500.33941,354.18217H395.4613a.29966.29966,0,0,1-.00553-.59929H500.33941a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M500.33941,361.37376H395.4613a.29966.29966,0,0,1-.00553-.59929H500.33941a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M613.87355,550.68347V516.71838a5.661,5.661,0,0,0-5.66085-5.66085H479.4284a5.661,5.661,0,0,0-5.66084,5.66085v33.96509Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><rect x="363.43092" y="325.83868" width="140.10602" height="43.87158" fill="#ccc"/><path d="M473.76756,620.02887V653.994a5.661,5.661,0,0,0,5.66084,5.66084H608.2127a5.661,5.661,0,0,0,5.66085-5.66084V620.02887Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><circle cx="432.77633" cy="294.70402" r="4.24564" fill="#fff"/><circle cx="432.77633" cy="351.3125" r="4.24564" fill="#fff"/><circle cx="433.00385" cy="406.72228" r="4.24564" fill="#fff"/><path d="M597.989,472.33053v38.9547H500.39287a19.48916,19.48916,0,0,1-1.35647-38.9547q.678-.02358,1.35647,0Z" transform="translate(-110.33661 -237.5817)" fill="#f2f2f2"/><path d="M600.38637,510.98558a1.49881,1.49881,0,0,1-1.49822,1.49822H498.65461a20.52615,20.52615,0,0,1-.0247-41.05229H598.88815a1.49827,1.49827,0,1,1,0,2.99653H498.65461a17.52963,17.52963,0,0,0,0,35.05923H598.88815A1.49885,1.49885,0,0,1,600.38637,510.98558Z" transform="translate(-110.33661 -237.5817)" fill="#3f3d56"/><path d="M597.989,481.32H493.111a.29966.29966,0,0,1-.00553-.59929H597.98913a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M597.989,488.51175H493.111a.29966.29966,0,0,1-.00553-.59929H597.98913a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M597.989,495.70338H493.111a.29966.29966,0,0,1-.00553-.59929H597.98913a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M597.989,502.89493H493.111a.29966.29966,0,0,1-.00553-.59929H597.98913a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M483.36747,317.81415H438.90162a2.74745,2.74745,0,0,0-1.21689.28306l-11.22288,5.61835a2.0452,2.0452,0,0,0,0,3.76443l11.22288,5.61835a2.74718,2.74718,0,0,0,1.21689.28306h44.46585a2.33381,2.33381,0,0,0,2.4628-2.16532v-11.2367A2.3338,2.3338,0,0,0,483.36747,317.81415Z" transform="translate(-110.33661 -237.5817)" fill="#3f3d56"/><path d="M485.83027,319.97947v11.2367a2.33383,2.33383,0,0,1-2.4628,2.16532h-8.8589V317.81415h8.8589A2.33383,2.33383,0,0,1,485.83027,319.97947Z" transform="translate(-110.33661 -237.5817)" fill="${color}"/><path d="M216.78083,537.99332a35.33951,35.33951,0,0,0,34.12552-6.01134c11.95262-10.03214,15.70013-26.56,18.74934-41.864q4.50949-22.63308,9.019-45.26617l-18.88217,13.00153c-13.57891,9.34993-27.46375,18.99939-36.86572,32.54233S209.42082,522.42587,216.975,537.08" transform="translate(-110.33661 -237.5817)" fill="#e6e6e6"/><path d="M218.39489,592.79741c-1.91113-13.92071-3.87625-28.0202-2.53572-42.09016,1.19057-12.4956,5.00277-24.70032,12.764-34.70734a57.73582,57.73582,0,0,1,14.81307-13.42309c1.48131-.935,2.84468,1.41257,1.36983,2.34348a54.88844,54.88844,0,0,0-21.71125,26.19626c-4.72684,12.02273-5.48591,25.12848-4.67135,37.90006.4926,7.72345,1.53656,15.39627,2.58859,23.05926a1.40615,1.40615,0,0,1-.94781,1.66928,1.3653,1.3653,0,0,1-1.6693-.94781Z" transform="translate(-110.33661 -237.5817)" fill="#f2f2f2"/><path d="M236.80246,568.16434a26.01425,26.01425,0,0,0,22.6665,11.69871c11.47417-.54466,21.04-8.55293,29.651-16.15584l25.46969-22.48783-16.85671-.80672c-12.12234-.58011-24.55745-1.12124-36.10356,2.617s-22.19457,12.73508-24.30583,24.68624" transform="translate(-110.33661 -237.5817)" fill="#e6e6e6"/><path d="M212.99392,600.79976c9.19853-16.27621,19.86805-34.36538,38.93262-40.14695A43.445,43.445,0,0,1,268.3022,558.962c1.73863.14991,1.30448,2.82994-.431,2.6803a40.36111,40.36111,0,0,0-26.133,6.91386c-7.36852,5.01554-13.10573,11.98848-17.96161,19.383-2.97439,4.52936-5.63867,9.25082-8.30346,13.966-.85161,1.50687-3.34078.41915-2.47922-1.10534Z" transform="translate(-110.33661 -237.5817)" fill="#f2f2f2"/><path d="M198.25523,617.93168a19.69836,19.69836,0,0,1,12.0709-16.49847v-9.40956h15.782v9.70608a19.68812,19.68812,0,0,1,11.41362,16.202l3.711,43.13835H194.54417Z" transform="translate(-110.33661 -237.5817)" fill="#f2f2f2"/><path d="M734.973,411.955l-4.69488-1.97685-3.22067-23.53551h-42.889l-3.491,23.43936-4.20031,2.10013a.99744.99744,0,0,0,.44611,1.88955h57.66283A.99739.99739,0,0,0,734.973,411.955Z" transform="translate(-110.33661 -237.5817)" fill="#e6e6e6"/><path d="M811.1898,389.574H600.50692a4.174,4.174,0,0,1-4.16467-4.174V355.69092H815.35446V385.4A4.17408,4.17408,0,0,1,811.1898,389.574Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M815.57469,369.73213H596.15V242.61337a5.0375,5.0375,0,0,1,5.03186-5.03167h209.361a5.03755,5.03755,0,0,1,5.03191,5.03167Z" transform="translate(-110.33661 -237.5817)" fill="#3f3d56"/><path d="M802.46932,360.50584h-193.214a3.88344,3.88344,0,0,1-3.87919-3.87908V250.68707a3.88365,3.88365,0,0,1,3.87919-3.87932h193.214a3.88366,3.88366,0,0,1,3.8792,3.87932V356.62676A3.88345,3.88345,0,0,1,802.46932,360.50584Z" transform="translate(-110.33661 -237.5817)" fill="#fff"/><path d="M751.57964,397.88662a11.6159,11.6159,0,0,1,17.666,2.27241l26.13446-4.64642,6.69716,15.19317-36.99908,6.04328a11.67883,11.67883,0,0,1-13.49855-18.86244Z" transform="translate(-110.33661 -237.5817)" fill="#ffb6b6"/><path d="M775.77611,417.286l27.24571-.33963,3.44882-.04668,55.43253-.69843s15.05312-14.3609,28.16068-29.1465l-1.83719-13.28833A54.29159,54.29159,0,0,0,870.023,340.1519C851.24988,352.696,840.363,377.52559,840.363,377.52559l-34.37018,8.22071-3.43848.82227-21.35608,5.10326Z" transform="translate(-110.33661 -237.5817)" fill="${color}"/><path d="M915.25011,498.96167H864.39249c0,2.17915-55.59414,3.94772-55.59414,3.94772a20.30858,20.30858,0,0,0-3.33166,3.15818,19.59694,19.59694,0,0,0-4.58,12.63271v3.15818a19.74588,19.74588,0,0,0,19.73861,19.73861h94.62478a19.75579,19.75579,0,0,0,19.73862-19.73861v-3.15818A19.76607,19.76607,0,0,0,915.25011,498.96167Z" transform="translate(-110.33661 -237.5817)" fill="#e4e4e4"/><rect x="747.4019" y="303.23122" width="20.52816" height="118.48951" fill="#e4e4e4"/><path d="M799.31222,658.58132c0,2.218,31.10721.858,69.47992.858s69.47991,1.36012,69.47991-.858-31.1072-19.807-69.47991-19.807S799.31222,656.36323,799.31222,658.58132Z" transform="translate(-110.33661 -237.5817)" fill="#e4e4e4"/><polygon points="675.186 407.461 659.908 407.46 652.64 348.531 675.188 348.532 675.186 407.461" fill="#ffb6b6"/><path d="M789.41863,659.852l-49.2623-.00183v-.62309a19.17528,19.17528,0,0,1,19.17426-19.17395h.00122l30.08773.00122Z" transform="translate(-110.33661 -237.5817)" fill="#2f2e41"/><polygon points="630.031 407.461 614.753 407.46 607.485 348.531 630.033 348.532 630.031 407.461" fill="#ffb6b6"/><path d="M744.2636,659.852l-49.2623-.00183v-.62309a19.1753,19.1753,0,0,1,19.17426-19.17395h.00122l30.08773.00122Z" transform="translate(-110.33661 -237.5817)" fill="#2f2e41"/><circle cx="766.88656" cy="41.63615" r="26.56401" fill="#ffb6b6"/><path d="M920.21655,461.22417s8.91308,47.1307-24.99958,53.13247-82.86639,10.21993-82.86639,10.21993L790.36706,627.14324l-29.53443-2.63675s3.928-123.46737,13.5876-133.127,70.71212-38.58282,70.71212-38.58282Z" transform="translate(-110.33661 -237.5817)" fill="#2f2e41"/><path d="M853.98286,441.47135,839.151,456.35062s-107.0941,17.25-111.22553,41.9852c-6.23747,37.34427-13.60493,118.552-13.60493,118.552l32.1988-2.41491,12.62647-92.31123,51.5182-11.71874L869.27729,478.5Z" transform="translate(-110.33661 -237.5817)" fill="#2f2e41"/><path d="M902.78526,263.36115c-2.6223-4.94751-5.95413-14.80785-11.24679-16.63657a42.07731,42.07731,0,0,0-9.05841-1.92972l-8.99618,3.46009,4.89616-3.808q-1.42988-.08519-2.85817-.13928l-6.0699,2.33453,3.10542-2.41532c-5.65883-.05808-11.5.53031-15.88468,3.9752-3.73817,2.93677-7.44169,14.06185-8.04057,18.77753a35.9171,35.9171,0,0,0,.6603,13.53055l1.53716,1.46166a18.85936,18.85936,0,0,0,1.206-3.83883,18.18056,18.18056,0,0,1,8.70263-11.80641l.08368-.0472c2.5782-1.451,5.7065-1.3841,8.66308-1.27769l14.04158.50527c3.37829.12158,7.01608.33533,9.64978,2.45443a15.888,15.888,0,0,1,3.85826,5.58929c1.30868,2.6414,3.8661,12.60418,3.8661,12.60418s1.44689-1.88062,2.1404-.48092a48.39766,48.39766,0,0,0,2.01437-11.23347A22.00877,22.00877,0,0,0,902.78526,263.36115Z" transform="translate(-110.33661 -237.5817)" fill="#2f2e41"/><path d="M995.69426,290.88349A11.61582,11.61582,0,0,0,985.181,305.26136l-21.3614,15.75722,6.40951,15.31674,29.8539-22.67594a11.67883,11.67883,0,0,0-4.38876-22.77589Z" transform="translate(-110.33661 -237.5817)" fill="#ffb6b6"/><path d="M992.25627,323.052l-53.551,59.4744s-25.60913-8.19816-45.41466-17.08624l-8.8977-27.32787a54.34329,54.34329,0,0,1-2.60112-19.66442c27.45606-7.306,59.391,19.87863,59.391,19.87863l40.08517-31.39877Z" transform="translate(-110.33661 -237.5817)" fill="${color}"/><path d="M867.301,465.6169c-9.554-3.30029-19.43312-6.71277-30.08912-7.99385l-.45773-.05533.12632-.443c11.03073-38.7308,8.27761-63.50657,2.87195-100.72306a37.59072,37.59072,0,0,1,21.5483-39.50121l.06542-.02958,30.43436-1.93391.06935-.00423,22.13437,6.50989a15.18313,15.18313,0,0,1,10.86724,14.83111c-.23987,12.23937.26868,25.9043.80711,40.37114,1.20787,32.45569,2.45686,66.01647-4.63045,87.79166l-.03718.11412-.09462.07416a36.09883,36.09883,0,0,1-23.08086,8.10758C887.90057,472.73235,877.76186,469.23034,867.301,465.6169Z" transform="translate(-110.33661 -237.5817)" fill="${color}"/><path d="M1088.24817,662.4183H111.75183a1.41521,1.41521,0,1,1,0-2.83042h976.49634a1.41521,1.41521,0,1,1,0,2.83042Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/></svg>
-`;
+export const SUPPORT_SVG = () =>
+ `<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="979.32677" height="424.8366" viewBox="0 0 979.32677 424.8366" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M993.71816,412.83936H419.142a9.19888,9.19888,0,0,0,0,18.39776H435.417V651.3026a9.19888,9.19888,0,0,0,18.39776,0l.1398-220.06548h461.1557l42.52,220.06548a9.19887,9.19887,0,1,0,18.39775,0l2.67633-220.06548h15.01383a9.19888,9.19888,0,0,0,0-18.39776Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M518.73716,371.85047v38.9547H421.141a19.48915,19.48915,0,1,1-1.35523-38.95474q.67739-.02358,1.35523,0Z" transform="translate(-110.33661 -237.5817)" fill="#f2f2f2"/><path d="M521.13449,410.50552a1.49881,1.49881,0,0,1-1.49822,1.49822H419.40273a20.52615,20.52615,0,0,1,0-41.05229H519.63627a1.49827,1.49827,0,1,1,0,2.99653H419.40273a17.52964,17.52964,0,0,0,0,35.05924H519.63627A1.49883,1.49883,0,0,1,521.13449,410.50552Z" transform="translate(-110.33661 -237.5817)" fill="#000000"/><path d="M518.73716,380.84H413.85905a.29966.29966,0,0,1-.00552-.59929H518.73716a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M518.73716,388.03169H413.85905a.29966.29966,0,0,1-.00552-.59929H518.73716a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M518.73716,395.22332H413.85905a.29966.29966,0,0,1-.00552-.59929H518.73716a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M518.73716,402.41487H413.85905a.29966.29966,0,0,1-.00552-.59929H518.73716a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M500.33941,330.80932v38.95474H402.74324a19.48915,19.48915,0,0,1-1.35522-38.95474q.67737-.02358,1.35522,0Z" transform="translate(-110.33661 -237.5817)" fill="#f2f2f2"/><path d="M502.73673,369.46442a1.49885,1.49885,0,0,1-1.49822,1.49826H401.005a20.52614,20.52614,0,0,1,0-41.05229H501.23851a1.49826,1.49826,0,1,1,0,2.99652H401.005a17.52964,17.52964,0,0,0,0,35.05928H501.23851A1.49884,1.49884,0,0,1,502.73673,369.46442Z" transform="translate(-110.33661 -237.5817)" fill="#3f3d56"/><path d="M500.33941,339.79886H395.4613a.29966.29966,0,0,1-.00553-.59929H500.33941a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M500.33941,346.99054H395.4613a.29966.29966,0,0,1-.00553-.59929H500.33941a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M500.33941,354.18217H395.4613a.29966.29966,0,0,1-.00553-.59929H500.33941a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M500.33941,361.37376H395.4613a.29966.29966,0,0,1-.00553-.59929H500.33941a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M613.87355,550.68347V516.71838a5.661,5.661,0,0,0-5.66085-5.66085H479.4284a5.661,5.661,0,0,0-5.66084,5.66085v33.96509Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><rect x="363.43092" y="325.83868" width="140.10602" height="43.87158" fill="#ccc"/><path d="M473.76756,620.02887V653.994a5.661,5.661,0,0,0,5.66084,5.66084H608.2127a5.661,5.661,0,0,0,5.66085-5.66084V620.02887Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><circle cx="432.77633" cy="294.70402" r="4.24564" fill="#fff"/><circle cx="432.77633" cy="351.3125" r="4.24564" fill="#fff"/><circle cx="433.00385" cy="406.72228" r="4.24564" fill="#fff"/><path d="M597.989,472.33053v38.9547H500.39287a19.48916,19.48916,0,0,1-1.35647-38.9547q.678-.02358,1.35647,0Z" transform="translate(-110.33661 -237.5817)" fill="#f2f2f2"/><path d="M600.38637,510.98558a1.49881,1.49881,0,0,1-1.49822,1.49822H498.65461a20.52615,20.52615,0,0,1-.0247-41.05229H598.88815a1.49827,1.49827,0,1,1,0,2.99653H498.65461a17.52963,17.52963,0,0,0,0,35.05923H598.88815A1.49885,1.49885,0,0,1,600.38637,510.98558Z" transform="translate(-110.33661 -237.5817)" fill="#3f3d56"/><path d="M597.989,481.32H493.111a.29966.29966,0,0,1-.00553-.59929H597.98913a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M597.989,488.51175H493.111a.29966.29966,0,0,1-.00553-.59929H597.98913a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M597.989,495.70338H493.111a.29966.29966,0,0,1-.00553-.59929H597.98913a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M597.989,502.89493H493.111a.29966.29966,0,0,1-.00553-.59929H597.98913a.29966.29966,0,0,1,0,.59929Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M483.36747,317.81415H438.90162a2.74745,2.74745,0,0,0-1.21689.28306l-11.22288,5.61835a2.0452,2.0452,0,0,0,0,3.76443l11.22288,5.61835a2.74718,2.74718,0,0,0,1.21689.28306h44.46585a2.33381,2.33381,0,0,0,2.4628-2.16532v-11.2367A2.3338,2.3338,0,0,0,483.36747,317.81415Z" transform="translate(-110.33661 -237.5817)" fill="#3f3d56"/><path d="M485.83027,319.97947v11.2367a2.33383,2.33383,0,0,1-2.4628,2.16532h-8.8589V317.81415h8.8589A2.33383,2.33383,0,0,1,485.83027,319.97947Z" transform="translate(-110.33661 -237.5817)" fill="#000000"/><path d="M216.78083,537.99332a35.33951,35.33951,0,0,0,34.12552-6.01134c11.95262-10.03214,15.70013-26.56,18.74934-41.864q4.50949-22.63308,9.019-45.26617l-18.88217,13.00153c-13.57891,9.34993-27.46375,18.99939-36.86572,32.54233S209.42082,522.42587,216.975,537.08" transform="translate(-110.33661 -237.5817)" fill="#e6e6e6"/><path d="M218.39489,592.79741c-1.91113-13.92071-3.87625-28.0202-2.53572-42.09016,1.19057-12.4956,5.00277-24.70032,12.764-34.70734a57.73582,57.73582,0,0,1,14.81307-13.42309c1.48131-.935,2.84468,1.41257,1.36983,2.34348a54.88844,54.88844,0,0,0-21.71125,26.19626c-4.72684,12.02273-5.48591,25.12848-4.67135,37.90006.4926,7.72345,1.53656,15.39627,2.58859,23.05926a1.40615,1.40615,0,0,1-.94781,1.66928,1.3653,1.3653,0,0,1-1.6693-.94781Z" transform="translate(-110.33661 -237.5817)" fill="#f2f2f2"/><path d="M236.80246,568.16434a26.01425,26.01425,0,0,0,22.6665,11.69871c11.47417-.54466,21.04-8.55293,29.651-16.15584l25.46969-22.48783-16.85671-.80672c-12.12234-.58011-24.55745-1.12124-36.10356,2.617s-22.19457,12.73508-24.30583,24.68624" transform="translate(-110.33661 -237.5817)" fill="#e6e6e6"/><path d="M212.99392,600.79976c9.19853-16.27621,19.86805-34.36538,38.93262-40.14695A43.445,43.445,0,0,1,268.3022,558.962c1.73863.14991,1.30448,2.82994-.431,2.6803a40.36111,40.36111,0,0,0-26.133,6.91386c-7.36852,5.01554-13.10573,11.98848-17.96161,19.383-2.97439,4.52936-5.63867,9.25082-8.30346,13.966-.85161,1.50687-3.34078.41915-2.47922-1.10534Z" transform="translate(-110.33661 -237.5817)" fill="#f2f2f2"/><path d="M198.25523,617.93168a19.69836,19.69836,0,0,1,12.0709-16.49847v-9.40956h15.782v9.70608a19.68812,19.68812,0,0,1,11.41362,16.202l3.711,43.13835H194.54417Z" transform="translate(-110.33661 -237.5817)" fill="#f2f2f2"/><path d="M734.973,411.955l-4.69488-1.97685-3.22067-23.53551h-42.889l-3.491,23.43936-4.20031,2.10013a.99744.99744,0,0,0,.44611,1.88955h57.66283A.99739.99739,0,0,0,734.973,411.955Z" transform="translate(-110.33661 -237.5817)" fill="#e6e6e6"/><path d="M811.1898,389.574H600.50692a4.174,4.174,0,0,1-4.16467-4.174V355.69092H815.35446V385.4A4.17408,4.17408,0,0,1,811.1898,389.574Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/><path d="M815.57469,369.73213H596.15V242.61337a5.0375,5.0375,0,0,1,5.03186-5.03167h209.361a5.03755,5.03755,0,0,1,5.03191,5.03167Z" transform="translate(-110.33661 -237.5817)" fill="#3f3d56"/><path d="M802.46932,360.50584h-193.214a3.88344,3.88344,0,0,1-3.87919-3.87908V250.68707a3.88365,3.88365,0,0,1,3.87919-3.87932h193.214a3.88366,3.88366,0,0,1,3.8792,3.87932V356.62676A3.88345,3.88345,0,0,1,802.46932,360.50584Z" transform="translate(-110.33661 -237.5817)" fill="#fff"/><path d="M751.57964,397.88662a11.6159,11.6159,0,0,1,17.666,2.27241l26.13446-4.64642,6.69716,15.19317-36.99908,6.04328a11.67883,11.67883,0,0,1-13.49855-18.86244Z" transform="translate(-110.33661 -237.5817)" fill="#ffb6b6"/><path d="M775.77611,417.286l27.24571-.33963,3.44882-.04668,55.43253-.69843s15.05312-14.3609,28.16068-29.1465l-1.83719-13.28833A54.29159,54.29159,0,0,0,870.023,340.1519C851.24988,352.696,840.363,377.52559,840.363,377.52559l-34.37018,8.22071-3.43848.82227-21.35608,5.10326Z" transform="translate(-110.33661 -237.5817)" fill="#000000"/><path d="M915.25011,498.96167H864.39249c0,2.17915-55.59414,3.94772-55.59414,3.94772a20.30858,20.30858,0,0,0-3.33166,3.15818,19.59694,19.59694,0,0,0-4.58,12.63271v3.15818a19.74588,19.74588,0,0,0,19.73861,19.73861h94.62478a19.75579,19.75579,0,0,0,19.73862-19.73861v-3.15818A19.76607,19.76607,0,0,0,915.25011,498.96167Z" transform="translate(-110.33661 -237.5817)" fill="#e4e4e4"/><rect x="747.4019" y="303.23122" width="20.52816" height="118.48951" fill="#e4e4e4"/><path d="M799.31222,658.58132c0,2.218,31.10721.858,69.47992.858s69.47991,1.36012,69.47991-.858-31.1072-19.807-69.47991-19.807S799.31222,656.36323,799.31222,658.58132Z" transform="translate(-110.33661 -237.5817)" fill="#e4e4e4"/><polygon points="675.186 407.461 659.908 407.46 652.64 348.531 675.188 348.532 675.186 407.461" fill="#ffb6b6"/><path d="M789.41863,659.852l-49.2623-.00183v-.62309a19.17528,19.17528,0,0,1,19.17426-19.17395h.00122l30.08773.00122Z" transform="translate(-110.33661 -237.5817)" fill="#2f2e41"/><polygon points="630.031 407.461 614.753 407.46 607.485 348.531 630.033 348.532 630.031 407.461" fill="#ffb6b6"/><path d="M744.2636,659.852l-49.2623-.00183v-.62309a19.1753,19.1753,0,0,1,19.17426-19.17395h.00122l30.08773.00122Z" transform="translate(-110.33661 -237.5817)" fill="#2f2e41"/><circle cx="766.88656" cy="41.63615" r="26.56401" fill="#ffb6b6"/><path d="M920.21655,461.22417s8.91308,47.1307-24.99958,53.13247-82.86639,10.21993-82.86639,10.21993L790.36706,627.14324l-29.53443-2.63675s3.928-123.46737,13.5876-133.127,70.71212-38.58282,70.71212-38.58282Z" transform="translate(-110.33661 -237.5817)" fill="#2f2e41"/><path d="M853.98286,441.47135,839.151,456.35062s-107.0941,17.25-111.22553,41.9852c-6.23747,37.34427-13.60493,118.552-13.60493,118.552l32.1988-2.41491,12.62647-92.31123,51.5182-11.71874L869.27729,478.5Z" transform="translate(-110.33661 -237.5817)" fill="#2f2e41"/><path d="M902.78526,263.36115c-2.6223-4.94751-5.95413-14.80785-11.24679-16.63657a42.07731,42.07731,0,0,0-9.05841-1.92972l-8.99618,3.46009,4.89616-3.808q-1.42988-.08519-2.85817-.13928l-6.0699,2.33453,3.10542-2.41532c-5.65883-.05808-11.5.53031-15.88468,3.9752-3.73817,2.93677-7.44169,14.06185-8.04057,18.77753a35.9171,35.9171,0,0,0,.6603,13.53055l1.53716,1.46166a18.85936,18.85936,0,0,0,1.206-3.83883,18.18056,18.18056,0,0,1,8.70263-11.80641l.08368-.0472c2.5782-1.451,5.7065-1.3841,8.66308-1.27769l14.04158.50527c3.37829.12158,7.01608.33533,9.64978,2.45443a15.888,15.888,0,0,1,3.85826,5.58929c1.30868,2.6414,3.8661,12.60418,3.8661,12.60418s1.44689-1.88062,2.1404-.48092a48.39766,48.39766,0,0,0,2.01437-11.23347A22.00877,22.00877,0,0,0,902.78526,263.36115Z" transform="translate(-110.33661 -237.5817)" fill="#2f2e41"/><path d="M995.69426,290.88349A11.61582,11.61582,0,0,0,985.181,305.26136l-21.3614,15.75722,6.40951,15.31674,29.8539-22.67594a11.67883,11.67883,0,0,0-4.38876-22.77589Z" transform="translate(-110.33661 -237.5817)" fill="#ffb6b6"/><path d="M992.25627,323.052l-53.551,59.4744s-25.60913-8.19816-45.41466-17.08624l-8.8977-27.32787a54.34329,54.34329,0,0,1-2.60112-19.66442c27.45606-7.306,59.391,19.87863,59.391,19.87863l40.08517-31.39877Z" transform="translate(-110.33661 -237.5817)" fill="#000000"/><path d="M867.301,465.6169c-9.554-3.30029-19.43312-6.71277-30.08912-7.99385l-.45773-.05533.12632-.443c11.03073-38.7308,8.27761-63.50657,2.87195-100.72306a37.59072,37.59072,0,0,1,21.5483-39.50121l.06542-.02958,30.43436-1.93391.06935-.00423,22.13437,6.50989a15.18313,15.18313,0,0,1,10.86724,14.83111c-.23987,12.23937.26868,25.9043.80711,40.37114,1.20787,32.45569,2.45686,66.01647-4.63045,87.79166l-.03718.11412-.09462.07416a36.09883,36.09883,0,0,1-23.08086,8.10758C887.90057,472.73235,877.76186,469.23034,867.301,465.6169Z" transform="translate(-110.33661 -237.5817)" fill="#000000"/><path d="M1088.24817,662.4183H111.75183a1.41521,1.41521,0,1,1,0-2.83042h976.49634a1.41521,1.41521,0,1,1,0,2.83042Z" transform="translate(-110.33661 -237.5817)" fill="#ccc"/></svg>`;
+
+export const WELCOME_SVG = color =>
+ `<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="613.35286" height="700.56123" viewBox="0 0 613.35286 700.56123" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M587.667,756.93133l-.78168-17.57606q-.12187-.06468-.24405-.12879c-8.37606-4.39513-17.97576,3.561-15.3004,12.63392,2.51722,8.5366,4.20846,17.73958,8.81613,25.21162a34.14441,34.14441,0,0,0,25.03847,15.77861l10.64166,6.51555a57.21525,57.21525,0,0,0-12.05953-46.36368,55.2668,55.2668,0,0,0-10.157-9.4375C591.07189,750.28541,587.667,756.93133,587.667,756.93133Z" transform="translate(-293.32357 -99.71938)" fill="#f2f2f2"/><path d="M492.3909,578.56387c-20.48783-21.12931-50.17767-33.24712-81.45666-33.24712l-1.20652.00324a116.3146,116.3146,0,0,1-58.63546-15.83485l-1.85205-1.07912,1.49167-1.537a113.37272,113.37272,0,0,0,19.99317-28.30616,34.28239,34.28239,0,0,1-27.66751,8.93789,35.10416,35.10416,0,0,1-25.77016-16.50626c-10.93231-17.73787-23.96381-42.90658-23.96381-62.0803a116.66888,116.66888,0,0,1,38.0631-86.091,72.65143,72.65143,0,0,0,23.99981-54.17137l-.00607-1.45284a164.77416,164.77416,0,0,1,4.8908-39.87268l.33005-1.31694,1.355.04732a111.39121,111.39121,0,0,0,26.04681-2.1821,87.918,87.918,0,0,1-23.35954-6.213l-1.45769-.58971.4947-1.4937C397.78172,214.464,474.7579,225.398,519.43718,123.17462,555.666,40.28535,683.49348,196.75549,683.49348,287.199c0,9.2287-9.13324,21.42423-2.29615,27.52391,73.90979,65.93827,22.91308,108.27972,6.83466,150.88534-3.81479,10.10871,4.45682,21.20613,4.45682,32.14249,0,1.85569-.04732,3.77124-.14076,5.69327l-.14237,2.955-2.46441-1.63971a81.62563,81.62563,0,0,1-13.47964-11.05649,71.13531,71.13531,0,0,1-2.25612,61.41172c-7.74552,14.619-15.23907,25.085-22.27193,31.10507a116.2904,116.2904,0,0,1-159.34268-7.65574Z" transform="translate(-293.32357 -99.71938)" fill="#e6e6e6"/><path d="M616.13152,798.499a2.09333,2.09333,0,0,0,2.06993-1.79837c.08893-.62489,8.80049-63.45379.97652-146.956-7.22548-77.11632-30.4294-188.191-99.9393-279.41478a2.0935,2.0935,0,1,0-3.33028,2.53775c68.90954,90.436,91.9264,200.69567,99.10094,277.2675,7.77849,83.01636-.86476,145.3553-.953,145.97542a2.09519,2.09519,0,0,0,2.0752,2.38851Z" transform="translate(-293.32357 -99.71938)" fill="#3f3d56"/><path d="M559.40732,499.0052a2.09343,2.09343,0,0,0,1.23242-3.78686c-.25231-.18331-25.681-18.50562-63.69657-32.425-35.14253-12.86589-88.582-24.5297-143.597-7.02036a2.0932,2.0932,0,1,0,1.26956,3.98925c53.88785-17.14953,106.35862-5.67858,140.88784,6.96312,37.47293,13.72044,62.427,31.7,62.67472,31.87988A2.08515,2.08515,0,0,0,559.40732,499.0052Z" transform="translate(-293.32357 -99.71938)" fill="#3f3d56"/><path d="M655.2196,260.37275a2.09343,2.09343,0,0,0-3.68827-1.50192c-.201.23845-20.307,24.28166-36.928,61.19609-15.36327,34.12475-30.84523,86.58548-17.34326,142.71855a2.09319,2.09319,0,1,0,4.07031-.979c-13.22427-54.983,1.99558-106.49141,17.09108-140.02058,16.38342-36.38756,36.11335-59.982,36.31062-60.21616A2.0852,2.0852,0,0,0,655.2196,260.37275Z" transform="translate(-293.32357 -99.71938)" fill="#3f3d56"/><path d="M652.38648,368.31675c1.76623,14.25037,11.64059,26,26,26a26,26,0,0,0,26-26c0-14.3594-11.70215-24.67241-26-26C663.21558,340.90809,650.11884,350.02107,652.38648,368.31675Z" transform="translate(-293.32357 -99.71938)" fill="#2f2e41"/><polygon points="397.105 687.328 407.006 687.327 411.716 649.137 397.103 649.138 397.105 687.328" fill="#ffb6b6"/><path d="M690.08055,797.37579l30.447-.00116v-.385A11.85149,11.85149,0,0,0,708.67674,785.139H708.676l-5.56152-4.21923-10.37659,4.21991-2.65783.00006Z" transform="translate(-293.32357 -99.71938)" fill="#2f2e41"/><polygon points="358.105 687.328 368.006 687.327 372.716 649.137 358.103 649.138 358.105 687.328" fill="#ffb6b6"/><path d="M651.08055,797.37579l30.447-.00116v-.385A11.85149,11.85149,0,0,0,669.67674,785.139H669.676l-5.56152-4.21923-10.37659,4.21991-2.65783.00006Z" transform="translate(-293.32357 -99.71938)" fill="#2f2e41"/><path d="M724.50065,547.85614l7,24L723.25419,673.501s4.24646,6.35511,1.24646,6.35511-6.84686,1.40942-4.4234,5.20471-5.86,17.4209-5.86,17.4209l-11.71661,72.37439-14.92914-.22046s-7.59009-4.22833-3.3305-8.504,7.25958-4.27557,3.25958-8.27557-4-2.79529-4-5.89765-4.00751-41.01574,5.49628-55.559l-2.86365-59.29529-6.74457,58.16144-13.888,77.59052-14.38171-.11847s-6.64276-6.40271-6.6305-11.14209,4.10419-5.13312,1.05823-7.93628-3.046-45.86615,5.954-69.80316c0,0,5.09108-13.37393-.01155-17.95666s-.00631-9.82652-.00631-9.82652,8.08172-2.92145-.0073-11.33883-.04369-67.94913-.04369-67.94913-8.84271-24.03067.1131-33.47977S724.50065,547.85614,724.50065,547.85614Z" transform="translate(-293.32357 -99.71938)" fill="#2f2e41"/><path d="M599.82611,589.20574l12.48925-30.1823,9.84,5.46667-5.94253,30.70307a10.93464,10.93464,0,1,1-16.38671-5.98744Z" transform="translate(-293.32357 -99.71938)" fill="#ffb6b6"/><path d="M809.4002,350.535l-19.00315,26.56751-8.34544-7.554,12.7447-28.5581A10.93464,10.93464,0,1,1,809.4002,350.535Z" transform="translate(-293.32357 -99.71938)" fill="#ffb6b6"/><path d="M726.38648,550.31675c12.32568,19.11831-49.63137,43.38055-73.40448,33.64-4.1628-1.7056-18.48212-7.33918-8.69439-15.14958s-1.1348-8.90952-1.393-13.99392c-.1726-3.39918,2.45917-10.85592-.28674-10.5362s-5.95975-4.3811.0205-6.404.06411-3.86767.11651-5.78787c.57186-20.95538,16.64979-54.2869,16.64979-54.2869l-28.971,74.05682s.214,12.81223-3.48049,8.897-3.42565,8.75675-3.42565,8.75675-5.49354,3.83389-2.33452,5.9676-3.401,8.6937-3.401,8.6937l-15.30666-1.09334s.23964-11.37068,2.85315-13.88533,1.32975-6.47144,1.32975-6.47144,6.80457-6.02348,2.24268-10.91429c-5.86712-6.29013,15.52417-112.52993,22.90637-111.47784a28.12048,28.12048,0,0,1,20.08017-21.45161l16.53221-4.55191,2.93564-11.64749h23.27852l4.0548,7.65333,17.69783,7.98657c3.33362-4.70352,5.82477-9.65991,19.47546-11.26657,0,0,36.78255-33.46683,34.98668-36.08s3.906-8.73109,3.906-8.73109,4.86956-1.59377,2.12179-2.44467,2.446-2.81826,2.446-2.81826,4.81028-1.264,2.54157-2.92832,7.57128-2.75765,7.57128-2.75765l12.767,10.4168-2.58037,4.37541s1.5733,5.958-.48,3.78289-2.43983,4.1371-2.43983,4.1371-1.0486,6.912-7.26682,8.99446S778.502,404.8635,778.502,404.8635c-14.6648,19.0673-31.97132,33.9415-52.48,43.73331C734.01483,457.77113,726.38648,550.31675,726.38648,550.31675Z" transform="translate(-293.32357 -99.71938)" fill="${color}"/><circle cx="387.93692" cy="273.08556" r="23.0557" fill="#ffb6b6"/><path d="M657.38648,375.31675c.73,5.01,5,12,4,12s-8.11-20.65332-1-22c5.15722-.97681,6.31-.12,11.13-2.21l-.68.64c3.19,2.32,7.63.89,11.27-.62,3.65-1.5,8.08-2.93,11.28-.62,2.01,1.45,2.86,3.97,4.11,6.11,1.25,2.15,3.56,4.18,5.94,3.52,1.91-.53,3.01-2.67005,3-4.65s-2.58825-3.86355-1.72-5.64c2.57319-5.26444.25916-8.85275-5.35-11.33q-3.06-.465-6.12-.95a17.35842,17.35842,0,0,1,3.84-3.86,8.77436,8.77436,0,0,0-3.1-3.97c-1.63-.97-3.65-.9-5.54-.8q-6.33.33-12.65.66c-3.12.16-6.35.35-9.13995,1.78-3.48,1.79-5.76,5.28-7.42005,8.83C655.51648,360.18675,656.10645,366.60679,657.38648,375.31675Z" transform="translate(-293.32357 -99.71938)" fill="#2f2e41"/><path d="M561.476,799.97328l226.75.30734a1.19068,1.19068,0,1,0,0-2.38137l-226.75-.30733a1.19068,1.19068,0,0,0,0,2.38136Z" transform="translate(-293.32357 -99.71938)" fill="#cacaca"/><ellipse cx="471.98821" cy="695.09416" rx="5.25681" ry="7.55666" transform="translate(-577.14417 962.36498) rotate(-81.72174)" fill="#e6e6e6"/><ellipse cx="521.15973" cy="690.29611" rx="5.2568" ry="7.55666" transform="translate(-530.30434 1006.91693) rotate(-81.72174)" fill="#3f3d56"/><ellipse cx="458.5236" cy="655.286" rx="5.25681" ry="7.55666" transform="translate(-549.27676 914.96411) rotate(-81.72174)" fill="#ff6584"/><ellipse cx="441.31304" cy="640.04291" rx="4.77581" ry="3.3223" transform="translate(-495.37215 976.78425) rotate(-89.56675)" fill="#e6e6e6"/><ellipse cx="434.06731" cy="609.6713" rx="4.77581" ry="3.3223" transform="translate(-472.19234 939.39678) rotate(-89.56675)" fill="#3f3d56"/><ellipse cx="490.41248" cy="663.12322" rx="4.77581" ry="3.3223" transform="translate(-469.72363 1048.78806) rotate(-89.56675)" fill="#e6e6e6"/><ellipse cx="466.65067" cy="674.98721" rx="4.77581" ry="3.3223" transform="translate(-505.16941 1036.80122) rotate(-89.56675)" fill="#ff6584"/><ellipse cx="499.72794" cy="696.91495" rx="4.77581" ry="3.3223" transform="translate(-494.26937 1091.63947) rotate(-89.56675)" fill="#3f3d56"/><ellipse cx="849.98821" cy="541.09416" rx="5.25681" ry="7.55666" transform="translate(-101.17347 1204.59943) rotate(-81.72174)" fill="#e6e6e6"/><ellipse cx="899.15973" cy="536.29611" rx="5.2568" ry="7.55666" transform="translate(-54.33364 1249.15138) rotate(-81.72174)" fill="#3f3d56"/><ellipse cx="836.5236" cy="501.286" rx="5.25681" ry="7.55666" transform="matrix(0.14398, -0.98958, 0.98958, 0.14398, -73.30606, 1157.19856)" fill="#ff6584"/><ellipse cx="819.31304" cy="486.04292" rx="4.77581" ry="3.3223" transform="translate(33.76519 1201.93792) rotate(-89.56675)" fill="#e6e6e6"/><ellipse cx="812.06731" cy="455.6713" rx="4.77581" ry="3.3223" transform="translate(56.94499 1164.55045) rotate(-89.56675)" fill="#3f3d56"/><ellipse cx="868.41248" cy="509.12322" rx="4.77581" ry="3.3223" transform="translate(59.41371 1273.94173) rotate(-89.56675)" fill="#e6e6e6"/><ellipse cx="844.65067" cy="520.98721" rx="4.77581" ry="3.3223" transform="translate(23.96793 1261.95489) rotate(-89.56675)" fill="#ff6584"/><ellipse cx="877.72794" cy="542.91495" rx="4.77581" ry="3.3223" transform="translate(34.86796 1316.79314) rotate(-89.56675)" fill="#3f3d56"/><ellipse cx="666.98821" cy="256.09416" rx="5.25681" ry="7.55666" transform="translate(24.20544 779.54069) rotate(-81.72174)" fill="#fff"/><ellipse cx="716.15973" cy="251.29611" rx="5.2568" ry="7.55666" transform="translate(71.04527 824.09264) rotate(-81.72174)" fill="#3f3d56"/><ellipse cx="653.5236" cy="216.286" rx="5.25681" ry="7.55666" transform="translate(52.07285 732.13983) rotate(-81.72174)" fill="#ff6584"/><ellipse cx="636.31304" cy="201.04292" rx="4.77581" ry="3.3223" transform="translate(137.1408 736.09819) rotate(-89.56675)" fill="#e6e6e6"/><ellipse cx="629.06731" cy="170.6713" rx="4.77581" ry="3.3223" transform="translate(160.32061 698.71071) rotate(-89.56675)" fill="#3f3d56"/><ellipse cx="685.41248" cy="224.12322" rx="4.77581" ry="3.3223" transform="translate(162.78933 808.102) rotate(-89.56675)" fill="#e6e6e6"/><ellipse cx="661.65067" cy="235.98721" rx="4.77581" ry="3.3223" transform="translate(127.34354 796.11516) rotate(-89.56675)" fill="#ff6584"/><ellipse cx="694.72794" cy="257.91495" rx="4.77581" ry="3.3223" transform="translate(138.24358 850.95341) rotate(-89.56675)" fill="#3f3d56"/></svg>`;
diff --git a/apps/mobile/src/components/Auth/changepassword.js b/apps/mobile/src/components/Auth/changepassword.js
index f849c7182..2a86304e6 100644
--- a/apps/mobile/src/components/Auth/changepassword.js
+++ b/apps/mobile/src/components/Auth/changepassword.js
@@ -22,7 +22,7 @@ export const ChangePassword = () => {
const [loading, setLoading] = useState(false);
const changePassword = async () => {
- if (error || !oldPassword || !password) {
+ if (error || !oldPassword.current || !password.current) {
ToastEvent.show({
heading: 'All fields required',
message: 'Fill all the fields and try again.',
@@ -34,7 +34,7 @@ export const ChangePassword = () => {
eSendEvent(eCloseProgressDialog);
setLoading(true);
try {
- await db.user.changePassword(oldPassword, password);
+ await db.user.changePassword(oldPassword.current, password.current);
ToastEvent.show({
heading: `Account password updated`,
type: 'success',
diff --git a/apps/mobile/src/components/Auth/forgotpassword.js b/apps/mobile/src/components/Auth/forgotpassword.js
index d34fba9a7..f1925588b 100644
--- a/apps/mobile/src/components/Auth/forgotpassword.js
+++ b/apps/mobile/src/components/Auth/forgotpassword.js
@@ -24,7 +24,7 @@ export const ForgotPassword = () => {
const [sent, setSent] = useState(false);
const sendRecoveryEmail = async () => {
- if (!email || error) {
+ if (!email.current || error) {
ToastEvent.show({
heading: 'Account email is required.',
type: 'error',
@@ -38,7 +38,7 @@ export const ForgotPassword = () => {
if (lastRecoveryEmailTime && Date.now() - JSON.parse(lastRecoveryEmailTime) < 60000 * 3) {
throw new Error('Please wait before requesting another email');
}
- await db.user.recoverAccount(email.toLowerCase());
+ await db.user.recoverAccount(email.current.toLowerCase());
await MMKV.setItem('lastRecoveryEmailTime', JSON.stringify(Date.now()));
ToastEvent.show({
heading: `Check your email to reset password`,
diff --git a/apps/mobile/src/components/Auth/login.js b/apps/mobile/src/components/Auth/login.js
index 2d42e3a38..66013081f 100644
--- a/apps/mobile/src/components/Auth/login.js
+++ b/apps/mobile/src/components/Auth/login.js
@@ -1,5 +1,5 @@
import React, { useEffect, useRef, useState } from 'react';
-import { LayoutAnimation, Platform, View } from 'react-native';
+import { Platform, View } from 'react-native';
import { SheetManager } from 'react-native-actions-sheet';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { useTracked } from '../../provider';
@@ -31,9 +31,7 @@ export const Login = ({ changeMode }) => {
const emailInputRef = useRef();
const passwordInputRef = useRef();
const password = useRef();
-
const [focused, setFocused] = useState(false);
-
const [error, setError] = useState(false);
const [loading, setLoading] = useState(false);
const insets = useSafeAreaInsets();
diff --git a/apps/mobile/src/components/Auth/signup.js b/apps/mobile/src/components/Auth/signup.js
index dd27d92da..d2658c592 100644
--- a/apps/mobile/src/components/Auth/signup.js
+++ b/apps/mobile/src/components/Auth/signup.js
@@ -8,7 +8,8 @@ import { eSendEvent, ToastEvent } from '../../services/EventManager';
import { clearMessage, setEmailVerifyMessage } from '../../services/Message';
import PremiumService from '../../services/PremiumService';
import { db } from '../../utils/database';
-import { eCloseLoginDialog, eOpenResultDialog } from '../../utils/Events';
+import { eCloseLoginDialog } from '../../utils/Events';
+import { openLinkInBrowser } from '../../utils/functions';
import { SIZE } from '../../utils/SizeUtils';
import { sleep } from '../../utils/TimeUtils';
import umami from '../../utils/umami';
@@ -58,7 +59,7 @@ export const Signup = ({ changeMode, welcome, trial }) => {
if (!validateInfo() || error) return;
setLoading(true);
try {
- await db.user.signup(email.toLowerCase(), password);
+ await db.user.signup(email.current.toLowerCase(), password.current);
let user = await db.user.getUser();
setUser(user);
setLastSynced(await db.lastSynced());
@@ -214,7 +215,36 @@ export const Signup = ({ changeMode, welcome, trial }) => {
marginBottom={5}
/>
<Paragraph size={SIZE.xs} color={colors.icon}>
- By signing up, you agree to our terms of service and privacy policy.
+ By signing up, you agree to our{' '}
+ <Paragraph
+ size={SIZE.xs}
+ onPress={() => {
+ openLinkInBrowser('https://notesnook.com/tos', colors)
+ .catch(e => {})
+ .then(r => {});
+ }}
+ style={{
+ textDecorationLine: 'underline'
+ }}
+ color={colors.accent}
+ >
+ terms of service{' '}
+ </Paragraph>
+ and{' '}
+ <Paragraph
+ size={SIZE.xs}
+ onPress={() => {
+ openLinkInBrowser('https://notesnook.com/privacy', colors)
+ .catch(e => {})
+ .then(r => {});
+ }}
+ style={{
+ textDecorationLine: 'underline'
+ }}
+ color={colors.accent}
+ >
+ privacy policy.
+ </Paragraph>
</Paragraph>
<View
diff --git a/apps/mobile/src/components/ListPlaceholders/index.js b/apps/mobile/src/components/ListPlaceholders/index.js
index 5bf2a262b..fdcbfb57c 100644
--- a/apps/mobile/src/components/ListPlaceholders/index.js
+++ b/apps/mobile/src/components/ListPlaceholders/index.js
@@ -53,7 +53,7 @@ export const Placeholder = ({ type, w, h, color }) => {
);
};
-export const SvgToPngView = ({ width, height, src, color, img }) => {
+export const SvgToPngView = ({ width = 250, height = 250, src }) => {
const [error, setError] = useState(false);
return (
diff --git a/apps/mobile/src/components/Menu/MenuListItem.js b/apps/mobile/src/components/Menu/MenuListItem.js
index 812475d16..9f82ea375 100644
--- a/apps/mobile/src/components/Menu/MenuListItem.js
+++ b/apps/mobile/src/components/Menu/MenuListItem.js
@@ -1,16 +1,15 @@
import React, { useEffect, useState } from 'react';
-import { InteractionManager, View } from 'react-native';
+import { View } from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
+import ToggleSwitch from 'toggle-switch-react-native';
import { useTracked } from '../../provider';
import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';
import Navigation from '../../services/Navigation';
-import { getElevation } from '../../utils';
import { normalize, SIZE } from '../../utils/SizeUtils';
import { Button } from '../Button';
import { PressableButton } from '../PressableButton';
import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
-import ToggleSwitch from 'toggle-switch-react-native';
export const MenuListItem = React.memo(
({ item, index, noTextMode, testID, rightBtn }) => {
diff --git a/apps/mobile/src/components/Premium/component.js b/apps/mobile/src/components/Premium/component.js
index d9acb7e86..f409727fe 100644
--- a/apps/mobile/src/components/Premium/component.js
+++ b/apps/mobile/src/components/Premium/component.js
@@ -7,8 +7,15 @@ import { DDS } from '../../services/DeviceDetection';
import { eSendEvent, presentSheet } from '../../services/EventManager';
import PremiumService from '../../services/PremiumService';
import { getElevation } from '../../utils';
-import { eOpenLoginDialog, eOpenResultDialog } from '../../utils/Events';
+import { db } from '../../utils/database';
+import {
+ eClosePremiumDialog,
+ eCloseProgressDialog,
+ eOpenLoginDialog,
+ eOpenResultDialog
+} from '../../utils/Events';
import { SIZE } from '../../utils/SizeUtils';
+import { sleep } from '../../utils/TimeUtils';
import umami from '../../utils/umami';
import { ActionIcon } from '../ActionIcon';
import { AuthMode } from '../Auth';
@@ -19,6 +26,7 @@ import Seperator from '../Seperator';
import { Toast } from '../Toast';
import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
+import { Walkthrough } from '../Walkthrough';
import { features } from './features';
import { Group } from './group';
import { PricingPlans } from './pricing-plans';
@@ -146,8 +154,14 @@ export const Component = ({ close, promo, getRef }) => {
{userCanRequestTrial ? (
<Button
key="calltoaction"
- onPress={() => {
- eSendEvent(eOpenResultDialog);
+ onPress={async () => {
+ try {
+ await db.user.activateTrial();
+ eSendEvent(eClosePremiumDialog);
+ eSendEvent(eCloseProgressDialog);
+ await sleep(300);
+ Walkthrough.present('trialstarted', false, true);
+ } catch (e) {}
}}
title="Try free for 14 days"
type="accent"
diff --git a/apps/mobile/src/components/Premium/pricingplans.js b/apps/mobile/src/components/Premium/pricingplans.js
index 75498bfc6..159ef44ae 100644
--- a/apps/mobile/src/components/Premium/pricingplans.js
+++ b/apps/mobile/src/components/Premium/pricingplans.js
@@ -22,6 +22,7 @@ import BaseDialog from '../Dialog/base-dialog';
import { presentDialog } from '../Dialog/functions';
import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
+import { Walkthrough } from '../Walkthrough';
import { PricingItem } from './pricing-item';
const promoCyclesMonthly = {
@@ -195,12 +196,14 @@ export const PricingPlans = ({
/>
<Button
- onPress={() => {
- eSendEvent(eClosePremiumDialog);
- eSendEvent(eCloseProgressDialog);
- setTimeout(() => {
- eSendEvent(eOpenLoginDialog, 1);
- }, 400);
+ onPress={async () => {
+ try {
+ await db.user.activateTrial();
+ eSendEvent(eClosePremiumDialog);
+ eSendEvent(eCloseProgressDialog);
+ await sleep(300);
+ Walkthrough.present('trialstarted', false, true);
+ } catch (e) {}
}}
title={`Try free for 14 days`}
type="grayAccent"
diff --git a/apps/mobile/src/components/Walkthrough/index.tsx b/apps/mobile/src/components/Walkthrough/index.tsx
index 535aa68b5..1fecae7dc 100644
--- a/apps/mobile/src/components/Walkthrough/index.tsx
+++ b/apps/mobile/src/components/Walkthrough/index.tsx
@@ -11,7 +11,7 @@ import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
import walkthroughs, { TStep } from './walkthroughs';
-export const Walkthrough = ({ steps }: { steps: TStep[] }) => {
+export const Walkthrough = ({ steps, canSkip = true }: { steps: TStep[]; canSkip: boolean }) => {
const [state] = useTracked();
const colors = state.colors;
const [step, setStep] = useState<TStep>(steps && steps[0]);
@@ -33,17 +33,36 @@ export const Walkthrough = ({ steps }: { steps: TStep[] }) => {
>
{step.walkthroughItem(colors)}
- <Heading>{step.title}</Heading>
- <Paragraph
- style={{
- textAlign: 'center',
- alignSelf: 'center',
- maxWidth: '80%'
- }}
- size={SIZE.md}
- >
- {step.text}
- </Paragraph>
+ {step.title ? <Heading>{step.title}</Heading> : null}
+ {step.text ? (
+ <Paragraph
+ style={{
+ textAlign: 'center',
+ alignSelf: 'center',
+ maxWidth: '80%'
+ }}
+ size={SIZE.md}
+ >
+ {step.text}
+ </Paragraph>
+ ) : null}
+ {step.actionButton && (
+ <Button
+ //@ts-ignore
+ style={{
+ height: 30,
+ marginTop: 10
+ }}
+ textStyle={{
+ textDecorationLine: 'underline'
+ }}
+ onPress={async () => {
+ step.actionButton?.action();
+ }}
+ type="transparent"
+ title={step.actionButton.text}
+ />
+ )}
<Button
//@ts-ignore
@@ -69,43 +88,52 @@ export const Walkthrough = ({ steps }: { steps: TStep[] }) => {
type="accent"
/>
- <Button
- //@ts-ignore
- style={{
- height: 30,
- marginTop: 10
- }}
- textStyle={{
- textDecorationLine: 'underline'
- }}
- onPress={async () => {
- eSendEvent(eCloseProgressDialog);
- }}
- type="gray"
- title="Skip introduction"
- />
+ {canSkip ? (
+ <Button
+ //@ts-ignore
+ style={{
+ height: 30,
+ marginTop: 10
+ }}
+ textStyle={{
+ textDecorationLine: 'underline'
+ }}
+ onPress={async () => {
+ eSendEvent(eCloseProgressDialog);
+ }}
+ type="gray"
+ title="Skip introduction"
+ />
+ ) : null}
</View>
);
};
-Walkthrough.present = async (id: 'notebooks') => {
- let walkthroughState = await MMKV.getItem('walkthroughState');
- if (walkthroughState) {
- walkthroughState = JSON.parse(walkthroughState);
- } else {
+Walkthrough.present = async (
+ id: 'notebooks' | 'trialstarted' | 'emailconfirmed' | 'prouser',
+ canSkip = true,
+ nopersist?: boolean
+) => {
+ if (!nopersist) {
+ let walkthroughState = await MMKV.getItem('walkthroughState');
+ if (walkthroughState) {
+ walkthroughState = JSON.parse(walkthroughState);
+ } else {
+ //@ts-ignore
+ walkthroughState = {};
+ }
+ //@ts-ignore
+ if (walkthroughState[id]) return;
//@ts-ignore
- walkthroughState = {};
+ walkthroughState[id] = true;
+ MMKV.setItem('walkthroughState', JSON.stringify(walkthroughState));
}
- //@ts-ignore
- if (walkthroughState[id]) return;
- //@ts-ignore
- walkthroughState[id] = true;
- MMKV.setItem('walkthroughState', JSON.stringify(walkthroughState));
+
//@ts-ignore
let walkthrough = walkthroughs[id];
if (!walkthrough) return;
presentSheet({
- component: <Walkthrough steps={walkthrough.steps} />,
+ component: <Walkthrough canSkip={canSkip} steps={walkthrough.steps} />,
disableClosing: true
});
};
diff --git a/apps/mobile/src/components/Walkthrough/walkthroughs.tsx b/apps/mobile/src/components/Walkthrough/walkthroughs.tsx
index 877674789..3e2cca846 100644
--- a/apps/mobile/src/components/Walkthrough/walkthroughs.tsx
+++ b/apps/mobile/src/components/Walkthrough/walkthroughs.tsx
@@ -1,25 +1,34 @@
import React from 'react';
-import { View } from 'react-native';
+import { Linking, View } from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
+import { COMMUNITY_SVG, LAUNCH_ROCKET, SUPPORT_SVG, WELCOME_SVG } from '../../assets/images/assets';
import { TrackedState, useTracked } from '../../provider';
import { eSendEvent } from '../../services/EventManager';
import { getElevation } from '../../utils';
import { eOpenAddNotebookDialog } from '../../utils/Events';
import { SIZE } from '../../utils/SizeUtils';
import useRotator from '../../utils/use-rotator';
+import { AccentColorPicker } from '../../views/Settings/appearance';
+import { Button } from '../Button';
+import { SvgToPngView } from '../ListPlaceholders';
import { PinItem } from '../Menu/TagsSection';
+import Seperator from '../Seperator';
import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
export type TStep = {
- text: string;
+ text?: string;
walkthroughItem: (colors: TrackedState['colors']) => React.ReactNode;
- title: string;
+ title?: string;
button?: {
type: 'next' | 'done';
title: string;
action?: () => void;
};
+ actionButton?: {
+ text: string;
+ action: () => void;
+ };
};
const NotebookWelcome = () => {
@@ -237,4 +246,170 @@ const notebooks: { id: string; steps: TStep[] } = {
]
};
-export default { notebooks };
+const ChooseTheme = () => {
+ const [state] = useTracked();
+ const { colors } = state;
+
+ return (
+ <View
+ style={{
+ height: 100
+ }}
+ >
+ <AccentColorPicker settings={false} />
+ </View>
+ );
+};
+
+const trialstarted: { id: string; steps: TStep[] } = {
+ id: 'trialstarted',
+ steps: [
+ {
+ title: 'Your trial is activated',
+ text: 'You can use all permium features for free for the next 14 days',
+ walkthroughItem: colors => <SvgToPngView src={LAUNCH_ROCKET(colors.pri)} />,
+ button: {
+ type: 'next',
+ title: 'Next'
+ }
+ },
+
+ {
+ title: 'Make yourself at home',
+ text: 'Pick a theme of your choice',
+ walkthroughItem: () => <ChooseTheme />,
+ button: {
+ type: 'next',
+ title: 'Next'
+ }
+ },
+ {
+ title: 'Join the cause',
+ text: 'Meet other privacy-minded people and talk to us directly about your concerns, issues and suggestions.',
+ walkthroughItem: colors => <SvgToPngView src={COMMUNITY_SVG(colors.pri)} />,
+ button: {
+ type: 'done',
+ title: 'Continue'
+ },
+ actionButton: {
+ text: 'Join Discord Community',
+ action: () => {
+ Linking.openURL('https://discord.gg/zQBK97EE22').catch(console.log);
+ }
+ }
+ }
+ ]
+};
+
+const emailconfirmed: { id: string; steps: TStep[] } = {
+ id: 'emailconfirmed',
+ steps: [
+ {
+ title: 'Email confirmed',
+ text: 'Your email was confirmed successfully. Thank you for choosing end-to-end encrypted note taking.',
+ walkthroughItem: colors => <SvgToPngView src={WELCOME_SVG(colors.pri)} />,
+ button: {
+ type: 'done',
+ title: 'Continue'
+ }
+ }
+ ]
+};
+
+const Support = () => {
+ const [state] = useTracked();
+ const { colors } = state;
+
+ return (
+ <View
+ style={{
+ width: '100%',
+ alignItems: 'center'
+ }}
+ >
+ <SvgToPngView src={SUPPORT_SVG()} />
+ <Heading>Get Priority Support</Heading>
+ <Paragraph
+ style={{
+ textAlign: 'center'
+ }}
+ size={SIZE.md}
+ >
+ You can reach out to us via multiple channels if you face an issue or want to just talk.
+ </Paragraph>
+ <Seperator />
+
+ <Button
+ style={{
+ justifyContent: 'flex-start',
+ marginBottom: 10,
+ width: '90%'
+ }}
+ onPress={() => {
+ Linking.openURL('https://discord.gg/zQBK97EE22').catch(console.log);
+ }}
+ icon="discord"
+ type="grayBg"
+ title="Join our community on Discord"
+ />
+
+ <Button
+ style={{
+ justifyContent: 'flex-start',
+ marginBottom: 10,
+ width: '90%'
+ }}
+ onPress={() => {
+ Linking.openURL('https://t.me/notesnook').catch(console.log);
+ }}
+ icon="telegram"
+ type="grayBg"
+ title="Join our Telegram group"
+ />
+ <Button
+ style={{
+ justifyContent: 'flex-start',
+ marginBottom: 10,
+ width: '90%'
+ }}
+ icon="bug"
+ type="grayBg"
+ title="Submit an issue from Settings"
+ />
+ <Button
+ style={{
+ justifyContent: 'flex-start',
+ marginBottom: 10,
+ width: '90%'
+ }}
+ icon="mail"
+ type="grayBg"
+ title="Email us at [email protected]"
+ />
+ </View>
+ );
+};
+
+const prouser: { id: string; steps: TStep[] } = {
+ id: 'prouser',
+ steps: [
+ {
+ title: 'Welcome to Notesnook Pro',
+ text: 'Thank you for reaffirming our idea that privacy comes first',
+ walkthroughItem: colors => <SvgToPngView src={LAUNCH_ROCKET(colors.pri)} />,
+ button: {
+ type: 'next',
+ title: 'Next'
+ }
+ },
+ {
+ walkthroughItem: () => <Support />,
+ button: {
+ type: 'done',
+ title: 'Continue'
+ }
+ }
+ ]
+};
+
+export default { notebooks, trialstarted, emailconfirmed, prouser };
diff --git a/apps/mobile/src/navigation/RootView.js b/apps/mobile/src/navigation/RootView.js
index 54a6e17ee..4077e2cdf 100644
--- a/apps/mobile/src/navigation/RootView.js
+++ b/apps/mobile/src/navigation/RootView.js
@@ -23,11 +23,11 @@ import {
} from '../utils/Events';
import { editorRef, tabBarRef } from '../utils/Refs';
import { sleep } from '../utils/TimeUtils';
+import useTooltip, { hideAllTooltips } from '../utils/use-tooltip';
import { EditorWrapper } from '../views/Editor/EditorWrapper';
import { checkStatus, EditorWebView, getNote } from '../views/Editor/Functions';
import tiny from '../views/Editor/tiny/tiny';
import { NavigatorStack } from './NavigatorStack';
-import useTooltip, { hideAllTooltips } from '../utils/use-tooltip';
let layoutTimer = null;
diff --git a/apps/mobile/src/services/Message.js b/apps/mobile/src/services/Message.js
index 978060a2e..791892f2b 100644
--- a/apps/mobile/src/services/Message.js
+++ b/apps/mobile/src/services/Message.js
@@ -70,13 +70,13 @@ export function setLoginMessage() {
const emailMessage = {
visible: true,
message: 'Email not confirmed',
- actionText: 'Confirm now to get 7 more days of free trial',
+ actionText: 'Please confrim your email to sync notes.',
onPress: () => {
PremiumService.showVerifyEmailDialog();
},
data: {},
icon: 'email',
- type: 'normal'
+ type: 'error'
};
export function setEmailVerifyMessage() {
diff --git a/apps/mobile/src/utils/useAppEvents.js b/apps/mobile/src/utils/useAppEvents.js
index 81468ed0c..1ea9a2659 100644
--- a/apps/mobile/src/utils/useAppEvents.js
+++ b/apps/mobile/src/utils/useAppEvents.js
@@ -15,6 +15,7 @@ import * as RNIap from 'react-native-iap';
import { enabled } from 'react-native-privacy-snapshot';
import { doInBackground, editing } from '.';
import { ProFeatures } from '../components/ResultDialog/pro-features';
+import { Walkthrough } from '../components/Walkthrough';
import {
clearAllStores,
initialize,
@@ -202,23 +203,7 @@ export const useAppEvents = () => {
if (!user) return;
MMKV.setItem('isUserEmailConfirmed', 'yes');
await PremiumService.setPremiumStatus();
- let message = 'You have been rewarded 7 more days of free trial. Enjoy using Notesnook!';
- presentSheet({
- title: 'Email confirmed!',
- paragraph: message,
- component: (
- <View
- style={{
- paddingHorizontal: 12,
- paddingBottom: 15,
- alignItems: 'center'
- }}
- >
- <ProFeatures />
- </View>
- )
- });
-
+ Walkthrough.present('emailconfirmed', false, true);
if (user?.isEmailConfirmed) {
clearMessage();
}
@@ -240,15 +225,7 @@ export const useAppEvents = () => {
const onAccountStatusChange = async userStatus => {
if (!PremiumService.get() && userStatus.type === 5) {
PremiumService.subscriptions.clear();
- presentSheet({
- title: 'Notesnook Pro',
- paragraph: `Your Notesnook Pro subscription has been successfully activated.`,
- action: async () => {
- eSendEvent(eCloseProgressDialog);
- },
- icon: 'check',
- actionText: 'Continue'
- });
+ Walkthrough.present('prouser', false, true);
}
await PremiumService.setPremiumStatus();
};
diff --git a/apps/mobile/src/views/Settings/appearance.js b/apps/mobile/src/views/Settings/appearance.js
index 68f4d634b..ced8e66c9 100644
--- a/apps/mobile/src/views/Settings/appearance.js
+++ b/apps/mobile/src/views/Settings/appearance.js
@@ -1,5 +1,6 @@
import React, { useRef, useState } from 'react';
-import { Appearance, ScrollView, TouchableOpacity, View } from 'react-native';
+import { Appearance, TouchableOpacity, View } from 'react-native';
+import { ScrollView } from 'react-native-gesture-handler';
import Menu, { MenuItem } from 'react-native-reanimated-material-menu';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import ToggleSwitch from 'toggle-switch-react-native';
@@ -111,82 +112,8 @@ const SettingsAppearanceSection = () => {
Change the accent color of the app.
</Paragraph>
</View>
- <ScrollView
- horizontal={true}
- showsHorizontalScrollIndicator={false}
- onMoveShouldSetResponderCapture={() => {
- tabBarRef.current?.setScrollEnabled(false);
- }}
- onMomentumScrollEnd={() => {
- tabBarRef.current?.setScrollEnabled(true);
- }}
- style={{
- borderRadius: 5,
- padding: 5,
- marginTop: 10,
- marginBottom: pv + 5,
- width: '100%',
- paddingHorizontal: 12
- }}
- nestedScrollEnabled
- contentContainerStyle={{
- alignSelf: 'center',
- flexDirection: 'row',
- flexWrap: 'wrap'
- }}
- >
- {[
- '#FF5722',
- '#FFA000',
- '#1B5E20',
- '#008837',
- '#757575',
- '#0560ff',
- '#009688',
- '#2196F3',
- '#880E4F',
- '#9C27B0',
- '#FF1744',
- '#B71C1C'
- ].map(item => (
- <PressableButton
- key={item}
- customColor={
- colors.accent === item
- ? RGB_Linear_Shade(!colors.night ? -0.2 : 0.2, hexToRGBA(item, 1))
- : item
- }
- customSelectedColor={item}
- alpha={!colors.night ? -0.1 : 0.1}
- opacity={1}
- onPress={async () => {
- await PremiumService.verify(async () => {
- changeAccentColor(item);
- await MMKV.setStringAsync('accentColor', item);
- });
- }}
- customStyle={{
- flexDirection: 'row',
- justifyContent: 'center',
- alignItems: 'center',
- marginRight: 10,
- marginVertical: 5,
- width: DDS.isLargeTablet() ? 40 : 50,
- height: DDS.isLargeTablet() ? 40 : 50,
- borderRadius: 100
- }}
- >
- {colors.accent === item ? (
- <Icon
- size={DDS.isLargeTablet() ? SIZE.lg : SIZE.xxl}
- color="white"
- name="check"
- />
- ) : null}
- </PressableButton>
- ))}
- <View style={{ width: 50 }} />
- </ScrollView>
+
+ <AccentColorPicker />
<CustomButton
title="Use system theme"
@@ -337,4 +264,99 @@ const SettingsAppearanceSection = () => {
);
};
+export const AccentColorPicker = ({ settings = true }) => {
+ const [state, dispatch] = useTracked();
+ const { colors } = state;
+
+ function changeColorScheme(colors = COLOR_SCHEME, accent = ACCENT) {
+ let newColors = setColorScheme(colors, accent);
+ dispatch({ type: Actions.THEME, colors: newColors });
+ }
+
+ function changeAccentColor(accentColor) {
+ ACCENT.color = accentColor;
+ ACCENT.shade = accentColor + '12';
+ changeColorScheme();
+ }
+
+ return (
+ <ScrollView
+ horizontal={true}
+ showsHorizontalScrollIndicator={false}
+ onMoveShouldSetResponderCapture={() => {
+ if (!settings) return;
+ tabBarRef.current?.setScrollEnabled(false);
+ }}
+ onMomentumScrollEnd={() => {
+ if (!settings) return;
+ tabBarRef.current?.setScrollEnabled(true);
+ }}
+ style={{
+ borderRadius: 5,
+ padding: 5,
+ marginTop: 10,
+ marginBottom: pv + 5,
+ width: '100%',
+ paddingHorizontal: 12,
+ maxWidth: settings ? null : '100%'
+ }}
+ scrollEnabled={true}
+ nestedScrollEnabled={true}
+ contentContainerStyle={{
+ alignSelf: 'center',
+ flexDirection: 'row',
+ flexWrap: 'wrap'
+ }}
+ >
+ {[
+ '#FF5722',
+ '#FFA000',
+ '#1B5E20',
+ '#008837',
+ '#757575',
+ '#0560ff',
+ '#009688',
+ '#2196F3',
+ '#880E4F',
+ '#9C27B0',
+ '#FF1744',
+ '#B71C1C'
+ ].map(item => (
+ <PressableButton
+ key={item}
+ customColor={
+ colors.accent === item
+ ? RGB_Linear_Shade(!colors.night ? -0.2 : 0.2, hexToRGBA(item, 1))
+ : item
+ }
+ customSelectedColor={item}
+ alpha={!colors.night ? -0.1 : 0.1}
+ opacity={1}
+ onPress={async () => {
+ await PremiumService.verify(async () => {
+ changeAccentColor(item);
+ await MMKV.setStringAsync('accentColor', item);
+ });
+ }}
+ customStyle={{
+ flexDirection: 'row',
+ justifyContent: 'center',
+ alignItems: 'center',
+ marginRight: 10,
+ marginVertical: 5,
+ width: DDS.isLargeTablet() ? 40 : 50,
+ height: DDS.isLargeTablet() ? 40 : 50,
+ borderRadius: 100
+ }}
+ >
+ {colors.accent === item ? (
+ <Icon size={DDS.isLargeTablet() ? SIZE.lg : SIZE.xxl} color="white" name="check" />
+ ) : null}
+ </PressableButton>
+ ))}
+ <View style={{ width: 50 }} />
+ </ScrollView>
+ );
+};
+
export default SettingsAppearanceSection;
diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.js
index e57926505..05414d2e5 100644
--- a/apps/mobile/src/views/Settings/index.js
+++ b/apps/mobile/src/views/Settings/index.js
@@ -124,11 +124,17 @@ export const Settings = ({ navigation }) => {
component: <Issue />
});
},
- desc: `Facing an issue? Click here to create a bug report`
+ desc: `Faced an issue or have a suggestion? Click here to create a bug report`
+ },
+ {
+ name: 'Join our Telegram group',
+ desc: "We are on telegram, let's talk",
+ func: () => {
+ Linking.openURL('https://t.me/notesnook').catch(console.log);
+ }
},
{
name: 'Join our Discord community',
-
func: async () => {
presentSheet({
title: 'Join our Discord Community',
@@ -144,7 +150,7 @@ export const Settings = ({ navigation }) => {
icon: 'discord',
action: async () => {
try {
- await openLinkInBrowser('https://discord.gg/zQBK97EE22', colors);
+ Linking.openURL('https://discord.gg/zQBK97EE22').catch(console.log);
} catch (e) {}
},
actionText: 'Join Now'