From d3e4502cb22958b4bf5eec471d317c4c96de72b5 Mon Sep 17 00:00:00 2001 From: Kumi Date: Wed, 29 May 2024 15:33:18 +0200 Subject: [PATCH] feat: add service icons and clean up templates Updated `services.json` to include icon data for better visual identification of services. Also, removed unused services (Nitter and Proxigram) to streamline service offerings and improve maintainability. In `index.html`, amended the template to dynamically display these icons, enhancing the UI/UX. This change makes the service list more visually appealing and intuitive, directly linking visual cues to services for quicker recognition. Additionally, this update contributes to a cleaner codebase by removing references to services no longer in use, thus improving code quality and reducing potential confusion regarding supported services. --- README.md | 5 +++ assets/dist/icons/article-ny-times.svg | 1 + assets/dist/icons/calendar.svg | 1 + assets/dist/icons/chats.svg | 1 + assets/dist/icons/database.svg | 1 + assets/dist/icons/git-branch.svg | 1 + assets/dist/icons/images.svg | 1 + assets/dist/icons/leaf.svg | 1 + assets/dist/icons/lightbulb.svg | 1 + assets/dist/icons/link.svg | 1 + assets/dist/icons/magnifying-glass.svg | 1 + assets/dist/icons/markdown-logo.svg | 1 + assets/dist/icons/mastodon-logo.svg | 1 + assets/dist/icons/matrix-logo.svg | 1 + assets/dist/icons/network.svg | 1 + assets/dist/icons/pencil-ruler.svg | 1 + assets/dist/icons/video.svg | 1 + assets/dist/icons/webcam.svg | 1 + data/services.json | 56 +++++++++----------------- templates/index.html | 7 ++-- 20 files changed, 45 insertions(+), 40 deletions(-) create mode 100644 assets/dist/icons/article-ny-times.svg create mode 100644 assets/dist/icons/calendar.svg create mode 100644 assets/dist/icons/chats.svg create mode 100644 assets/dist/icons/database.svg create mode 100644 assets/dist/icons/git-branch.svg create mode 100644 assets/dist/icons/images.svg create mode 100644 assets/dist/icons/leaf.svg create mode 100644 assets/dist/icons/lightbulb.svg create mode 100644 assets/dist/icons/link.svg create mode 100644 assets/dist/icons/magnifying-glass.svg create mode 100644 assets/dist/icons/markdown-logo.svg create mode 100644 assets/dist/icons/mastodon-logo.svg create mode 100644 assets/dist/icons/matrix-logo.svg create mode 100644 assets/dist/icons/network.svg create mode 100644 assets/dist/icons/pencil-ruler.svg create mode 100644 assets/dist/icons/video.svg create mode 100644 assets/dist/icons/webcam.svg diff --git a/README.md b/README.md index d117c6f..1b88198 100644 --- a/README.md +++ b/README.md @@ -24,3 +24,8 @@ The website will be available at `http://localhost:9810`. This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. + +## Attribution + +This website is built using the [Bootstrap](https://getbootstrap.com) framework +and [Phosphor Icons](https://phosphoricons.com). \ No newline at end of file diff --git a/assets/dist/icons/article-ny-times.svg b/assets/dist/icons/article-ny-times.svg new file mode 100644 index 0000000..f4ed00a --- /dev/null +++ b/assets/dist/icons/article-ny-times.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/calendar.svg b/assets/dist/icons/calendar.svg new file mode 100644 index 0000000..c066f4a --- /dev/null +++ b/assets/dist/icons/calendar.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/chats.svg b/assets/dist/icons/chats.svg new file mode 100644 index 0000000..2d1e90a --- /dev/null +++ b/assets/dist/icons/chats.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/database.svg b/assets/dist/icons/database.svg new file mode 100644 index 0000000..8d916c3 --- /dev/null +++ b/assets/dist/icons/database.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/git-branch.svg b/assets/dist/icons/git-branch.svg new file mode 100644 index 0000000..1b917dd --- /dev/null +++ b/assets/dist/icons/git-branch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/images.svg b/assets/dist/icons/images.svg new file mode 100644 index 0000000..65a3f60 --- /dev/null +++ b/assets/dist/icons/images.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/leaf.svg b/assets/dist/icons/leaf.svg new file mode 100644 index 0000000..e9cfc46 --- /dev/null +++ b/assets/dist/icons/leaf.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/lightbulb.svg b/assets/dist/icons/lightbulb.svg new file mode 100644 index 0000000..918dbe2 --- /dev/null +++ b/assets/dist/icons/lightbulb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/link.svg b/assets/dist/icons/link.svg new file mode 100644 index 0000000..da45a28 --- /dev/null +++ b/assets/dist/icons/link.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/magnifying-glass.svg b/assets/dist/icons/magnifying-glass.svg new file mode 100644 index 0000000..bf4e505 --- /dev/null +++ b/assets/dist/icons/magnifying-glass.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/markdown-logo.svg b/assets/dist/icons/markdown-logo.svg new file mode 100644 index 0000000..7a14e6b --- /dev/null +++ b/assets/dist/icons/markdown-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/mastodon-logo.svg b/assets/dist/icons/mastodon-logo.svg new file mode 100644 index 0000000..313c57c --- /dev/null +++ b/assets/dist/icons/mastodon-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/matrix-logo.svg b/assets/dist/icons/matrix-logo.svg new file mode 100644 index 0000000..3a0190d --- /dev/null +++ b/assets/dist/icons/matrix-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/network.svg b/assets/dist/icons/network.svg new file mode 100644 index 0000000..62b51c5 --- /dev/null +++ b/assets/dist/icons/network.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/pencil-ruler.svg b/assets/dist/icons/pencil-ruler.svg new file mode 100644 index 0000000..c66af52 --- /dev/null +++ b/assets/dist/icons/pencil-ruler.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/video.svg b/assets/dist/icons/video.svg new file mode 100644 index 0000000..d711517 --- /dev/null +++ b/assets/dist/icons/video.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/dist/icons/webcam.svg b/assets/dist/icons/webcam.svg new file mode 100644 index 0000000..abd8965 --- /dev/null +++ b/assets/dist/icons/webcam.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/data/services.json b/data/services.json index 7a20116..2e4dc7d 100644 --- a/data/services.json +++ b/data/services.json @@ -12,6 +12,7 @@ "url": "https://element.private.coffee" } ], + "icon": "matrix-logo", "exclude_from_index": false, "exclude_from_simple": true }, @@ -27,6 +28,7 @@ "url": "https://cryptpad.private.coffee" } ], + "icon": "article-ny-times", "exclude_from_index": false, "exclude_from_simple": false }, @@ -42,6 +44,7 @@ "url": "https://piped.private.coffee" } ], + "icon": "video", "exclude_from_index": false, "exclude_from_simple": false }, @@ -57,6 +60,7 @@ "url": "https://myip.coffee" } ], + "icon": "network", "exclude_from_index": false, "exclude_from_simple": false }, @@ -72,6 +76,7 @@ "url": "https://invidious.private.coffee" } ], + "icon": "video", "exclude_from_index": false, "exclude_from_simple": false }, @@ -91,6 +96,7 @@ "url": "https://skrt.social" } ], + "icon": "mastodon-logo", "exclude_from_index": false, "exclude_from_simple": false }, @@ -106,6 +112,7 @@ "url": "https://git.private.coffee" } ], + "icon": "git-branch", "exclude_from_index": false, "exclude_from_simple": false }, @@ -121,6 +128,7 @@ "url": "https://bbb.private.coffee" } ], + "icon": "webcam", "exclude_from_index": false, "exclude_from_simple": false }, @@ -136,6 +144,7 @@ "url": "https://hedgedoc.private.coffee" } ], + "icon": "markdown-logo", "exclude_from_index": false, "exclude_from_simple": false }, @@ -151,6 +160,7 @@ "url": "https://gothub.private.coffee" } ], + "icon": "git-branch", "exclude_from_index": false, "exclude_from_simple": false }, @@ -166,6 +176,7 @@ "url": "https://redlib.private.coffee" } ], + "icon": "chats", "exclude_from_index": false, "exclude_from_simple": false }, @@ -181,6 +192,7 @@ "url": "https://alltube.private.coffee" } ], + "icon": "video", "exclude_from_index": false, "exclude_from_simple": false }, @@ -196,6 +208,7 @@ "url": "https://structables.private.coffee" } ], + "icon": "lightbulb", "exclude_from_index": false, "exclude_from_simple": false }, @@ -211,6 +224,7 @@ "url": "https://nocodb.private.coffee" } ], + "icon": "database", "exclude_from_index": true, "exclude_from_simple": true }, @@ -226,6 +240,7 @@ "url": "https://penpot.private.coffee" } ], + "icon": "pencil-ruler", "exclude_from_index": false, "exclude_from_simple": false }, @@ -241,6 +256,7 @@ "url": "https://pcof.fi" } ], + "icon": "link", "exclude_from_index": false, "exclude_from_simple": false }, @@ -256,6 +272,7 @@ "url": "https://rallly.private.coffee" } ], + "icon": "calendar", "exclude_from_index": true, "exclude_from_simple": true }, @@ -271,6 +288,7 @@ "url": "https://librey.private.coffee" } ], + "icon": "magnifying-glass", "exclude_from_index": false, "exclude_from_simple": false }, @@ -286,6 +304,7 @@ "url": "https://overleaf.private.coffee" } ], + "icon": "leaf", "exclude_from_index": false, "exclude_from_simple": false }, @@ -301,44 +320,9 @@ "url": "https://binternet.private.coffee" } ], + "icon": "images", "exclude_from_index": false, "exclude_from_simple": false - }, - { - "name": "Nitter", - "url": "https://nitter.private.coffee", - "short_description": "Nitter is a privacy-friendly alternative front-end to Twitter.", - "long_description": "Nitter is a privacy-friendly alternative front-end to Twitter. It allows you to browse Twitter without being tracked.", - "status": "NOK", - "links": [ - { - "name": "Go to Nitter", - "url": "https://nitter.private.coffee", - "alternatives": [ - { - "name": "Tor (.onion)", - "url": "http://nitter.coffee2m3bjsrrqqycx6ghkxrnejl2q6nl7pjw2j4clchjj6uk5zozad.onion/" - } - ] - } - ], - "exclude_from_index": true, - "exclude_from_simple": true - }, - { - "name": "Proxigram", - "url": "https://proxigram.private.coffee", - "short_description": "Proxigram is a privacy-friendly alternative front-end to Instagram.", - "long_description": "Proxigram is a privacy-friendly alternative front-end to Instagram. It allows you to browse Instagram without being tracked.", - "status": "NOK", - "links": [ - { - "name": "Go to Proxigram", - "url": "https://proxigram.private.coffee" - } - ], - "exclude_from_index": true, - "exclude_from_simple": true } ] } \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 166ba7b..94bf775 100644 --- a/templates/index.html +++ b/templates/index.html @@ -29,10 +29,9 @@
-
- - -
+
+ {% if service.icon %}{{ service.name }}{% endif %} +
{{ service.name }}

{{ service.long_description }}

{% for link in service.links %}