From 9806d04f49239e9d105a4334acf55f231e61ea98 Mon Sep 17 00:00:00 2001 From: kehiy Date: Sun, 1 Sep 2024 15:21:58 +0330 Subject: [PATCH] feat(component): feature card --- src/lib/components/FeatureCard.svelte | 28 ++++++ src/lib/features.ts | 27 ++++++ src/routes/+page.svelte | 123 ++------------------------ src/routes/backup/+page.svelte | 10 ++- 4 files changed, 68 insertions(+), 120 deletions(-) create mode 100644 src/lib/components/FeatureCard.svelte create mode 100644 src/lib/features.ts diff --git a/src/lib/components/FeatureCard.svelte b/src/lib/components/FeatureCard.svelte new file mode 100644 index 0000000..827cd9a --- /dev/null +++ b/src/lib/components/FeatureCard.svelte @@ -0,0 +1,28 @@ + + +
+
+
+ +
+ {title} +
+
+ {description} +
+
diff --git a/src/lib/features.ts b/src/lib/features.ts new file mode 100644 index 0000000..b3132e4 --- /dev/null +++ b/src/lib/features.ts @@ -0,0 +1,27 @@ +// TODO: Move SVG icons to assets! +export let features = [ + { + title: 'Privacy', + description: "We won't leak your private messages or send them to unauthorized address.", + icon: `M12 16.5V9.75m0 0l3 3m-3-3l-3 3M6.75 19.5a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z` + }, + { + title: 'Search on our index (soon)', + description: `When you search or query events, we search on our huge event index containing millions + of events indexed there.`, + icon: `M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99` + }, + { + title: 'Backup', + description: `We backup all of your events for you and you can export your events at anytime you + want.`, + icon: `M12 16.5V9.75m0 0l3 3m-3-3l-3 3M6.75 19.5a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z` + }, + { + title: 'Updates', + description: `That's not all you get. We are actively working and adding new features and services + to the JellyFish, as we just started now. All new services will be available on your + current plan, no need for more sats or updates.`, + icon: `M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99` + } +]; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 0757d0a..01f421e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,6 +1,9 @@
@@ -54,7 +57,7 @@ - + -
@@ -85,120 +87,9 @@
-
-
-
- -
- Backup -
-
- We backup all of your events for you and you can export your events at anytime you - want. -
-
-
-
-
- -
- Privacy -
-
- We won't leak your private messages or send them to unauthorized address. -
-
-
-
-
- - icons8-search-50 - - - - - - -
- Search on our index (soon) -
-
- When you search or query events, we search on our huge event index containing millions - of events indexed there. -
-
-
-
-
- -
- Updates -
-
- That's not all you get. We are actively working and adding new features and services - to the JellyFish, as we just started now. All new services will be available on your - current plan, no need for more sats or updates. -
-
+ {#each features as f} + + {/each}
diff --git a/src/routes/backup/+page.svelte b/src/routes/backup/+page.svelte index b752ef3..e041138 100644 --- a/src/routes/backup/+page.svelte +++ b/src/routes/backup/+page.svelte @@ -66,10 +66,12 @@ > Backup Your Notes -

- All backups will be downloaded on your device in a json file. -
- Remember your noted deleted using nip-09 won't be in backup result. +

+ All backups will be downloaded to your device as a JSON file.
+ + Please note that notes deleted using nip-09, direct messages (encrypted/plain), and + notes that not published to JellyFish Relay won't be included in the backup. +