A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: replace svg placeholders with helpful tips
Abdullah Atta8c4d8622d866
diff --git a/apps/web/src/assets/attachment.svg b/apps/web/src/assets/attachment.svgdeleted file mode 100644index 85d1a4662..000000000--- a/apps/web/src/assets/attachment.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 782 701.9"><path fill="#f2f2f2" d="m400.5 1.5-25.4 6.6L61.6 88.9 36 95.5a48.2 48.2 0 0 0-34.6 58.6L112 582a48.2 48.2 0 0 0 58.6 34.6l364.3-94a48.2 48.2 0 0 0 34.7-58.6L459 36a48.2 48.2 0 0 0-58.6-34.6Z"/><path fill="#fff" d="m404 15-30.2 7.7-304 78.4-30.2 7.8a34.3 34.3 0 0 0-24.7 41.8l110.4 427.8a34.3 34.3 0 0 0 41.7 24.7h.1l364.3-94a34.3 34.3 0 0 0 24.7-41.7l-110.4-428A34.3 34.3 0 0 0 404 15Z"/><path fill="#f2f2f2" d="M381.2 153.5 197 201a8 8 0 0 1-4-15.5L377.2 138a8 8 0 0 1 4 15.5Zm38.8 17.9-216.3 55.8a8 8 0 1 1-4-15.5L416 155.9a8 8 0 0 1 4 15.5Zm-8.5 99.5-184.3 47.5a8 8 0 1 1-4-15.5l184.3-47.5a8 8 0 1 1 4 15.5Zm38.7 17.9L234 344.6a8 8 0 1 1-4-15.5l216.2-55.8a8 8 0 0 1 4 15.5Zm-8.5 99.5-184.2 47.5a8 8 0 0 1-4-15.5l184.2-47.6a8 8 0 0 1 4 15.6Zm38.8 17.9L264.2 462a8 8 0 1 1-4-15.6l216.3-55.7a8 8 0 0 1 4 15.5Z"/><path fill="#e6e6e6" d="m165.5 249.7-65.2 16.9a3.8 3.8 0 0 1-4.7-2.8l-15-58a3.8 3.8 0 0 1 2.8-4.7l65.2-16.8a3.8 3.8 0 0 1 4.7 2.7l15 58a3.8 3.8 0 0 1-2.8 4.7Zm30.2 117.4L130.5 384a3.8 3.8 0 0 1-4.6-2.7l-15-58a3.8 3.8 0 0 1 2.7-4.8l65.3-16.8a3.8 3.8 0 0 1 4.6 2.8l15 58a3.8 3.8 0 0 1-2.8 4.7ZM226 484.5l-65.2 16.8a3.8 3.8 0 0 1-4.7-2.7l-15-58.1a3.8 3.8 0 0 1 2.8-4.7l65.2-16.8a3.8 3.8 0 0 1 4.7 2.8l15 58a3.8 3.8 0 0 1-2.8 4.7ZM654.7 110H278.3a48.2 48.2 0 0 0-48 48.1V600a48.2 48.2 0 0 0 48 48.1h376.4a48.2 48.2 0 0 0 48-48.1V158a48.2 48.2 0 0 0-48-48.1Z"/><path fill="#fff" d="M654.7 123.8H278.3a34.3 34.3 0 0 0-34.2 34.3V600a34.3 34.3 0 0 0 34.2 34.3h376.4a34.3 34.3 0 0 0 34.2-34.3V158a34.3 34.3 0 0 0-34.2-34.3Z"/><circle cx="694.2" cy="614" r="87.9" fill="#323232"/><path fill="#fff" d="M736.2 602.6h-30.5V572a11.5 11.5 0 0 0-23 0v30.6h-30.5a11.5 11.5 0 0 0 0 22.9h30.5V656a11.5 11.5 0 1 0 23 0v-30.5h30.5a11.5 11.5 0 0 0 0-23Z"/><path fill="#e6e6e6" d="M598 366.7H407.7a8 8 0 1 1 0-16H598a8 8 0 0 1 0 16Zm33 27H407.8a8 8 0 1 1 0-16h223.4a8 8 0 1 1 0 16Zm-33 94.2H407.7a8 8 0 1 1 0-16H598a8 8 0 0 1 0 16Zm33 27.1H407.8a8 8 0 1 1 0-16.1h223.4a8 8 0 1 1 0 16ZM365 406h-67.3a3.8 3.8 0 0 1-3.8-3.9v-60a3.8 3.8 0 0 1 3.8-3.8h67.4a3.8 3.8 0 0 1 3.8 3.9v60a3.8 3.8 0 0 1-3.8 3.8Zm0 121.2h-67.3a3.8 3.8 0 0 1-3.8-3.8v-60a3.8 3.8 0 0 1 3.8-3.8h67.4a3.8 3.8 0 0 1 3.8 3.8v60a3.8 3.8 0 0 1-3.8 3.8Z"/><path fill="#ccc" d="M598.2 231.7H458a8 8 0 0 1 0-16h140.3a8 8 0 0 1 0 16Zm33.1 27.1H457.9a8 8 0 1 1 0-16h173.4a8 8 0 0 1 0 16Z"/><path fill="#323232" d="M426.9 291.5H297.5a3.8 3.8 0 0 1-3.8-3.8v-101a3.8 3.8 0 0 1 3.8-3.8H427a3.8 3.8 0 0 1 3.8 3.9v100.9a3.8 3.8 0 0 1-3.8 3.8Z"/></svg>\ No newline at end of filediff --git a/apps/web/src/assets/fav.svg b/apps/web/src/assets/fav.svgdeleted file mode 100644index 98a0a0305..000000000--- a/apps/web/src/assets/fav.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 922 747"><defs/><path fill="#3f3d56" d="M282 237c-3 101 132 204 299 204s435-199 308-204c-244-9-328-111-303-182 43-129-299-16-304 182z"/><path fill="var(--primary)" d="M505 157l-2-1 1-2-2 2-2-2v1l2 1-1 2v1l2-2 2 1v-1zm152 148l-2-1 1-2-2 2-2-2v1l2 1-1 2v1l2-2 2 1v-1zm-246-18l-2-1 1-2-2 2-2-2v1l2 1-1 2v1l2-2 2 1v-1zm184 96l-2-1 1-2-2 2-2-2v1l2 1-1 2v1l2-2 2 1v-1zm-171-37l-2-1 1-2-2 2-2-2v1l2 1-1 2v1l2-2 2 1v-1zm412-49l-2-1 1-2-2 2-2-2v1l2 1-1 2v1l2-2 2 1v-1zM382 176l-2-1 1-2-2 2-2-2v1l2 1-1 2v1l2-2 2 1v-1z"/><path fill="#fff" d="M553 199l-3-2 2-3h-1l-2 3-2-2-1 1 3 1-2 3 1 1 2-3 3 2v-1z"/><circle cx="450" cy="233.7" r="3" fill="var(--primary)"/><circle cx="333" cy="233.7" r="3" fill="var(--primary)"/><circle cx="537" cy="123.7" r="3" fill="var(--primary)"/><circle cx="509" cy="306.7" r="3" fill="var(--primary)"/><circle cx="507" cy="243.7" r="2" fill="var(--primary)"/><circle cx="712" cy="331.7" r="2" fill="#ff6584"/><circle cx="406" cy="222.7" r="2" fill="#ff6584"/><circle cx="531" cy="60.7" r="2" fill="#ff6584"/><circle cx="449" cy="153.7" r="2" fill="var(--primary)"/><circle cx="474" cy="86.7" r="2" fill="#fff"/><circle cx="773" cy="266.7" r="3" fill="var(--primary)"/><circle cx="574" cy="277.7" r="3" fill="var(--primary)"/><circle cx="523" cy="348.7" r="10" fill="var(--primary)"/><circle cx="644" cy="239.7" r="3" fill="#fff"/><path fill="#2f2e41" d="M92 721s-6 23-1 24l37 2c7 1 18-1 18-6s-13-7-13-7l-19-11-22-2z"/><path fill="#2f2e41" d="M98 553l2 23c0 2-11 98-9 117s0 26 0 30 20 2 20 2l21-134-11-41z"/><path fill="#2f2e41" d="M99 726s-5 18 0 19 30-1 36 0 19 1 19-3-13-8-13-8l-20-11c-1-1-22 3-22 3z"/><path fill="#2f2e41" d="M92 529s-7 18 2 27 18 27 18 29-17 122-15 130 2 12 2 14 6 8 13 8 18-6 19-11-1-47-1-54 25-135 22-138-60-5-60-5z"/><circle cx="138.7" cy="368.6" r="20.7" fill="#9f616a"/><path fill="#9f616a" d="M126 379s4 22 1 25 23 6 23 6l4-33c1-3-28 2-28 2z"/><path fill="var(--primary)" d="M154 408s4-21-26-15c0 0-27 22-26 43s-10 80-8 85-8 9-4 11 69 13 71 0 0-45 1-51 0-57-4-63-4-10-4-10z"/><path fill="#9f616a" d="M141 557s-9 34 3 34 10-36 10-36z"/><path fill="#2f2e41" d="M147 372c0 2-3 2-7 2a33 33 0 01-5-1c-2 0-4 2-5 5l-2 13c-9 5-36-28-22-37 4-3 21-15 32-12s7 16 7 16l1 4a63 63 0 011 9 4 4 0 010 1z"/><path fill="var(--primary)" d="M148 414s-20-1-22 29-1 59-1 60 8 58 16 58 14-1 16-4-5-47-5-47-3-46 2-61 5-33-6-35z"/><path d="M125 452l-6 65 20 45-13-46-1-65m29 8l2 76-6-41 4-35z" opacity=".1" style="isolation:isolate"/><path fill="#3f3d56" d="M258 747H0v-2h258v2z"/></svg>\ No newline at end of filediff --git a/apps/web/src/assets/monographs.svg b/apps/web/src/assets/monographs.svgdeleted file mode 100644index 30bcf57d8..000000000--- a/apps/web/src/assets/monographs.svg+++ /dev/null@@ -1 +0,0 @@-<svg id="b36ecb11-e41f-41d3-aa04-3076ded43d73" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="854.23578" height="649.46102" viewBox="0 0 854.23578 649.46102"><path d="M773.85715,625.57712c-75.50269,0-143.73169-52.37891-160.69385-129.07862-15.70312-71.00488,29.28833-141.54687,100.29321-157.25a105.70594,105.70594,0,0,1,126.03833,80.38672,84.86141,84.86141,0,0,1-64.46118,101.06934,68.36083,68.36083,0,0,1-76.46094-37.92139,1,1,0,1,1,1.8169-.83593,66.34457,66.34457,0,0,0,74.21216,36.80419,82.85908,82.85908,0,0,0,62.94043-98.68457,103.70676,103.70676,0,0,0-123.65406-78.86523,130.03032,130.03032,0,0,0-98.77221,154.86523c19.36084,87.544,106.33252,143.01612,193.87988,123.65528A203.22663,203.22663,0,0,0,945.23874,515.6152a1.00011,1.00011,0,1,1,1.77051.93067A205.22438,205.22438,0,0,1,809.42771,621.67526,164.62266,164.62266,0,0,1,773.85715,625.57712Z" transform="translate(-172.88211 -125.26949)" fill="#e6e6e6"/><path d="M968.43381,400.45847a1.00026,1.00026,0,0,1-.99317-.89356,206.60093,206.60093,0,0,0-3.6853-22.49072C937.63815,258.98044,831.0549,174.96774,710.3237,177.42331a1.0002,1.0002,0,0,1-.04-2A256.719,256.719,0,0,1,965.708,376.64255a208.60288,208.60288,0,0,1,3.72143,22.70947.99979.99979,0,0,1-.88769,1.10059A1.01075,1.01075,0,0,1,968.43381,400.45847Z" transform="translate(-172.88211 -125.26949)" fill="#e6e6e6"/><path d="M416.93063,564.45847a.99983.99983,0,0,1-.97534-.78418,320.26993,320.26993,0,0,1,104.523-312.79883A1.00007,1.00007,0,1,1,521.78,252.394,318.27334,318.27334,0,0,0,417.90793,563.24265a.99918.99918,0,0,1-.9773,1.21582Z" transform="translate(-172.88211 -125.26949)" fill="#e6e6e6"/><path d="M693.30366,286.26949h-156a17.01917,17.01917,0,0,1-17-17v-127a17.01917,17.01917,0,0,1,17-17h156a17.01917,17.01917,0,0,1,17,17v127A17.01917,17.01917,0,0,1,693.30366,286.26949Zm-156-159a15.017,15.017,0,0,0-15,15v127a15.017,15.017,0,0,0,15,15h156a15.017,15.017,0,0,0,15-15v-127a15.017,15.017,0,0,0-15-15Z" transform="translate(-172.88211 -125.26949)" fill="#3f3d56"/><path id="b42f7784-d7aa-4130-a713-c57f7e285794" data-name="Path 411" d="M675.57215,163.4075H596.841a2.73088,2.73088,0,0,1-2.77562-2.48906,2.63064,2.63064,0,0,1,2.62678-2.77193l80.14349,0c2.64021,2.32,1.03127,5.261-1.26446,5.261Z" transform="translate(-172.88211 -125.26949)" fill="#ccc"/><path id="fef78de7-8139-4292-a735-dfc1826a946d" data-name="Path 412" d="M675.57215,177.21748H596.841a2.73088,2.73088,0,0,1-2.77562-2.48906,2.63064,2.63064,0,0,1,2.62678-2.77193h80.14349c2.64021,2.32,1.03127,5.261-1.26446,5.261Z" transform="translate(-172.88211 -125.26949)" fill="#ccc"/><path id="bc3a1040-a005-4464-8914-0d26e9886da7" data-name="Path 413" d="M579.82115,185.08048h-24.028a2.962,2.962,0,0,1-2.959-2.959v-28.355a2.962,2.962,0,0,1,2.959-2.959h24.028a2.963,2.963,0,0,1,2.959,2.959v28.355a2.962,2.962,0,0,1-2.959,2.959Z" transform="translate(-172.88211 -125.26949)" fill="var(--primary)"/><path id="ef5725be-974e-4818-8827-9633ad97864d" data-name="Path 414" d="M675.34315,205.49349H555.185a2.73086,2.73086,0,0,1-2.77559-2.48905,2.63061,2.63061,0,0,1,2.62677-2.77194H676.60761c2.64021,2.32,1.03127,5.261-1.26446,5.261Z" transform="translate(-172.88211 -125.26949)" fill="#ccc"/><path id="b6ceb078-02d4-45e5-a259-b4aa725e8656" data-name="Path 415" d="M675.34315,219.3075l-120.15819,0a2.73086,2.73086,0,0,1-2.77559-2.48905,2.63061,2.63061,0,0,1,2.62677-2.77194l121.57147,0c2.64021,2.32,1.03127,5.261-1.26446,5.261Z" transform="translate(-172.88211 -125.26949)" fill="#ccc"/><path id="b70683a0-764f-4858-8fd1-ac4cf933a79b" data-name="Path 416" d="M675.34315,233.11249H555.185a2.73085,2.73085,0,0,1-2.77559-2.48905,2.63061,2.63061,0,0,1,2.62677-2.77194H676.60761c2.64021,2.32,1.03127,5.261-1.26446,5.261Z" transform="translate(-172.88211 -125.26949)" fill="#ccc"/><path id="ff94e3a1-018f-4284-9dff-97f10413b838" data-name="Path 417" d="M675.34315,246.92548H555.185a2.73085,2.73085,0,0,1-2.77559-2.489,2.63061,2.63061,0,0,1,2.62677-2.77194H676.60761c2.64021,2.32,1.03127,5.261-1.26446,5.261Z" transform="translate(-172.88211 -125.26949)" fill="#ccc"/><path id="a482e522-b4bb-4a24-a9c3-635a0ec9eabe" data-name="Path 418" d="M675.34315,260.7315H555.185a2.73085,2.73085,0,0,1-2.77559-2.489,2.63061,2.63061,0,0,1,2.62677-2.77194H676.60761c2.64021,2.32,1.03127,5.261-1.26446,5.261Z" transform="translate(-172.88211 -125.26949)" fill="#ccc"/><path d="M1013.80368,517.08054H900.80344a13.3291,13.3291,0,0,1-13.314-13.314V411.77243a13.32909,13.32909,0,0,1,13.314-13.314h113.00024a13.32914,13.32914,0,0,1,13.31421,13.314v91.99414A13.32915,13.32915,0,0,1,1013.80368,517.08054ZM900.80344,400.45847a11.32664,11.32664,0,0,0-11.314,11.314v91.99414a11.32665,11.32665,0,0,0,11.314,11.314h113.00024a11.3267,11.3267,0,0,0,11.31421-11.314V411.77243a11.32669,11.32669,0,0,0-11.31421-11.314Z" transform="translate(-172.88211 -125.26949)" fill="#3f3d56"/><path id="e7b4c438-63a5-4348-a2ea-6daf9e8a2e2f" data-name="Path 411" d="M1000.95978,427.08413l-57.02975,0a1.97814,1.97814,0,0,1-2.01055-1.803,1.90553,1.90553,0,0,1,1.90273-2.00788H1001.875c1.91246,1.68052.747,3.81085-.91593,3.81085Z" transform="translate(-172.88211 -125.26949)" fill="#ccc"/><path id="a00103cd-61d1-44c3-b135-68efb90ff9bc" data-name="Path 412" d="M1000.95978,437.08754H943.93a1.97814,1.97814,0,0,1-2.01055-1.803,1.90552,1.90552,0,0,1,1.90273-2.00787l58.05279,0c1.91246,1.68052.747,3.81086-.91593,3.81086Z" transform="translate(-172.88211 -125.26949)" fill="#ccc"/><path id="f4350b45-c9af-4d8c-9c78-cb2977c503c8" data-name="Path 413" d="M931.60153,442.78319H914.1966a2.14555,2.14555,0,0,1-2.14339-2.14339V420.10057a2.14556,2.14556,0,0,1,2.14339-2.1434h17.40493a2.1463,2.1463,0,0,1,2.14339,2.1434v20.53925a2.14555,2.14555,0,0,1-2.14339,2.14339Z" transform="translate(-172.88211 -125.26949)" fill="var(--primary)"/><path id="f5a14ccf-41cd-4d0f-84ee-cd82fbc8c163" data-name="Path 414" d="M1000.7939,457.56956l-87.03785,0a1.97814,1.97814,0,0,1-2.01054-1.803,1.90552,1.90552,0,0,1,1.90274-2.00789h88.06157c1.91247,1.68052.747,3.81085-.91592,3.81085Z" transform="translate(-172.88211 -125.26949)" fill="#ccc"/><path id="a4da95c7-64c3-4299-a88e-05bfbb3353e0" data-name="Path 415" d="M1000.7939,467.57589l-87.03785,0a1.97814,1.97814,0,0,1-2.01054-1.803,1.90552,1.90552,0,0,1,1.90274-2.00789h88.06157c1.91247,1.68052.747,3.81085-.91592,3.81085Z" transform="translate(-172.88211 -125.26949)" fill="#ccc"/><path id="af1ad797-b30d-429c-a4be-fed0ef064171" data-name="Path 416" d="M1000.7939,477.57568H913.75605a1.97814,1.97814,0,0,1-2.01054-1.803,1.90552,1.90552,0,0,1,1.90274-2.00788h88.06157c1.91247,1.68051.747,3.81085-.91592,3.81085Z" transform="translate(-172.88211 -125.26949)" fill="#ccc"/><path id="b13c38b9-0b26-4a00-b050-dd9bdfa2db99" data-name="Path 417" d="M1000.7939,487.58126l-87.03785,0a1.97814,1.97814,0,0,1-2.01054-1.803,1.90552,1.90552,0,0,1,1.90274-2.00789h88.06157c1.91247,1.68052.747,3.81085-.91592,3.81085Z" transform="translate(-172.88211 -125.26949)" fill="#ccc"/><path id="ed4b3cd1-8212-4136-9638-47564b0bc4c1" data-name="Path 418" d="M1000.7939,497.5818H913.75605a1.97814,1.97814,0,0,1-2.01054-1.803,1.90552,1.90552,0,0,1,1.90274-2.00788h88.06157c1.91247,1.68052.747,3.81085-.91592,3.81085Z" transform="translate(-172.88211 -125.26949)" fill="#ccc"/><path d="M736.12448,483.73825h-71.6416a8.817,8.817,0,0,1-8.80713-8.80713V416.60788a8.817,8.817,0,0,1,8.80713-8.80713h71.6416a8.817,8.817,0,0,1,8.80713,8.80713v58.32324A8.817,8.817,0,0,1,736.12448,483.73825Zm-71.6416-73.9375a6.8149,6.8149,0,0,0-6.80713,6.80713v58.32324a6.8149,6.8149,0,0,0,6.80713,6.80713h71.6416a6.8149,6.8149,0,0,0,6.80713-6.80713V416.60788a6.8149,6.8149,0,0,0-6.80713-6.80713Z" transform="translate(-172.88211 -125.26949)" fill="#3f3d56"/><path d="M724.80366,452.01949h-49a4.5,4.5,0,0,1,0-9h49a4.5,4.5,0,0,1,0,9Z" transform="translate(-172.88211 -125.26949)" fill="var(--primary)"/><path d="M714.80366,433.51949h-29a4.5,4.5,0,0,1,0-9h29a4.5,4.5,0,0,1,0,9Z" transform="translate(-172.88211 -125.26949)" fill="var(--primary)"/><path d="M724.80366,467.01949h-49a4.5,4.5,0,0,1,0-9h49a4.5,4.5,0,0,1,0,9Z" transform="translate(-172.88211 -125.26949)" fill="var(--primary)"/><path d="M299.27944,598.87168a10.05577,10.05577,0,0,1,5.773-14.29782l.73682-35.72725,15.28828,10.5405L318.034,591.69834a10.11027,10.11027,0,0,1-18.75459,7.17334Z" transform="translate(-172.88211 -125.26949)" fill="#a0616a"/><path d="M316.18432,461.30165,301.21969,573.81551l18.015.67923,15.05548-118.11153-3.61333-2.13183A9.66544,9.66544,0,0,0,316.18432,461.30165Z" transform="translate(-172.88211 -125.26949)" fill="var(--primary)"/><polygon points="191.064 637.552 203.323 637.551 209.156 590.263 191.061 590.264 191.064 637.552" fill="#a0616a"/><path d="M361.31874,759.31752h38.53072a0,0,0,0,1,0,0v14.88687a0,0,0,0,1,0,0H376.20562a14.88688,14.88688,0,0,1-14.88688-14.88688v0A0,0,0,0,1,361.31874,759.31752Z" transform="translate(588.32109 1408.23505) rotate(179.99738)" fill="#2f2e41"/><polygon points="89.061 622.9 100.186 628.05 125.346 587.589 108.926 579.988 89.061 622.9" fill="#a0616a"/><path d="M256.12064,751.29193h38.53071a0,0,0,0,1,0,0V766.1788a0,0,0,0,1,0,0H271.00753a14.88689,14.88689,0,0,1-14.88689-14.88689v0A0,0,0,0,1,256.12064,751.29193Z" transform="translate(33.66226 1437.69074) rotate(-155.15884)" fill="#2f2e41"/><path d="M376.79831,752.82956a4.62614,4.62614,0,0,1-.53711-.03174l-9.69946-1.14111a4.52376,4.52376,0,0,1-3.9541-4.042L350.96433,625.4736a1.49986,1.49986,0,0,0-2.8064-.582l-64.781,117.36621a4.48379,4.48379,0,0,1-5.14416,2.16113l-10.89624-3.02685a4.49724,4.49724,0,0,1-3.0647-5.75928c9.48963-28.394,57.03357-170.70019,61.09851-183.79785,4.85706-15.65039,41.11475-21.81738,44.23877-22.32031l1.79468-1.79492.34546.46484c16.00366,21.54346,23.74756,50.07568,21.80542,80.3418l-.001.01123L381.26975,748.72165a4.502,4.502,0,0,1-4.47144,4.10791Z" transform="translate(-172.88211 -125.26949)" fill="#2f2e41"/><circle cx="152.81659" cy="285.84822" r="24.56103" fill="#a0616a"/><path d="M326.95175,548.07175l-14.57361-75.96192a25.74614,25.74614,0,0,1,18.81434-29.72412,22.19944,22.19944,0,0,1,21.96765,6.50195c7.439,8.12061,16.88818,19.938,19.6604,30.124,2.34668,8.646,8.95093,41.04541,9.01733,41.37158l.05249.25732-.18262.18946c-.03491.03613-3.57324,3.69287-9.08081,8.25732-3.23193,2.67871-6.53515,5.16455-9.81836,7.38965-9.21826,6.22461-34.29956,11.28369-35.36279,11.49609Z" transform="translate(-172.88211 -125.26949)" fill="var(--primary)"/><path d="M362.52806,536.06315c3.65967-2.48,6.98-5.04,9.77979-7.36035-1.00977-14.93994-23.02-46.21973-31.93995-46.21973C340.3679,482.48307,338.258,530.693,362.52806,536.06315Z" transform="translate(-172.88211 -125.26949)" opacity="0.2"/><path d="M407.83194,575.30031a10.05578,10.05578,0,0,1-5.277-14.48823l-23.35887-27.04334,18.41436-2.39689,19.35886,26.04829a10.11027,10.11027,0,0,1-9.13733,17.88017Z" transform="translate(-172.88211 -125.26949)" fill="#a0616a"/><path d="M342.526,444.008a16.3224,16.3224,0,0,1,3.02615.34653,12.49537,12.49537,0,0,1,8.91793,7.79987l28.87782,60.3287,31,33-15.5,12.5-49-44-19.576-53.28149A12.75366,12.75366,0,0,1,342.526,444.008Z" transform="translate(-172.88211 -125.26949)" fill="var(--primary)"/><path d="M324.245,435.45264c-3.49562-5.23231-6.25435-12.48756-2.40565-17.46591,3.79907-4.91416,11.29215-4.19018,17.11053-6.36466,8.104-3.02867,12.8041-12.5493,11.33825-21.07564S341.97777,374.952,333.824,372.06s-17.34839-1.95148-25.33312,1.37887c-9.82931,4.0997-18.26115,12.03028-21.79686,22.07625s-1.6456,22.10808,5.68929,29.82963c7.86381,8.27834,20.20556,10.48454,31.62276,10.35067" transform="translate(-172.88211 -125.26949)" fill="#2f2e41"/><path d="M285.67613,406.49292c-1.00062,5.591-7.13392,8.76649-12.77076,9.46443s-11.46786-.197-16.9553,1.269c-9.67415,2.58442-16.05479,11.88813-19.56679,21.26546s-5.06949,19.49826-9.63253,28.41158-13.41056,16.77135-23.38921,15.93771a25.732,25.732,0,0,0,48.39435-1.5693c3.66577-11.31688-.54222-24.81289,5.86843-34.83353,3.54741-5.54506,9.673-8.80673,15.57943-11.71293s12.10571-5.88925,16.0657-11.14761,4.75122-13.56285-.12875-17.98073" transform="translate(-172.88211 -125.26949)" fill="#2f2e41"/><path d="M174.07279,774.73051h320.294a1.19069,1.19069,0,0,0,0-2.38137h-320.294a1.19069,1.19069,0,0,0,0,2.38137Z" transform="translate(-172.88211 -125.26949)" fill="#3f3d56"/><circle cx="264.0495" cy="239.18898" r="14" fill="#e6e6e6"/><circle cx="709.0495" cy="116.18898" r="14" fill="#e6e6e6"/><circle cx="556.0495" cy="494.18898" r="14" fill="#e6e6e6"/></svg>\ No newline at end of filediff --git a/apps/web/src/assets/note2.svg b/apps/web/src/assets/note2.svgdeleted file mode 100644index f1c1fa674..000000000--- a/apps/web/src/assets/note2.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 485.83 483.5"><path fill="#e6e6e6" d="M320.46 128.1h-79.74a11.48 11.48 0 0 1-9.07-4.4 11.62 11.62 0 0 1-2.17-9.96 201.63 201.63 0 0 0 0-93.65 11.62 11.62 0 0 1 2.17-9.97 11.48 11.48 0 0 1 9.07-4.4h79.74a11.62 11.62 0 0 1 11.44 9.76 337.96 337.96 0 0 1 0 102.86 11.62 11.62 0 0 1-11.44 9.76Z"/><path fill="#fff" d="M240.72 11.73a5.51 5.51 0 0 0-4.36 2.1 5.66 5.66 0 0 0-1.05 4.86 207.66 207.66 0 0 1 0 96.45 5.66 5.66 0 0 0 1.05 4.85 5.51 5.51 0 0 0 4.36 2.1h79.74a5.58 5.58 0 0 0 5.5-4.66 331.99 331.99 0 0 0 0-101.04 5.58 5.58 0 0 0-5.5-4.66Z"/><path fill="#e6e6e6" d="M303.06 40.58H261.2a6 6 0 0 1-6-6v-2.35a6 6 0 0 1 6-6h41.85a6 6 0 0 1 6 6v2.35a6 6 0 0 1-6 6Zm0 29.62H261.2a6 6 0 0 1-6-6v-2.34a6 6 0 0 1 6-6h41.85a6 6 0 0 1 6 6v2.34a6 6 0 0 1-6 6Zm0 29.63H261.2a6 6 0 0 1-6-6V91.5a6 6 0 0 1 6-6h41.85a6 6 0 0 1 6 6v2.34a6 6 0 0 1-6 6Zm167.4 104.27h-79.74a11.48 11.48 0 0 1-9.07-4.4 11.62 11.62 0 0 1-2.17-9.96 201.63 201.63 0 0 0 0-93.65 11.62 11.62 0 0 1 2.17-9.97 11.48 11.48 0 0 1 9.07-4.4h79.74a11.62 11.62 0 0 1 11.44 9.76 337.96 337.96 0 0 1 0 102.86 11.62 11.62 0 0 1-11.44 9.76Z"/><path fill="#fff" d="M390.72 87.73a5.51 5.51 0 0 0-4.36 2.1 5.66 5.66 0 0 0-1.05 4.86 207.66 207.66 0 0 1 0 96.45 5.66 5.66 0 0 0 1.05 4.85 5.51 5.51 0 0 0 4.36 2.1h79.74a5.58 5.58 0 0 0 5.5-4.66 331.99 331.99 0 0 0 0-101.04 5.58 5.58 0 0 0-5.5-4.66Z"/><path fill="#f2f2f2" d="M311.46 290.6h-79.74a11.98 11.98 0 0 1-9.46-4.59 12.12 12.12 0 0 1-2.27-10.4 201.13 201.13 0 0 0 0-93.4 12.12 12.12 0 0 1 2.27-10.4 11.98 11.98 0 0 1 9.46-4.58h79.74a12.13 12.13 0 0 1 11.93 10.18 338.46 338.46 0 0 1 0 103 12.13 12.13 0 0 1-11.93 10.19Z"/><path fill="#e6e6e6" d="M453.06 131.58H411.2a6 6 0 0 1-6-6v-2.35a6 6 0 0 1 6-6h41.85a6 6 0 0 1 6 6v2.35a6 6 0 0 1-6 6Zm0 29.62H411.2a6 6 0 0 1-6-6v-2.34a6 6 0 0 1 6-6h41.85a6 6 0 0 1 6 6v2.34a6 6 0 0 1-6 6Z"/><circle cx="271.81" cy="228.5" r="23" fill="#fff"/><path fill="#e6e6e6" d="M282.81 225.5h-8v-8a3 3 0 0 0-6 0v8h-8a3 3 0 0 0 0 6h8v8a3 3 0 0 0 6 0v-8h8a3 3 0 0 0 0-6Z"/><path fill="#ccc" d="M300.81 17h-42a4.5 4.5 0 0 1-4.5-4.5v-8a4.5 4.5 0 0 1 4.5-4.5h42a4.5 4.5 0 0 1 4.5 4.5v8a4.5 4.5 0 0 1-4.5 4.5Zm152 77h-42a4.5 4.5 0 0 1-4.5-4.5v-8a4.5 4.5 0 0 1 4.5-4.5h42a4.5 4.5 0 0 1 4.5 4.5v8a4.5 4.5 0 0 1-4.5 4.5Z"/><path fill="#ffb8b8" d="M88.6 471.06h12.26l3.83-47.29h-16.1l.01 47.29z"/><path fill="#2f2e41" d="M85.47 467.06h24.14A15.39 15.39 0 0 1 125 482.44v.5H85.47Z"/><path fill="#ffb8b8" d="M22.6 471.06h12.26l5.83-47.29h-18.1l.01 47.29z"/><path fill="#2f2e41" d="M19.47 467.06H43.6A15.39 15.39 0 0 1 59 482.44v.5H19.47Zm5.3-10.94a4.98 4.98 0 0 1-3.37-1.32 4.96 4.96 0 0 1-1.62-3.53l-4.92-176.22 69.82 17.46 21.53 64.61a70.46 70.46 0 0 1 3.55 25.83l-2.67 62.63a5 5 0 0 1-5 4.76H90.4a5.02 5.02 0 0 1-4.96-4.33l-8.37-69.14a37.82 37.82 0 0 0-5.53-15.16l-16.47-26.08a1 1 0 0 0-1.84.41L40.29 451.13a5 5 0 0 1-4.68 4.4l-10.55.58-.29.01Z"/><circle cx="73.06" cy="136.41" r="24.56" fill="#ffb8b8"/><path fill="#e5e5e5" d="M84.34 299.67a5.08 5.08 0 0 1-1.25-.16l-69.27-17.76a5 5 0 0 1-3.66-5.81l15.9-85.7a31.21 31.21 0 0 1 18.26-22.53 30.11 30.11 0 0 1 28.26 2.07c.97.6 1.95 1.27 2.9 1.96a30.96 30.96 0 0 1 12.58 24.53l1.27 98.33a5 5 0 0 1-4.99 5.07Z"/><path fill="#ffb8b8" d="M20.95 300.68a10.06 10.06 0 0 1 4.21-14.83l-3.08-35.6 16.33 8.84.42 32.46a10.11 10.11 0 0 1-17.88 9.13Z"/><path fill="#e5e5e5" d="M26.78 281.14a5.53 5.53 0 0 1-1.36-.17 5.5 5.5 0 0 1-3.98-3.99l-8.02-31.88a47.37 47.37 0 0 1 3.76-33.14L34 179.08a15.54 15.54 0 0 1 18.8-11.02 15.36 15.36 0 0 1 9.48 7.1 15.57 15.57 0 0 1 1.66 11.91L40 240.58l.28 32.04a5.52 5.52 0 0 1-3.58 5.2l-8 2.97a5.48 5.48 0 0 1-1.92.35Z"/><path fill="#ffb8b8" d="M141.32 287.58a10.06 10.06 0 0 1-8.5-12.86l-28.99-20.9 17.36-6.6 24.87 20.85a10.11 10.11 0 0 1-4.74 19.51Z"/><path fill="#e5e5e5" d="M126.14 272.33a5.52 5.52 0 0 1-2.46-.58l-29.4-14.72a47.38 47.38 0 0 1-22.66-24.46l-13.96-34.2a15.54 15.54 0 0 1 3.92-21.44 15.35 15.35 0 0 1 11.59-2.54 15.57 15.57 0 0 1 10.08 6.51l24.94 53.04 24.47 20.68a5.52 5.52 0 0 1 1.6 6.11l-2.96 8.01a5.47 5.47 0 0 1-2.01 2.6 5.5 5.5 0 0 1-3.15 1Z"/><path fill="#2f2e41" d="M67.9 161.34c1.3.57 3.98-9.82 2.78-11.9-1.78-3.1-1.67-3.07-2.86-5.12s-1.44-4.85.09-6.65 5.07-1.56 5.77.7c-.45-4.3 3.79-7.74 8-8.7s8.62-.37 12.85-1.24c4.9-1 10-5.1 8.05-10.5a7.6 7.6 0 0 0-1.49-2.43c-2.26-2.54-5.42-3.63-8.5-4.67-6.44-2.19-13.04-4.4-19.83-4.16a28.8 28.8 0 0 0-25.45 18.61 26.16 26.16 0 0 0-1.08 4.03c-2.33 12.52 4.94 24.88 16.76 29.65Z"/><path d="m38.9 273.34.56-32.93 17.44-35.07-14 36-4 32z" opacity=".2"/><path fill="#e6e6e6" d="m197.08 355.98-73.64-30.6a11.48 11.48 0 0 1-6.69-7.53 11.62 11.62 0 0 1 1.82-10.04 201.63 201.63 0 0 0 35.93-86.48 11.62 11.62 0 0 1 5.83-8.37 11.48 11.48 0 0 1 10.06-.58l73.64 30.6a11.62 11.62 0 0 1 6.82 13.4 337.96 337.96 0 0 1-39.47 94.98 11.62 11.62 0 0 1-14.3 4.62Z"/><path fill="#fff" d="M168.09 217.92a5.51 5.51 0 0 0-4.83.28 5.66 5.66 0 0 0-2.84 4.08 207.66 207.66 0 0 1-37 89.06 5.66 5.66 0 0 0-.9 4.89 5.51 5.51 0 0 0 3.22 3.62l73.64 30.6a5.58 5.58 0 0 0 6.88-2.2 331.99 331.99 0 0 0 38.76-93.3 5.58 5.58 0 0 0-3.3-6.43Z"/><path fill="#e5e5e5" d="m207.3 286.03-38.65-16.05a6 6 0 0 1-3.23-7.85l.9-2.16a6 6 0 0 1 7.84-3.24l38.64 16.06a6 6 0 0 1 3.24 7.84l-.9 2.16a6 6 0 0 1-7.84 3.24Zm-11.37 27.36-38.64-16.06a6 6 0 0 1-3.24-7.84l.9-2.16a6 6 0 0 1 7.84-3.24l38.64 16.05a6 6 0 0 1 3.24 7.85l-.9 2.16a6 6 0 0 1-7.84 3.24Z"/><path fill="#ccc" d="M222.78 247.58a4.49 4.49 0 0 1-1.69-.33l-38.93-15.74a4.5 4.5 0 0 1-2.49-5.86l3-7.42a4.5 4.5 0 0 1 5.86-2.48l38.94 15.74a4.5 4.5 0 0 1 2.48 5.86l-3 7.42a4.51 4.51 0 0 1-4.17 2.81ZM141 483.5H1a1 1 0 1 1 0-2h140a1 1 0 0 1 0 2Z"/></svg>\ No newline at end of filediff --git a/apps/web/src/assets/notebook.svg b/apps/web/src/assets/notebook.svgdeleted file mode 100644index 16452cbd5..000000000--- a/apps/web/src/assets/notebook.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 940 815"><defs/><ellipse cx="83.4" cy="687" fill="#3f3d56" rx="65.7" ry="10.2"/><circle cx="549.1" cy="395.2" r="335.1" fill="#f2f2f2"/><path fill="#3f3d56" d="M573 734h-12v-2h17v2h-5zm22 0v-3l16-1 1 2-17 2zm-51-1l-16-1v-3l17 2zm84-3v-2l16-3 1 2c-6 2-11 3-17 3zm-117-1l-16-3v-3l17 4zm150-5v-3l16-4v2l-16 5zm-183-2l-16-5 1-2 16 4zm215-8v-2l15-6 1 2-16 6zm-247-2l-16-6 2-3 15 6zm279-10l-1-3 15-7 1 2-15 8zm-310-3l-15-8 1-2 15 7zm340-13l-2-2 14-9 2 3-14 8zm-370-3l-14-9 2-2 14 9zm398-14l-2-3 14-10 1 3-13 10zm-426-4l-13-11 2-2 13 10zm453-17l-2-2 12-11 2 2-12 11zm-479-4l-12-12 2-2 12 11zm503-19l-2-2 12-12 2 2-12 12zm-527-5l-12-12 3-2 11 12zm550-20l-2-2 10-13 2 2-10 13zm-572-5l-10-13 2-2 10 13zm592-22l-2-1 9-14 2 1-9 14zm-612-5l-9-15 3-1 8 14zm630-23l-3-2 8-15 2 2-7 15zm-647-6l-7-15 2-1 7 14zm661-25l-2-1 6-15 3 1-7 15zm-675-6l-6-15 2-1 6 15zm687-25l-2-1 5-16 2 1-5 16zm-699-6l-4-16 2-1 5 16zm709-26l-3-1 3-16h3l-3 17zm-717-7l-3-16 2-1 3 17zm723-26l-3-1 2-16h3l-2 17zm-729-7l-1-17h2l2 17zm732-27h-3v-17h3v17zm-734-6v-11-6h2v6l1 11zm731-15v-16h3v16zm-728-19h-3l2-17 3 1-2 16zm726-14l-2-17h3l2 17zm-722-19h-3l3-17 3 1-3 16zm718-14l-4-16 3-1 3 16zm-712-19h-2l4-17 3 1-5 16zm704-13l-5-16 2-1 5 16zm-694-19l-3-1 6-15 3 1-6 15zm683-13l-7-15 3-1 6 15zm-671-18l-2-1 7-15 3 1-8 15zm657-12l-8-15 3-1 8 14zm-641-17l-3-2 9-14 2 1-8 15zm625-12l-9-14 2-2 9 14zm-607-17l-3-1 11-14 2 2-10 13zm588-11l-11-13 2-1 11 13zm-568-15l-2-2 11-12 2 2-11 12zm546-10l-11-12 2-2 11 12zm-523-14l-2-2 12-12 2 2-12 12zm500-10l-13-11 2-2 13 11zM343 84l-2-2 13-10 2 2-13 10zm449-8l-14-10 2-2 14 10zM370 65l-2-3 14-9 2 3-14 9zm394-8l-14-8 1-3 15 9zM398 47l-1-2 15-8 1 3-15 7zm337-6l-15-7 1-3 15 7zm-307-8l-1-3 15-6 1 2-15 7zm277-6l-16-5 1-3 16 6zm-246-6l-1-3 16-5 1 3-16 5zm214-4l-16-4v-3l17 4zm-182-5V9l16-3 1 3-17 3zm149-3l-16-3V4l17 2zM524 6V3l17-2v3l-17 2zm83-2l-16-1V0l17 2zm-50-1V0h17v3h-17z"/><path fill="var(--primary)" d="M121 633c-8 31-37 50-37 50s-15-31-6-62 37-50 37-50 15 31 6 62z"/><path fill="var(--primary)" d="M45 633c9 31 37 50 37 50s15-31 7-62-37-50-37-50-15 31-7 62z"/><path fill="#3f3d56" d="M57 626c23 22 26 57 26 57s-34-2-57-24-26-57-26-57 34 2 57 24zm52 0c-23 22-26 57-26 57s35-2 58-24 26-57 26-57-35 2-58 24z"/><ellipse cx="829.5" cy="801.6" fill="#3f3d56" rx="85" ry="13.2"/><path fill="var(--primary)" d="M879 731c-11 40-48 65-48 65s-20-40-9-80 48-65 48-65 19 40 9 80z"/><path fill="var(--primary)" d="M780 731c11 40 48 65 48 65s20-40 9-80-48-65-48-65-20 40-9 80z"/><path fill="#3f3d56" d="M796 723c30 29 33 73 33 73s-44-2-74-31-34-74-34-74 45 3 75 32zm67 0c-30 29-34 73-34 73s45-2 75-31 33-74 33-74-45 3-74 32z"/><ellipse cx="410.4" cy="729" fill="#3f3d56" rx="243.5" ry="37.7"/><circle cx="526.7" cy="231.3" r="16.6" fill="#2f2e41"/><path fill="#2f2e41" d="M509 224a17 17 0 0115-16 17 17 0 100 33 17 17 0 01-15-17z"/><path fill="var(--primary)" d="M510 231s-3 12 14 17"/><circle cx="533.5" cy="288.5" r="55.9" fill="#2f2e41"/><path fill="#a0616a" d="M480 463l-2 42 96 32s-5-53-2-58zM324 650l-9 35h42v-35h-33zm218 9l19 7 10-25-17-14-12 32z"/><path fill="#2f2e41" d="M575 615s29-3 29 21 4 83-36 76c0 0-18 2-11-19 0 0 7-9 4-14s-17-9-15-12l24-27z"/><path fill="#2f2e41" d="M576 532l-98-34-6 24s-147-85-156-27c0 0-8 47 4 109l1 50s25 6 37 1l1-54s10-35 5-62c0 0 75 59 109 66 0 0-119 92-105 121s31 34 53 29c15-4 83-58 123-92 29-23 45-59 43-95-1-13-4-26-11-36z"/><path fill="#2f2e41" d="M322 672s-1-12-7-7l-27 24s-76 20-30 39c0 0 30 6 62-8 0 0 51 1 50-12s-13-34-13-34-14 11-30-3z"/><circle cx="519.6" cy="310.7" r="37" fill="#a0616a"/><path fill="#a0616a" d="M550 313s6 30 17 37l-61 72-23-22 17-30s19-11 13-26zm22 40s44 9 49 38-5 82-5 82l-21 156s-1 66-27 55 7-61 7-61l9-98s4-83-4-93l-32-10s7-66 24-69z"/><path fill="#a0616a" d="M500 370s-30-1-49 23-65 42-65 42l-115 45s-21-37-34-24 24 46 41 42l120-35 82-37z"/><path fill="#d0cde1" d="M565 347s-38 52-55 51-6-32-6-32l-12 3-18 34s-24 39 3 48l1 21s67-3 96 12l6-52s-38-19-17-56c0 0 7-20 15-22z"/><path d="M575 622L422 734s154-91 153-112z" opacity=".1"/><path fill="#2f2e41" d="M522 267c-20 0-36 10-36 21 0 5 3 10 8 14l7-5-2 7 3 1 10-12v15a60 60 0 0010 1c19 0 35-9 35-21s-16-21-35-21z"/><circle cx="594.7" cy="257.3" r="16.6" fill="#2f2e41"/><path fill="#2f2e41" d="M577 250a17 17 0 0115-16 17 17 0 100 33 17 17 0 01-15-17z"/><path fill="var(--primary)" d="M578 257s-3 12 14 17"/><ellipse cx="558.1" cy="307.7" fill="#a0616a" rx="2.9" ry="6.5"/><path fill="#d0cde1" d="M239 333l-44 11-4 4-2 1h-3l-5-1 4-13v-23l-2-14 14-10s27-1 42 45z"/><path d="M195 344v1l-6 2-3 2-5-1 4-13v-23l-2-14 14-10s14 21-2 56z" opacity=".1"/><path fill="#d0cde1" d="M291 299s-58 27-81 31-21 28-21 28l131-21s-5-21-29-38z"/><path fill="var(--primary)" d="M180 295s10 24-1 54l13 6 5-6-14-2s11-30 2-51c0 0-2-5-5-1z"/><path fill="var(--primary)" d="M370 475c-51-12-98 12-98 12h-1l-18-17-74-121h18c50-30 120-26 120-26 31 35 53 152 53 152z"/><path d="M271 487l-18-17-74-121h18s71 95 74 138z" opacity=".1"/><ellipse cx="404.2" cy="417.4" fill="#d0cde1" rx="29.3" ry="18.6" transform="rotate(-17 197 829)"/></svg>\ No newline at end of filediff --git a/apps/web/src/assets/reminder.svg b/apps/web/src/assets/reminder.svgdeleted file mode 100644index c68b6cc8a..000000000--- a/apps/web/src/assets/reminder.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 790 512.21"><path fill="#e6e6e6" d="M720.56 510.7 698 442.6s24.82 24.82 24.82 45.18l-4.46-47.09s12.73 17.18 11.46 43.28-9.26 26.72-9.26 26.72ZM236.02 448.7 214 382.23s24.22 24.22 24.22 44.1l-4.35-45.96s12.43 16.76 11.18 42.23-9.03 26.08-9.03 26.08Z"/><path fill="#e6e6e6" d="M579.73 479.36c.03 43.71-86.67 30.27-192.81 30.36s-191.54 13.69-191.58-30.03 86.64-53.3 192.78-53.39 191.57 9.34 191.6 53.06Z"/><path fill="#3f3d56" d="M0 509.69h790v2H0z"/><path fill="#a0616a" d="M505.34 420.32h-13.88l-6.6-53.52h20.48v53.52z"/><path fill="#2f2e41" d="M480 416.36h28.31v16.85H464.7v-1.54a15.3 15.3 0 0 1 15.3-15.31Z"/><path fill="#a0616a" d="M607.34 499.32h-13.88l-6.6-53.52h20.48v53.52z"/><path fill="#2f2e41" d="M582 495.36h28.31v16.85H566.7v-1.54a15.3 15.3 0 0 1 15.3-15.31Z"/><path fill="#a0616a" d="M671.34 340.3a10.32 10.32 0 0 0-2.9-15.54l-32.22-131.3-20.6 8.87 38.33 126.95a10.37 10.37 0 0 0 17.4 11.03ZM646.2 74.96a11.38 11.38 0 0 0-17.4 1.16l-49.9 5.72 7.6 19.24 45.36-8.49a11.44 11.44 0 0 0 14.35-17.63Z"/><path fill="#2f2e41" d="m564 326.7 21.77 163.37 27.1-5.58s-4-118.98 9.55-133.33S605 311.7 605 311.7Z"/><path fill="#2f2e41" d="m573 281.7-10 15s-77-32-77 19-4.4 85.6-6 88 18.44 8.59 28 7c0 0 11.8-82.23 11-87 0 0 75.53 37.03 89.88 33.84s17.73-14.47 20.12-20.85-1-57-1-57l-47.81-14.59Z"/><path fill="#ccc" d="m574.35 191.63-2.85-3.42s-31.92-71.83-19.38-91.2 67.26-22.24 68.97-21.1-4.08 15.94-.09 22.78c0 0-42.4 9.2-45.24 10.33s21.96 43.28 21.96 43.28l-2.85 25.65Z"/><path fill="#ccc" d="M630.22 156.29s-29.65 3.42-30.79 3.42-1.7-7.41-1.7-7.41L571.5 188.2s-12.92 104.2-9.5 102.48 66.5 8.11 67.08 3.55-.57-27.36 1.14-28.5 29.64-71.83 29.64-71.83-2.85-14.82-12.54-19.95-17.1-17.67-17.1-17.67Z"/><path fill="#ccc" d="m650.74 184.22 9.12 9.7S673.4 305.26 666 308.68s-22 3-22 3l-14.35-52.79Z"/><circle cx="601.73" cy="123" r="26.24" fill="#a0616a"/><path fill="#2f2e41" d="M595.57 127.1c-.35-5.45-7.22-5.64-12.68-5.7s-11.97.15-15.06-4.35c-2.04-2.97-1.65-7.1.03-10.28s4.46-5.64 7.19-8c7.04-6.09 14.3-12.13 22.75-16.03s18.36-5.47 27.13-2.34c10.77 3.84 25.33 23.62 26.59 34.99s-3.29 22.95-10.95 31.45-25.18 5.06-36.2 8.08c6.7-9.49 2.28-26.73-8.46-31.16Z"/><circle cx="361.72" cy="403.5" r="62.99" fill="var(--primary)"/><path fill="var(--primary)" d="M319.66 336.04a45.16 45.16 0 0 1-41.26-26.79L178.45 84.16A59.83 59.83 0 1 1 290.32 42.3l72.38 235.4a45.08 45.08 0 0 1-43.04 58.34Z"/></svg>diff --git a/apps/web/src/assets/search.svg b/apps/web/src/assets/search.svgdeleted file mode 100644index 6df0df7a3..000000000--- a/apps/web/src/assets/search.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 1121 778"><defs/><circle cx="212.6" cy="103" r="64" fill="#ff6584"/><path fill="#f2f2f2" d="M524 343c0 151-90 204-201 204s-200-53-200-204S323 0 323 0s201 192 201 343z"/><path fill="#3f3d56" d="M316 524l2-127 86-156-85 137v-57l59-113-58 98 1-103 63-90-62 74 1-187-7 248 1-10-64-98 63 118-6 114-1-3-73-104 73 114v15h-1v1l-15 290h21l2-150 73-114-73 103z"/><path fill="#f2f2f2" d="M1121 405c0 124-74 167-165 167s-164-43-164-167 164-281 164-281 165 157 165 281z"/><path fill="#3f3d56" d="M950 553l2-104 70-128-70 112 1-46 48-93-48 80 2-83 51-74-51 61 1-154-6 203 1-8-53-81 52 97-5 93v-2l-60-85 60 94-1 11v1l-12 237h16l2-122 61-93-61 84z"/><ellipse cx="554.6" cy="680.5" fill="#3f3d56" rx="554.6" ry="28"/><ellipse cx="892.4" cy="726.8" fill="#3f3d56" rx="95" ry="4.8"/><ellipse cx="548.7" cy="773.1" fill="#3f3d56" rx="95" ry="4.8"/><ellipse cx="287.9" cy="734.3" fill="#3f3d56" rx="217" ry="11"/><circle cx="97.1" cy="566.3" r="79" fill="#2f2e41"/><path fill="#2f2e41" d="M60 628h24v43H60zm48 0l24 1v43l-24-1z"/><ellipse cx="119.5" cy="732.6" fill="#2f2e41" rx="7.5" ry="20" transform="rotate(-89 69 722)"/><ellipse cx="167.6" cy="732.2" fill="#2f2e41" rx="7.5" ry="20" transform="rotate(-89 117 722)"/><circle cx="99.3" cy="546.3" r="27" fill="#fff"/><circle cx="99.3" cy="546.3" r="9" fill="#3f3d56"/><path fill="var(--primary)" d="M21 492c-6-29 15-57 47-64s62 11 68 40-15 39-47 45-62 8-68-21z"/><path fill="var(--primary)" d="M218 610c0 55-33 75-74 75h-2l-6-1c-36-2-65-22-65-74 0-53 68-120 73-125s74 70 74 125z"/><path fill="#3f3d56" d="M142 676l27-37-27 41v5l-6-1 3-55v-5l-27-42 27 38v1l3-42-23-43 23 36 2-87v69l23-27-23 32-1 38 21-36-21 41v21l31-50-31 57z"/><circle cx="712.5" cy="565.4" r="79" fill="#2f2e41"/><path fill="#2f2e41" d="M696 635l23-7 13 41-23 7zm46-14l23-7 13 41-23 7z"/><ellipse cx="767.9" cy="732" fill="#2f2e41" rx="20" ry="7.5" transform="rotate(-17 545 834)"/><ellipse cx="813.5" cy="716.9" fill="#2f2e41" rx="20" ry="7.5" transform="rotate(-17 590 819)"/><circle cx="708.5" cy="545.7" r="27" fill="#fff"/><circle cx="708.5" cy="545.7" r="9" fill="#3f3d56"/><path fill="var(--primary)" d="M618 518c-15-26-4-59 24-75s63-9 77 17-2 41-30 57-57 26-71 1zm-46 82c0 51-30 68-68 68h-7c-34-2-60-21-60-68 0-48 63-110 67-114v-1s68 65 68 115z"/><path fill="#3f3d56" d="M502 661l25-35-25 38v4h-5l2-50v-1l1-5-25-38 25 35v1l2-38-21-40 21 33 2-79v-1 63l21-25-21 31-1 34 20-33-20 38v19l28-46-28 52z"/><path fill="var(--primary)" d="M836 621c0 55-33 75-74 75h-2l-6-1c-36-2-65-22-65-74 0-53 68-120 73-125s74 70 74 125z"/><path fill="#3f3d56" d="M760 687l27-37-27 41v5l-6-1 3-55v-5l-27-42 27 38v1l3-42-23-43 23 36 2-87v69l23-27-23 32-1 38 21-36-21 41v21l31-50-31 57z"/><ellipse cx="721.5" cy="656.8" fill="#2f2e41" rx="12.4" ry="39.5" transform="rotate(-65 653 658)"/><ellipse cx="112.5" cy="651.8" fill="#2f2e41" rx="12.4" ry="39.5" transform="rotate(-68 48 651)"/></svg>\ No newline at end of filediff --git a/apps/web/src/assets/tag.svg b/apps/web/src/assets/tag.svgdeleted file mode 100644index cd1809eb2..000000000--- a/apps/web/src/assets/tag.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 922 727"><defs/><ellipse cx="211" cy="709.2" fill="#f2f2f2" rx="141" ry="17"/><ellipse cx="508" cy="709.2" fill="#f2f2f2" rx="141" ry="17"/><path fill="#3f3d56" d="M692 408l12-74-154-33 6-190h-75l-6 174-207-44 4-130h-75l-4 114-151-32-13 75 162 34-5 147-174-37-12 75 183 39-6 183h75l6-168 207 44-4 124h75l4-108 122 26 13-74-132-28 5-148zM468 509l-207-44 4-147 208 44z"/><path d="M489 509l4-147-207-44v4l187 40-5 143 21 4zm7-224l6-174h-21l-6 170 21 4zm72 92v5l124 26v-4l-124-27zM214 225l4-114h-21l-4 110 21 4zm347 376v5l101 21 1-4-102-22zm-282-60v5l186 39-4 124h21l4-124-207-44zm-93-96l21 4 4-147-161-34 12-70-20-5-13 75 162 34-5 143zM21 487l11-70-20-5-12 75 183 39-6 183h21l6-183-183-39z" opacity=".2"/><path fill="#2f2e41" d="M734 116h76v131h-76z"/><path fill="#2f2e41" d="M826 111c-9 24-21 47-47 47s-45-21-47-47c-2-33 21-47 47-47 31 0 56 18 47 47z"/><path fill="#ffb9b9" d="M748 294l-27 102s-36 9-32 18 42-6 42-6l35-85zm22 335s24 24 9 41h32l-21-52z"/><path fill="#2f2e41" d="M795 669s0-11-11-4l-43 23s-23 13 10 15 66-6 66-10l-4-24s-7 7-18 0z"/><path fill="#ffb9b9" d="M799 649l-1 43 24 3v-41l-23-5z"/><circle cx="776" cy="132.4" r="34.7" fill="#ffb9b9"/><path fill="#ffb9b9" d="M764 160s17 39 4 51 19 0 19 0 17-24 30-25c0 0-20-11-18-38z"/><path fill="#2f2e41" d="M741 347l-2 61s-47 120-29 149 61 79 61 79 24-11 24-18c0 0-24-60-45-74 0 0 2-25 21-50l18 63 8 96s21 8 29 4c0 0 17-62 5-98l-2-99s33-49-9-106l-7-21s-65 6-72 14zm61 338s0-13-12-5l-49 28s-25 16 12 18 73-6 73-11l-4-30s-7 9-20 0z"/><path fill="var(--primary)" d="M774 208l41-24s59 2 56 33c0 0-12 39-16 36l-8-8s-28 58-28 69a70 70 0 01-4 22l-69 10s8-43-4-51-15-28-4-46a149 149 0 0012-22 39 39 0 0121-21z"/><path fill="#ffb9b9" d="M864 213s68 55 57 67-75 57-75 57-6 39-19 38 2-48 2-48l54-51-29-31z"/><circle cx="778.9" cy="55.5" r="18.4" fill="#2f2e41"/><path fill="#2f2e41" d="M757 46a18 18 0 0116-19h-1a18 18 0 100 37h1a18 18 0 01-16-18zm1 49s-1-2-16 4-24 47-16 72c3 10 0 17-4 22-15 18-9 46 13 56l2 1 9 5s-12-15-6-36a104 104 0 002-53l-2-9c-8-26-4-23 22-49 0 0 15 11 29 17s24 11 15 30-32 35-17 60 17 15 15 24l-2 10 11-11-7 15s24 0 32-19l3 4s16-27-13-51c0 0-9-6 4-25s3-59-14-67-60 0-60 0z"/><path fill="#f2f2f2" d="M386 41l-19-8-19-7 16-13 16-13 3 20 3 21zm-15 143l-19-8-19-7 15-11 15-10 4 18 4 18zm-33 193l-19-8-19-7 16-13 16-13 3 20 3 21zM138 594l-18 10-18 10 1-21v-20l18 11 17 10zm-18-460l-18 10-18 10 1-21v-20l18 11 17 10zm92 544c12 21 37 29 37 29s5-26-7-47-38-29-38-29-4 26 8 47z"/><path fill="var(--primary)" d="M220 670c21 12 30 37 30 37s-26 5-47-6-30-37-30-37 25-5 47 6zm384-10c-14 20-12 46-12 46s26-6 40-25 12-46 12-46-26 6-40 25z"/><path fill="var(--primary)" d="M614 665c-2 24-21 42-21 42s-16-21-13-46 21-42 21-42 15 21 13 46zm241-463l-5 38 5 12s22-27 15-42-15-8-15-8z"/></svg>\ No newline at end of filediff --git a/apps/web/src/assets/trash.svg b/apps/web/src/assets/trash.svgdeleted file mode 100644index d0b094792..000000000--- a/apps/web/src/assets/trash.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 920.3 515.1"><defs/><path fill="#e6e6e6" d="M193.7 513.1H53s-2.9-41.8 14-42.2 15 18.5 36-7.6 46.9-24.7 50.2-9.3-6.4 27.8 11.4 24 43.5 6.2 29 35.1z" data-name="Path 1"/><path fill="#fff" d="M121 513.1h-.5c1.1-27.5 6.9-45.2 11.5-55.2a50 50 0 0110-15.3l.3.4s-4.8 4.4-9.8 15.2c-4.7 10-10.4 27.5-11.5 55z" data-name="Path 2"/><path fill="#fff" d="M171.9 513.2l-.5-.1a73.7 73.7 0 0118.6-30.9l.3.3a73.2 73.2 0 00-18.4 30.7z" data-name="Path 3"/><path fill="#fff" d="M75.2 513.2l-.4-.1a51.7 51.7 0 00-4.7-30.2 41.6 41.6 0 00-7.3-10.8l.3-.3a42.2 42.2 0 017.4 10.8 52.2 52.2 0 014.7 30.6z" data-name="Path 4"/><path fill="#2f2e41" d="M212.8 513.8H37.9v-.6c-.1-1.5-2.4-36.3 8.9-48.7a12.3 12.3 0 019-4.3c7.4-.2 12 2.6 15.7 4.8 7 4.1 11.6 6.9 28.5-14 18.2-22.5 38-27.4 49.2-24.7a17.6 17.6 0 0113.9 13.6c1.4 6.4 1 12.5.6 17.4-.4 5.3-.7 9.4 1.4 11.3 1.8 1.6 5.4 1.7 11.3.4 12-2.5 28.8-.3 37.2 10.5 4.5 5.9 8 16.5-.7 34zM39 512.5H212c6.5-13.2 6.7-24.3.6-32.2-7.8-10-24-12.6-36-10-6.3 1.3-10.2 1.1-12.3-.8-2.6-2.2-2.3-6.7-2-12.3a59 59 0 00-.5-17c-1.3-6.4-6-11-12.9-12.6-11-2.6-30 2.2-48 24.3-17.5 21.6-22.7 18.5-30 14.2-3.8-2.3-8.1-4.8-15-4.6a11.1 11.1 0 00-8.2 3.9c-10 11.1-8.8 42.4-8.6 47z" data-name="Path 5"/><path fill="#3f3d56" d="M784 514.5H611.9v-1l-8.2-235.2h188.7zm-170.2-2H782l8.1-232.2H605.7z" data-name="Path 8"/><g fill="#3f3d56" data-name="Group 1"><path d="M639.8 321.9h13.1V484h-13.1z" data-name="Rectangle 17"/><path d="M691.4 321.9h13.1V484h-13.1z" data-name="Rectangle 18"/><path d="M743 321.9h13.1V484H743z" data-name="Rectangle 19"/></g><path fill="#3f3d56" d="M901.7 347.4l-.8-.6-214-135.1 18.6-29.4.9.5L920.3 318zM689.7 211l211.4 133.6 16.4-26-211.3-133.5z"/><path fill="#3f3d56" d="M850.1 200.8a38.5 38.5 0 00-58.6 38l10.2 6.5a30.3 30.3 0 1129 18.3l10.2 6.5a38.5 38.5 0 009.2-69.3z" data-name="Path 10"/><path fill="#3f3d56" d="M0 513.1h909v2H0z" data-name="Rectangle 21"/><g data-name="Group 6"><path fill="#feb8b8" d="M397 499.4h-14.5l-7-56.1H397z" data-name="Path 111"/><path fill="#2f2e41" d="M354.4 513h45.8v-17.7h-28.4a17.4 17.4 0 00-17.4 17.4z" data-name="Path 112"/><path fill="#feb8b8" d="M392 412.4l10 10.5 45.4-33.7-14.8-15.6z" data-name="Path 113"/><path fill="#2f2e41" d="M412.3 427.8l-19.5-20.5-12.8 12.2 31.5 33.1.2-.2a17.4 17.4 0 00.6-24.6z" data-name="Path 114"/><path fill="#feb8b8" d="M290.5 258.5a12 12 0 015.8-17.4l57.1-145.7 22.3 13.3-63.5 139.8a12 12 0 01-21.7 10z" data-name="Path 115"/><path fill="#feb8b8" d="M507.6 269a12 12 0 01-10.7-15l-84.4-131.8 23.9-10.2 75.8 133.5a12 12 0 01-4.6 23.4z" data-name="Path 116"/><path fill="#2f2e41" d="M354 243.9l15 222 35.6-3.2 7.4-163.8 19.9 70.4 43 3.1-17-139z" data-name="Path 117"/><path fill="#2f2e41" d="M438.2 358.8l-6.3 10.5-44 30.4 31.4 16.8s60.9-33.6 55.6-44z" data-name="Path 118"/><path fill="#ccc" d="M322.8 154.1l12.4-35a62.5 62.5 0 0132.3-35.6 89.4 89.4 0 0152.5-3l4.5 1.2a87.4 87.4 0 0133.1 16c7.7 6 14.6 13.7 15.2 21.9 2.1 9.3 3.2 57.6 3.2 57.6h-18.7l3 65-.3-.4s-107.9 20.4-107.9 10v-67.2l-2.2-24.4z" data-name="Path 119"/><circle cx="423.4" cy="41.6" r="29.9" fill="#feb8b8" data-name="Ellipse 12"/><path fill="#2f2e41" d="M428 28.2l23.1 1c3 0 6.1-.2 8.3-2 3.4-3 2.8-8.3 1-12.3C455.4 3.7 444.3-.3 432 0s-25 4.5-31.6 14.8-8.4 23.4-6 35.4a38.5 38.5 0 0131.6-22z" data-name="Path 120"/></g><g data-name="Group 4"><path fill="var(--primary)" d="M565.7 320.5l-84-58.8a3.6 3.6 0 01-.9-5l66-94.1a3.6 3.6 0 015-.9l84 58.9a3.6 3.6 0 01.9 5l-66 94a3.6 3.6 0 01-5 1z" data-name="Path 81"/><path fill="#fff" d="M584.6 256.7L535.3 222a5.3 5.3 0 116.1-8.7l49.3 34.6a5.3 5.3 0 01-6 8.7z" data-name="Path 82"/><path fill="#fff" d="M573.3 272.8L524 238.3a5.3 5.3 0 116.1-8.7l49.3 34.5a5.3 5.3 0 01-6.1 8.7z" data-name="Path 83"/><path fill="#fff" d="M561.9 289.1l-49.3-34.5a5.3 5.3 0 116-8.7l49.4 34.5a5.3 5.3 0 01-6.1 8.7z" data-name="Path 84"/><path fill="#fff" d="M584.5 224.7l-19.1-13.3a5.3 5.3 0 116-8.7l19.2 13.4a5.3 5.3 0 01-6.1 8.6z" data-name="Path 85"/></g></svg>\ No newline at end of filediff --git a/apps/web/src/components/dialogs/attachments-dialog.js b/apps/web/src/components/dialogs/attachments-dialog.jsindex 33926777b..53c698a03 100644--- a/apps/web/src/components/dialogs/attachments-dialog.js+++ b/apps/web/src/components/dialogs/attachments-dialog.js@@ -24,8 +24,8 @@ import { useStore } from "../../stores/attachment-store";import { formatBytes } from "../../utils/filename";import Field from "../field";import ListContainer from "../list-container";-import AttachmentsPlaceholder from "../placeholders/attachments-placeholder";import Dialog from "./dialog";+import Placeholder from "../placeholders";function AttachmentsDialog({ onClose }) {const attachments = useStore((store) => store.attachments);@@ -57,7 +57,7 @@ function AttachmentsDialog({ onClose }) {header={<div />}type="attachments"groupType="attachments"- placeholder={AttachmentsPlaceholder}+ placeholder={<Placeholder context="attachments" />}items={attachments}/></Flex>diff --git a/apps/web/src/components/icons/index.tsx b/apps/web/src/components/icons/index.tsxindex e1c43df78..eaf864c1e 100644--- a/apps/web/src/components/icons/index.tsx+++ b/apps/web/src/components/icons/index.tsx@@ -189,12 +189,12 @@ import {mdiMinusCircleOutline,mdiLightbulbOnOutline,mdiNoteMultipleOutline,- mdiBookMultipleOutline+ mdiBookMultipleOutline,+ mdiArrowTopRight} from "@mdi/js";import { useTheme } from "@emotion/react";-import { AnimatedFlex } from "../animated";import { Theme } from "@notesnook/theme";-import { FlexProps } from "@theme-ui/components";+import { Flex, FlexProps } from "@theme-ui/components";import { MotionProps } from "framer-motion";type MDIIconWrapperProps = {@@ -237,7 +237,7 @@ function MDIIconWrapper({);}-type IconProps = FlexProps &+export type IconProps = FlexProps &MotionProps &Omit<MDIIconWrapperProps, "path"> & {hoverColor?: keyof Theme["colors"];@@ -253,10 +253,8 @@ function createIcon(path: string, rotate = false) {const [isHovering, setIsHovering] = useState(false);const { sx, rotate: _rotate = rotate, size, ...restProps } = props;return (- <AnimatedFlex+ <Flex{...restProps}- whileHover={{ scale: 1.1 }}- transition={{ duration: 0.3, ease: "easeOut" }}sx={{...sx,justifyContent: "center",@@ -275,7 +273,7 @@ function createIcon(path: string, rotate = false) {props.hoverColor && isHovering ? props.hoverColor : props.color}/>- </AnimatedFlex>+ </Flex>);};NNIcon.isReactComponent = true;@@ -292,6 +290,7 @@ export const Notebook2 = createIcon(mdiNotebookOutline);export const ArrowLeft = createIcon(mdiArrowLeft);export const ArrowRight = createIcon(mdiArrowRight);export const ArrowDown = createIcon(mdiArrowDown);+export const ArrowTopRight = createIcon(mdiArrowTopRight);export const Move = createIcon(mdiBookPlusMultipleOutline);export const Topic = createIcon(mdiBookmarkOutline);export const Alert = createIcon(mdiAlertOctagonOutline);diff --git a/apps/web/src/components/icons/resolver.ts b/apps/web/src/components/icons/resolver.tsxsimilarity index 72%rename from apps/web/src/components/icons/resolver.tsrename to apps/web/src/components/icons/resolver.tsxindex 54e0cd25c..0ab1b7d51 100644--- a/apps/web/src/components/icons/resolver.ts+++ b/apps/web/src/components/icons/resolver.tsx@@ -20,10 +20,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import { toTitleCase, toCamelCase, KebabCase } from "../../utils/string";import * as Icons from "./index";-export function getIconFromAlias<T extends KebabCase<keyof typeof Icons>>(- alias: T-) {+export type IconAlias = KebabCase<keyof typeof Icons>;+export function getIconFromAlias(alias: IconAlias) {if (!alias) return;const iconName = toTitleCase(toCamelCase(alias));return Icons[iconName as keyof typeof Icons];}+export function AliasIcon(props: Icons.IconProps & { alias?: IconAlias }) {+ if (!props.alias) return null;++ const iconName = toTitleCase(toCamelCase(props.alias));+ const Icon = Icons[iconName as keyof typeof Icons];+ return <Icon {...props} />;+}diff --git a/apps/web/src/components/placeholders/attachments-placeholder.js b/apps/web/src/components/placeholders/attachments-placeholder.jsdeleted file mode 100644index b4514a755..000000000--- a/apps/web/src/components/placeholders/attachments-placeholder.js+++ /dev/null@@ -1,31 +0,0 @@-/*-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 Placeholder from "./index";--function AttachmentsPlaceholder() {- return (- <Placeholder- id="attachments"- title="Your attachments"- text="You haven't attached any files yet."- />- );-}-export default AttachmentsPlaceholder;diff --git a/apps/web/src/components/placeholders/favorites-placeholder.js b/apps/web/src/components/placeholders/favorites-placeholder.jsdeleted file mode 100644index ed9af5b75..000000000--- a/apps/web/src/components/placeholders/favorites-placeholder.js+++ /dev/null@@ -1,31 +0,0 @@-/*-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 Placeholder from "./index";--function FavoritesPlaceholder() {- return (- <Placeholder- id="favorites"- title="Your favorites"- text="Notes you favorite will appear here."- />- );-}-export default FavoritesPlaceholder;diff --git a/apps/web/src/components/placeholders/index.js b/apps/web/src/components/placeholders/index.jsdeleted file mode 100644index f0f18c3fa..000000000--- a/apps/web/src/components/placeholders/index.js+++ /dev/null@@ -1,63 +0,0 @@-/*-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 { Button, Flex, Text } from "@theme-ui/components";--const PlaceholderLoader = React.lazy(() => import("./loader"));-function Placeholder(props) {- const { id, text, callToAction } = props;-- return (- <>- <Flex- variant="columnCenter"- sx={{ position: "relative", alignSelf: "stretch" }}- >- <React.Suspense fallback={<div />}>- <PlaceholderLoader name={id} width={"150px"} height={"150px"} />- </React.Suspense>- <Text- variant="body"- mt={2}- mx={4}- sx={{ textAlign: "center", color: "fontTertiary" }}- >- {text}- </Text>- {callToAction && (- <Button- mt={1}- sx={{- alignItems: "center",- justifyContent: "center",- display: "flex"- }}- variant="tool"- onClick={callToAction.onClick}- >- <callToAction.icon size={18} color="primary" />- <Text ml={1}>{callToAction.text}</Text>- </Button>- )}- </Flex>- </>- );-}-export default Placeholder;diff --git a/apps/web/src/components/placeholders/index.tsx b/apps/web/src/components/placeholders/index.tsxnew file mode 100644index 000000000..7f7d9a9de--- /dev/null+++ b/apps/web/src/components/placeholders/index.tsx@@ -0,0 +1,81 @@+/*+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 { Button, Flex, Text } from "@theme-ui/components";+import { Context, useTip } from "../../hooks/use-tip";+import { Info } from "../icons";+import { AliasIcon } from "../icons/resolver";++type PlaceholderProps = { context: Context; text?: string };+function Placeholder(props: PlaceholderProps) {+ const { context, text } = props;+ const tip = useTip(context);++ if (!tip) return null;++ return (+ <>+ <Flex+ variant="columnCenter"+ sx={{+ position: "relative",+ justifyContent: "flex-start",+ alignItems: "flex-start",+ alignSelf: "stretch",+ px: 6+ }}+ >+ <Flex+ sx={{+ border: "1px solid var(--primary)",+ borderRadius: 50,+ p: 1,+ py: "1.5px"+ }}+ >+ <Info color="primary" size={13} sx={{ mr: "small" }} />+ <Text variant="subBody" sx={{ fontSize: 10 }} color="primary">+ TIP+ </Text>+ </Flex>+ <Text variant="body" sx={{ color: "icon", mt: 1 }}>+ {text || tip.text}+ </Text>+ {tip.button && (+ <Button+ sx={{+ mt: 2,+ alignItems: "center",+ justifyContent: "center",+ display: "flex"+ }}+ variant="tool"+ onClick={tip.button.onClick}+ >+ <Text mr={1} color="primary">+ {tip.button.title}+ </Text>+ <AliasIcon alias={tip.button.icon} size={18} color="primary" />+ </Button>+ )}+ </Flex>+ </>+ );+}+export default Placeholder;diff --git a/apps/web/src/components/placeholders/loader.js b/apps/web/src/components/placeholders/loader.jsdeleted file mode 100644index b555e9bf5..000000000--- a/apps/web/src/components/placeholders/loader.js+++ /dev/null@@ -1,52 +0,0 @@-/*-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 { useLayoutEffect } from "react";-import { ReactComponent as Note } from "../../assets/note2.svg";-import { ReactComponent as Notebook } from "../../assets/notebook.svg";-import { ReactComponent as Monographs } from "../../assets/monographs.svg";-import { ReactComponent as Search } from "../../assets/search.svg";-import { ReactComponent as Tag } from "../../assets/tag.svg";-import { ReactComponent as Trash } from "../../assets/trash.svg";-import { ReactComponent as Fav } from "../../assets/fav.svg";-import { ReactComponent as Attachment } from "../../assets/attachment.svg";-import { ReactComponent as Reminder } from "../../assets/reminder.svg";--const Placeholders = {- note: Note,- notebook: Notebook,- topic: Notebook,- monograph: Monographs,- search: Search,- tag: Tag,- trash: Trash,- favorites: Fav,- attachments: Attachment,- reminder: Reminder-};--export default function PlaceholderLoader({ name, onLoad, ...restProps }) {- const Component = Placeholders[name];- useLayoutEffect(() => {- onLoad && onLoad();- }, [onLoad]);-- if (!Component) return null;- return <Component {...restProps} />;-}diff --git a/apps/web/src/components/placeholders/monographs-placeholder.js b/apps/web/src/components/placeholders/monographs-placeholder.jsdeleted file mode 100644index 12e47e7db..000000000--- a/apps/web/src/components/placeholders/monographs-placeholder.js+++ /dev/null@@ -1,31 +0,0 @@-/*-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 Placeholder from "./index";--function MonographsPlaceholder() {- return (- <Placeholder- id="monographs"- title="Your monographs"- text="All your published notes will be shown here."- />- );-}-export default MonographsPlaceholder;diff --git a/apps/web/src/components/placeholders/notebooks-placeholder.js b/apps/web/src/components/placeholders/notebooks-placeholder.jsdeleted file mode 100644index 13c6d5764..000000000--- a/apps/web/src/components/placeholders/notebooks-placeholder.js+++ /dev/null@@ -1,38 +0,0 @@-/*-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 Placeholder from "./index";-import { Plus } from "../icons";-import { hashNavigate } from "../../navigation";--function NotebooksPlaceholder() {- return (- <Placeholder- id="notebook"- title="Your notebooks"- text="You have not made any notebooks yet."- callToAction={{- text: "Make your first notebook",- icon: Plus,- onClick: () => hashNavigate("/notebooks/create")- }}- />- );-}-export default NotebooksPlaceholder;diff --git a/apps/web/src/components/placeholders/notesplacholder.js b/apps/web/src/components/placeholders/notesplacholder.jsdeleted file mode 100644index 7def5884a..000000000--- a/apps/web/src/components/placeholders/notesplacholder.js+++ /dev/null@@ -1,39 +0,0 @@-/*-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 Placeholder from "./index";-import * as Icon from "../icons";-import { hashNavigate } from "../../navigation";--function NotesPlaceholder() {- return (- <Placeholder- id="note"- title="Your notes"- text="You have not made any notes yet."- callToAction={{- text: "Make your first note",- icon: Icon.Plus,- onClick: () =>- hashNavigate("/notes/create", { replace: true, addNonce: true })- }}- />- );-}-export default NotesPlaceholder;diff --git a/apps/web/src/components/placeholders/reminders-placeholder.js b/apps/web/src/components/placeholders/reminders-placeholder.jsdeleted file mode 100644index 5614d6214..000000000--- a/apps/web/src/components/placeholders/reminders-placeholder.js+++ /dev/null@@ -1,38 +0,0 @@-/*-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 Placeholder from "./index";-import { Plus } from "../icons";-import { hashNavigate } from "../../navigation";--function RemindersPlaceholder() {- return (- <Placeholder- id="reminder"- title="Your reminders"- text="You have not added any reminders yet."- callToAction={{- text: "Add your first reminder",- icon: Plus,- onClick: () => hashNavigate("/reminders/create")- }}- />- );-}-export default RemindersPlaceholder;diff --git a/apps/web/src/components/placeholders/search-placeholder.js b/apps/web/src/components/placeholders/search-placeholder.jsdeleted file mode 100644index f445a6d4c..000000000--- a/apps/web/src/components/placeholders/search-placeholder.js+++ /dev/null@@ -1,25 +0,0 @@-/*-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 Placeholder from "./index";--function SearchPlaceholder({ text }) {- return <Placeholder id="search" text={text || "Nothing to show."} />;-}-export default SearchPlaceholder;diff --git a/apps/web/src/components/placeholders/tags-placeholder.js b/apps/web/src/components/placeholders/tags-placeholder.jsdeleted file mode 100644index 6dbcb3a2e..000000000--- a/apps/web/src/components/placeholders/tags-placeholder.js+++ /dev/null@@ -1,31 +0,0 @@-/*-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 Placeholder from "./index";--function TagsPlaceholder() {- return (- <Placeholder- id="tag"- title="Your tags"- text="You have not tagged any notes yet."- />- );-}-export default TagsPlaceholder;diff --git a/apps/web/src/components/placeholders/topics-placeholder.js b/apps/web/src/components/placeholders/topics-placeholder.jsdeleted file mode 100644index fbeac8d75..000000000--- a/apps/web/src/components/placeholders/topics-placeholder.js+++ /dev/null@@ -1,37 +0,0 @@-/*-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 Placeholder from "./index";-import { Plus } from "../icons";-import { hashNavigate } from "../../navigation";--function TopicsPlaceholder() {- return (- <Placeholder- id="topic"- text="You have not added any topics yet."- callToAction={{- text: "Add a topic",- icon: Plus,- onClick: () => hashNavigate("/topics/create")- }}- />- );-}-export default TopicsPlaceholder;diff --git a/apps/web/src/components/placeholders/trash-placeholder.js b/apps/web/src/components/placeholders/trash-placeholder.jsdeleted file mode 100644index a0237bf43..000000000--- a/apps/web/src/components/placeholders/trash-placeholder.js+++ /dev/null@@ -1,31 +0,0 @@-/*-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 Placeholder from "./index";--function TrashPlaceholder() {- return (- <Placeholder- id="trash"- title="Your trash"- text="All items here are permanently deleted after 7 days."- />- );-}-export default TrashPlaceholder;diff --git a/apps/web/src/hooks/use-tip.ts b/apps/web/src/hooks/use-tip.tsnew file mode 100644index 000000000..347523cfc--- /dev/null+++ b/apps/web/src/hooks/use-tip.ts@@ -0,0 +1,218 @@+/*+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 { useEffect, useRef, useState } from "react";+import { CREATE_BUTTON_MAP } from "../common";+import { IconAlias } from "../components/icons/resolver";+import Config from "../utils/config";++declare global {+ interface Array<T> {+ sample(): T;+ }+}++Array.prototype.sample = function () {+ return this[Math.floor(Math.random() * this.length)];+};++export type TipButton = {+ title: string;+ type?: string;+ onClick: () => void;+ icon?: IconAlias;+};+export type Context =+ | "notes"+ | "notebooks"+ | "tags"+ | "search"+ | "favorites"+ | "reminders"+ | "monographs"+ | "trash"+ | "topics"+ | "attachments";++export type Tip = {+ text: string;+ contexts: Context[];+ button?: TipButton;+};++const destructiveContexts: string[] = [];++let tipState: Partial<Record<Context, boolean>> | undefined = undefined;++export class TipManager {+ static init() {}++ static tip(context: Context) {+ if (!tipState) tipState = Config.get("tipState", {});++ if (destructiveContexts.indexOf(context) > -1) {+ if (tipState[context]) return;+ tipState[context] = true;+ Config.set("tipState", tipState);+ }++ const tipsForCtx = tips.filter((tip) => tip.contexts.indexOf(context) > -1);+ return tipsForCtx.sample();+ }+}++export const useTip = (+ context: Context,+ options?: {+ rotate: boolean;+ delay: number;+ }+) => {+ const [tip, setTip] = useState(TipManager.tip(context));+ const intervalRef = useRef<number>(0);+ const defaultTip = DEFAULT_TIPS[context];++ useEffect(() => {+ setTip(TipManager.tip(context));++ if (options?.rotate) {+ if (intervalRef.current) clearInterval(intervalRef.current);+ intervalRef.current = setInterval(() => {+ setTip(TipManager.tip(context));+ }, options.delay || 5000) as unknown as number;+ }+ return () => {+ clearInterval(intervalRef.current);+ };+ }, [context, options?.delay, options?.rotate]);++ if (tip && defaultTip) {+ return { ...tip, button: defaultTip.button };+ } else return tip || defaultTip;+};++const tips: Tip[] = [+ {+ text: "Hold Ctrl/Cmd & click on multiple items to select them.",+ contexts: ["notes", "notebooks", "tags", "topics"]+ },+ {+ text: "Monographs enable you to share your notes in a secure and private way.",+ contexts: ["monographs"]+ },+ {+ text: "Monographs can be encrypted with a secret key and shared with anyone.",+ contexts: ["monographs"]+ },+ {+ text: "Published notes can be encrypted. Which means only you and the person you share the password with can read them.",+ contexts: ["monographs"]+ },+ {+ text: "You can pin frequently used Notebooks to the Side Menu to quickly access them.",+ contexts: ["notebooks", "notebooks"]+ },+ {+ text: "A notebook can have unlimited topics with unlimited notes.",+ contexts: ["notebooks", "topics"]+ },+ {+ text: "You can multi-select notes and move them to a notebook or topic at once.",+ contexts: ["notebooks", "topics"]+ },+ {+ text: "Mark important notes by adding them to favorites.",+ contexts: ["notes", "favorites"]+ },+ {+ text: "Are you scrolling a lot to find a specific note? Pin it to the top from Note properties.",+ contexts: ["notes"]+ },+ {+ text: "Pin your most important Notebooks to the top from Notebook properties.",+ contexts: ["notebooks"]+ },+ {+ text: "We value your feedback so join us on Discord and share your experiences and ideas.",+ contexts: ["notes", "notebooks", "tags", "topics"],+ button: {+ title: "Join the Notesnook community",+ icon: "arrow-top-right",+ onClick: () =>+ window.open("https://discord.gg/notesnook-796015620436787241", "_blank")+ }+ },+ {+ text: "You can adjust how long items live in your trash from Settings -> Trash settings.",+ contexts: ["trash"]+ }+];++const DEFAULT_TIPS: Record<Context, Omit<Tip, "contexts">> = {+ attachments: {+ text: "You have no attachments."+ },+ favorites: { text: "Notes you favorite will appear here." },+ monographs: {+ text: "You haven't published any notes yet.",+ button: {+ title: "What are monographs?",+ icon: "arrow-top-right",+ onClick() {+ window.open(+ "https://help.notesnook.com/publish-notes-with-monographs",+ "_blank"+ );+ }+ }+ },+ notebooks: {+ text: "You haven't created any notebooks.",+ button: { ...CREATE_BUTTON_MAP.notebooks, icon: "plus" }+ },+ notes: {+ text: "You have not created any notes yet.",+ button: {+ ...CREATE_BUTTON_MAP.notes,+ icon: "plus"+ }+ },+ topics: {+ text: "You can add topics in notebooks to further organize your notes.",+ button: {+ ...CREATE_BUTTON_MAP.topics,+ icon: "plus"+ }+ },+ reminders: {+ text: "You can set daily, weekly or monthly reminders & stay ahead of your tasks.",+ button: { ...CREATE_BUTTON_MAP.reminders, icon: "plus" }+ },+ tags: {+ text: "You can use #tags to organize your notes.",+ button: {+ ...CREATE_BUTTON_MAP.tags,+ icon: "plus"+ }+ },+ trash: {+ text: ""+ },+ search: { text: "" }+};diff --git a/apps/web/src/views/home.js b/apps/web/src/views/home.jsindex a79d87286..c07e0fee3 100644--- a/apps/web/src/views/home.js+++ b/apps/web/src/views/home.js@@ -20,10 +20,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import React, { useEffect, useState } from "react";import { useStore, store } from "../stores/note-store";import ListContainer from "../components/list-container";-import NotesPlaceholder from "../components/placeholders/notesplacholder";import { db } from "../common/db";import { hashNavigate } from "../navigation";import useNavigate from "../hooks/use-navigate";+import Placeholder from "../components/placeholders";function Home() {useStore((store) => store.nonce);@@ -66,7 +66,7 @@ function Home() {refresh={refresh}isLoading={isLoading}items={notes}- placeholder={NotesPlaceholder}+ placeholder={<Placeholder context="notes" />}button={{content: "Make a new note",onClick: () =>diff --git a/apps/web/src/views/notebooks.js b/apps/web/src/views/notebooks.jsindex 3e0e0dc6b..201c26fa7 100644--- a/apps/web/src/views/notebooks.js+++ b/apps/web/src/views/notebooks.js@@ -19,9 +19,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import ListContainer from "../components/list-container";import { useStore, store } from "../stores/notebook-store";-import NotebooksPlaceholder from "../components/placeholders/notebooks-placeholder";import { hashNavigate } from "../navigation";import useNavigate from "../hooks/use-navigate";+import Placeholder from "../components/placeholders";function Notebooks() {useNavigate("notebooks", () => store.refresh());@@ -35,7 +35,7 @@ function Notebooks() {groupType="notebooks"refresh={refresh}items={notebooks}- placeholder={NotebooksPlaceholder}+ placeholder={<Placeholder context="notebooks" />}button={{content: "Create a notebook",onClick: () => hashNavigate("/notebooks/create")diff --git a/apps/web/src/views/notes.js b/apps/web/src/views/notes.jsindex 6bea07259..c91b899aa 100644--- a/apps/web/src/views/notes.js+++ b/apps/web/src/views/notes.js@@ -20,11 +20,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import { useEffect } from "react";import ListContainer from "../components/list-container";import { useStore as useNotesStore } from "../stores/note-store";-import NotesPlaceholder from "../components/placeholders/notesplacholder";import { hashNavigate, navigate } from "../navigation";-import FavoritesPlaceholder from "../components/placeholders/favorites-placeholder";import { groupArray } from "@notesnook/core/utils/grouping";import { db } from "../common/db";+import Placeholder from "../components/placeholders";function Notes() {const context = useNotesStore((store) => store.context);@@ -48,7 +47,15 @@ function Notes() {context={{ ...context, notes: undefined }}items={groupArray(context.notes, db.settings.getGroupOptions(type))}placeholder={- context.type === "favorite" ? FavoritesPlaceholder : NotesPlaceholder+ <Placeholder+ context={+ context.type === "favorite"+ ? "favorites"+ : context.type === "monographs"+ ? "monographs"+ : "notes"+ }+ />}button={{content: "Make a new note",diff --git a/apps/web/src/views/reminders.tsx b/apps/web/src/views/reminders.tsxindex 8d79b6deb..4fd0267b0 100644--- a/apps/web/src/views/reminders.tsx+++ b/apps/web/src/views/reminders.tsx@@ -19,9 +19,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import ListContainer from "../components/list-container";import { useStore, store } from "../stores/reminder-store";-import RemindersPlaceholder from "../components/placeholders/reminders-placeholder";import { hashNavigate } from "../navigation";import useNavigate from "../hooks/use-navigate";+import Placeholder from "../components/placeholders";function Reminders() {useNavigate("reminders", () => store.refresh());@@ -34,7 +34,7 @@ function Reminders() {type="reminders"refresh={refresh}items={reminders}- placeholder={RemindersPlaceholder}+ placeholder={<Placeholder context="reminders" />}button={{onClick: () => hashNavigate("/reminders/create")}}diff --git a/apps/web/src/views/search.js b/apps/web/src/views/search.jsindex b54fee3c9..d0a54110a 100644--- a/apps/web/src/views/search.js+++ b/apps/web/src/views/search.js@@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import { useCallback, useEffect, useMemo, useRef, useState } from "react";import ListContainer from "../components/list-container";-import SearchPlaceholder from "../components/placeholders/search-placeholder";import { db } from "../common/db";import SearchBox from "../components/search";import ProgressBar from "../components/progress-bar";@@ -28,6 +27,7 @@ import { Flex, Text } from "@theme-ui/components";import { showToast } from "../utils/toast";import { store as notebookstore } from "../stores/notebook-store";import { hardNavigate } from "../navigation";+import Placeholder from "../components/placeholders";async function typeToItems(type, context) {switch (type) {@@ -149,7 +149,8 @@ function Search({ type }) {justifyContent: "center"}}>- <SearchPlaceholder+ <Placeholder+ context="search"text={`Searching in ${searchState.totalItems} ${type}...`}/><ProgressBar@@ -165,7 +166,8 @@ function Search({ type }) {type={type}items={results}placeholder={() => (- <SearchPlaceholder+ <Placeholder+ context="search"text={cachedQuery.current? `Nothing found for "${cachedQuery.current}"`diff --git a/apps/web/src/views/tags.js b/apps/web/src/views/tags.jsindex 55a6fe9ad..6ae2a9486 100644--- a/apps/web/src/views/tags.js+++ b/apps/web/src/views/tags.js@@ -19,8 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import ListContainer from "../components/list-container";import { useStore, store } from "../stores/tag-store";-import TagsPlaceholder from "../components/placeholders/tags-placeholder";import useNavigate from "../hooks/use-navigate";+import Placeholder from "../components/placeholders";function Tags() {useNavigate("tags", () => store.refresh());@@ -32,7 +32,7 @@ function Tags() {groupType="tags"refresh={refresh}items={tags}- placeholder={TagsPlaceholder}+ placeholder={<Placeholder context="tags" />}/>);}diff --git a/apps/web/src/views/trash.js b/apps/web/src/views/trash.jsindex eac5c8fd1..7cd9d7f4a 100644--- a/apps/web/src/views/trash.js+++ b/apps/web/src/views/trash.js@@ -21,11 +21,11 @@ import * as Icon from "../components/icons";import ListContainer from "../components/list-container";import { confirm } from "../common/dialog-controller";import { useStore, store } from "../stores/trash-store";-import TrashPlaceholder from "../components/placeholders/trash-placeholder";import { showToast } from "../utils/toast";import { Text } from "@theme-ui/components";import useNavigate from "../hooks/use-navigate";import { db } from "../common/db";+import Placeholder from "../components/placeholders";function Trash() {useNavigate("trash", async () => {@@ -41,7 +41,7 @@ function Trash() {type="trash"groupType="trash"refresh={refresh}- placeholder={TrashPlaceholder}+ placeholder={<Placeholder context="trash" />}items={items}button={{show: !!items.length,