From 6f7b04769ee54a5a11f46c93b00b2eb61fbc189d Mon Sep 17 00:00:00 2001 From: Daniele Tonon Date: Sat, 28 Oct 2023 15:22:54 +0200 Subject: [PATCH] Review clients design --- tailwind.config.js | 1 - templates/clients.html | 10 ++++------ utils.go | 6 +++--- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/tailwind.config.js b/tailwind.config.js index 405c6fb..01198e3 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -9,7 +9,6 @@ module.exports = { fontSize: { xs: '0.7rem', sm: '0.8rem', - re: '0.9rem', '2xl': ['1.5rem', '1.1rem'], }, colors: { diff --git a/templates/clients.html b/templates/clients.html index 43bd4e6..954c587 100644 --- a/templates/clients.html +++ b/templates/clients.html @@ -7,7 +7,7 @@ toggle .hidden on <.client:not(:first-child) />" >
@@ -51,21 +51,19 @@ get first in me then tell it remove .hidden - add .rounded-t-lg .bg-strongpink .hover:bg-crimson to in you - remove .sm:rounded-lg " > {{range .Clients}} diff --git a/utils.go b/utils.go index b717190..287b8e7 100644 --- a/utils.go +++ b/utils.go @@ -126,7 +126,7 @@ type ClientReference struct { func generateClientList(code string, event *nostr.Event) []ClientReference { if event.Kind == 1 || event.Kind == 6 { return []ClientReference{ - {ID: "native", Name: "your native client", URL: "nostr:" + code}, + {ID: "native", Name: "Your native client", URL: "nostr:" + code}, {ID: "snort", Name: "Snort", URL: "https://Snort.social/e/" + code}, {ID: "nostrudel", Name: "Nostrudel", URL: "https://nostrudel.ninja/#/n/" + code}, {ID: "satellite", Name: "Satellite", URL: "https://satellite.earth/thread/" + event.ID}, @@ -138,7 +138,7 @@ func generateClientList(code string, event *nostr.Event) []ClientReference { } } else if event.Kind == 0 { return []ClientReference{ - {ID: "native", Name: "your native client", URL: "nostr:" + code}, + {ID: "native", Name: "Your native client", URL: "nostr:" + code}, {ID: "nosta", Name: "Nosta", URL: "https://nosta.me/" + code}, {ID: "snort", Name: "Snort", URL: "https://snort.social/p/" + code}, {ID: "satellite", Name: "Satellite", URL: "https://satellite.earth/@" + code}, @@ -150,7 +150,7 @@ func generateClientList(code string, event *nostr.Event) []ClientReference { } } else if event.Kind == 30023 || event.Kind == 30024 { return []ClientReference{ - {ID: "native", Name: "your native client", URL: "nostr:" + code}, + {ID: "native", Name: "Your native client", URL: "nostr:" + code}, {ID: "yakihonne", Name: "YakiHonne", URL: "https://yakihonne.com/article/" + code}, {ID: "habla", Name: "Habla", URL: "https://habla.news/a/" + code}, {ID: "highlighter", Name: "Highlighter", URL: "https://highlighter.com/a/" + code},