diff --git a/website/.eleventy.js b/website/.eleventy.js
index c70bf9a78..a3332958c 100644
--- a/website/.eleventy.js
+++ b/website/.eleventy.js
@@ -20,6 +20,11 @@ module.exports = function (ty) {
ty.addCollection('blogs', function (collection) {
return collection.getFilteredByGlob('src/blog/*.md').reverse()
})
+ ty.addCollection('whySimplexIsUnique', function (collection) {
+ return collection.getFilteredByGlob('src/data/why_simplex_is_unique/*.md')
+ })
+
+
ty.addWatchTarget("src/css")
ty.addWatchTarget("markdown/")
diff --git a/website/src/_data/why_simplex_is_unique.json b/website/src/_data/why_simplex_is_unique.json
deleted file mode 100644
index b2a67dc3d..000000000
--- a/website/src/_data/why_simplex_is_unique.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "sections": [
- {
- "id": 1,
- "title": "Complete privacy of your identity, profile, contacts and metadata",
- "desc": "Unlike any other existing messaging platform, SimpleX has no identifiers assigned to the users –- not even random numbers. This protects the privacy of who you are communicating with, hiding it from SimpleX platform servers and from any observers.",
- "imgLight": "/img/new/unique-section-1.png",
- "imgDark": "/img/new/unique-section-1-dark.png",
- "overlayContent": {
- "overlayId": "why-simplex-is-unique-1",
- "title": "Complete privacy of your identity, profile, contacts and metadata",
- "linkText": "Learn how it improves privacy",
- "showImage": true,
- "paras": [
- "Unlike any other existing messaging platform, SimpleX has no identifiers assigned to the users –- not even random numbers. This protects the privacy of who you are communicating with, hiding it from SimpleX platform servers and from any observers. Unlike any other existing messaging platform, SimpleX has no identifiers assigned to the users –- not even random numbers.",
- "Privacy of who you are communicating with, hiding it from SimpleX platform servers and from any observers. Unlike any other existing messaging platform, SimpleX has no identifiers assigned to the users –- not even random numbers.",
- "This protects the privacy of who you are communicating with, hiding it from SimpleX platform servers and from any observers."
- ]
- }
- },
- {
- "id": 2,
- "title": "The best protection against spam and abuse",
- "desc": "Because you have no identifier on the SimpleX platform, you cannot be contacted unless you share a one-time “burner” or temporary user address.",
- "imgLight": "/img/new/unique-section-2.png",
- "imgDark": "/img/new/unique-section-2-dark.png",
- "overlayContent": {
- "overlayId": "why-simplex-is-unique-2",
- "title": "The best protection against spam and abuse",
- "linkText": "Learn how it improves privacy",
- "showImage": true,
- "paras": [
- "Because you have no identifier on the SimpleX platform, you cannot be contacted unless you share a one-time “burner” or temporary user address."
- ]
- }
- },
- {
- "id": 3,
- "title": "Ownership, control and security of your data",
- "desc": "SimpleX stores all user data on client devices in a portable database format. The messages are held temporarily on SimpleX relay servers until they are received, then they are permanently deleted.",
- "imgLight": "/img/new/unique-section-3.png",
- "imgDark": "/img/new/unique-section-3-dark.png",
- "overlayContent": {
- "overlayId": "why-simplex-is-unique-3",
- "title": "Ownership, control and security of your data",
- "linkText": "Learn how it improves privacy",
- "showImage": true,
- "paras": [
- "SimpleX stores all user data on client devices in a portable database format. The messages are held temporarily on SimpleX relay servers until they are received, then they are permanently deleted."
- ]
- }
- },
- {
- "id": 4,
- "title": "Fully decentralised – users own the SimpleX network",
- "desc": "You can use SimpleX with your own servers and still communicate with people using the servers that are pre-configured in the apps or any other SimpleX servers. The SimpleX network is independent of any crypto currency or any other platform, other than the Internet.",
- "imgLight": "/img/new/unique-section-4.png",
- "imgDark": "/img/new/unique-section-4-dark.png"
- }
- ]
-}
\ No newline at end of file
diff --git a/website/src/_includes/components/macro.njk b/website/src/_includes/components/macro.njk
index 2964e34e1..52286affc 100644
--- a/website/src/_includes/components/macro.njk
+++ b/website/src/_includes/components/macro.njk
@@ -1,21 +1,21 @@
-{% macro overlay(section) %}
+{% macro overlay(card) %}
{# Overlay is either hidder or flex #}
-
+
-
{{ section.overlayContent.title }}
+
{{ card.overlayContent.overlayTitle }}
- {% for para in section.overlayContent.paras %}
+ {% for para in card.overlayContent.paras %}
{{ para }}
{% endfor %}
- {% if section.overlayContent.showImage %}
+ {% if card.overlayContent.showImage %}
-

+
{% endif %}
diff --git a/website/src/_includes/sections/simplex_unique.html b/website/src/_includes/sections/simplex_unique.html
index ffedad95c..8a646a99d 100644
--- a/website/src/_includes/sections/simplex_unique.html
+++ b/website/src/_includes/sections/simplex_unique.html
@@ -5,7 +5,7 @@
- {% for section in why_simplex_is_unique.sections %}
+ {% for card in collections.whySimplexIsUnique %}
{% endfor %}
@@ -59,8 +59,8 @@
-{% for section in why_simplex_is_unique.sections %}
- {% if section.overlayContent %}
- {{ overlay(section) }}
+{% for card in collections.whySimplexIsUnique %}
+ {% if card.data.overlayContent %}
+ {{ overlay(card.data) }}
{% endif %}
{% endfor %}
\ No newline at end of file
diff --git a/website/src/data/why_simplex_is_unique/card_1.md b/website/src/data/why_simplex_is_unique/card_1.md
new file mode 100644
index 000000000..4284a38f0
--- /dev/null
+++ b/website/src/data/why_simplex_is_unique/card_1.md
@@ -0,0 +1,16 @@
+---
+id: 1
+title: "Complete privacy of your identity, profile, contacts and metadata"
+desc: "Unlike any other existing messaging platform, SimpleX has no identifiers assigned to the users –- not even random numbers. This protects the privacy of who you are communicating with, hiding it from SimpleX platform servers and from any observers."
+imgLight: "/img/new/unique-section-1.png"
+imgDark: "/img/new/unique-section-1-dark.png"
+overlayContent:
+ overlayId: "why-simplex-is-unique-1"
+ overlayTitle: "Complete privacy of your identity, profile, contacts and metadata"
+ linkText: "Learn how it improves privacy"
+ showImage: true
+ paras:
+ - "Unlike any other existing messaging platform, SimpleX has no identifiers assigned to the users –- not even random numbers. This protects the privacy of who you are communicating with, hiding it from SimpleX platform servers and from any observers. Unlike any other existing messaging platform, SimpleX has no identifiers assigned to the users –- not even random numbers."
+ - "Privacy of who you are communicating with, hiding it from SimpleX platform servers and from any observers. Unlike any other existing messaging platform, SimpleX has no identifiers assigned to the users –- not even random numbers."
+ - "This protects the privacy of who you are communicating with, hiding it from SimpleX platform servers and from any observers."
+---
diff --git a/website/src/data/why_simplex_is_unique/card_2.md b/website/src/data/why_simplex_is_unique/card_2.md
new file mode 100644
index 000000000..8fefe24b3
--- /dev/null
+++ b/website/src/data/why_simplex_is_unique/card_2.md
@@ -0,0 +1,14 @@
+---
+id: 2
+title: "The best protection against spam and abuse"
+desc: "Because you have no identifier on the SimpleX platform, you cannot be contacted unless you share a one-time “burner” or temporary user address."
+imgLight: "/img/new/unique-section-2.png"
+imgDark: "/img/new/unique-section-2-dark.png"
+overlayContent:
+ overlayId: "why-simplex-is-unique-2"
+ overlayTitle: "The best protection against spam and abuse"
+ linkText: "Learn how it improves privacy"
+ showImage: true
+ paras:
+ - "Because you have no identifier on the SimpleX platform, you cannot be contacted unless you share a one-time “burner” or temporary user address."
+---
diff --git a/website/src/data/why_simplex_is_unique/card_3.md b/website/src/data/why_simplex_is_unique/card_3.md
new file mode 100644
index 000000000..647b01f1f
--- /dev/null
+++ b/website/src/data/why_simplex_is_unique/card_3.md
@@ -0,0 +1,14 @@
+---
+id: 3
+title: "Ownership, control and security of your data"
+desc: "SimpleX stores all user data on client devices in a portable database format. The messages are held temporarily on SimpleX relay servers until they are received, then they are permanently deleted."
+imgLight: "/img/new/unique-section-3.png"
+imgDark: "/img/new/unique-section-3-dark.png"
+overlayContent:
+ overlayId: "why-simplex-is-unique-3"
+ overlayTitle: "Ownership, control and security of your data"
+ linkText: "Learn how it improves privacy"
+ showImage: true
+ paras:
+ - "SimpleX stores all user data on client devices in a portable database format. The messages are held temporarily on SimpleX relay servers until they are received, then they are permanently deleted."
+---
diff --git a/website/src/data/why_simplex_is_unique/card_4.md b/website/src/data/why_simplex_is_unique/card_4.md
new file mode 100644
index 000000000..5cedc4b7d
--- /dev/null
+++ b/website/src/data/why_simplex_is_unique/card_4.md
@@ -0,0 +1,7 @@
+---
+id: 4
+title: "Fully decentralised – users own the SimpleX network"
+desc: "You can use SimpleX with your own servers and still communicate with people using the servers that are pre-configured in the apps or any other SimpleX servers. The SimpleX network is independent of any crypto currency or any other platform, other than the Internet."
+imgLight: "/img/new/unique-section-4.png"
+imgDark: "/img/new/unique-section-4-dark.png"
+---