Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Commit

Permalink
feat: links to clients to view profiles (related #8)
Browse files Browse the repository at this point in the history
  • Loading branch information
piraces committed Feb 3, 2023
1 parent b9f452f commit 1068e45
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 8 deletions.
16 changes: 14 additions & 2 deletions web/templates/created.html.tmpl
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous"/>
<title>rsslay</title>
</head>

Expand Down Expand Up @@ -61,9 +62,20 @@
</div>
</div>
</div>
<div class="buttons is-justify-content-center">
<a href="https://astral.ninja/{{.NPubKey}}" target="_blank" class="button is-link is-light">View in astral.ninja</a>
<a href="https://iris.to/#/profile/{{.NPubKey}}" target="_blank" class="button is-link is-light">View in iris.to</a>
<a href="https://snort.social/p/{{.NPubKey}}" target="_blank" class="button is-link is-light">View in snort.social</a>
<a href="nostr:{{.NPubKey}}" target="_blank" class="button is-link is-light">Open in default app</a>
</div>
</div>
{{end}}
<a class="button is-primary mt-3 mb-3" href="/">Go home</a>
<a class="button is-primary mt-3 mb-3" href="/">
<span class="icon">
<i class="fas fa-home"></i>
</span>
<span>Go home</span>
</a>
</div>
<footer class="footer">
<div class="content has-text-centered">
Expand Down
24 changes: 21 additions & 3 deletions web/templates/index.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous"/>
<title>rsslay</title>
</head>

Expand Down Expand Up @@ -70,7 +71,12 @@
placeholder="https://example.com/feed">
</div>
<div class="control">
<button class="button is-link">Get Public Key</button>
<button class="button is-link">
<span class="icon">
<i class="fas fa-key"></i>
</span>
<span>Get Public Key</span>
</button>
</div>
</div>
</form>
Expand All @@ -86,7 +92,10 @@
</div>
<div class="control">
<a class="button is-info">
Search
<span class="icon">
<i class="fas fa-filter"></i>
</span>
<span>Search</span>
</a>
</div>
</div>
Expand All @@ -98,15 +107,24 @@
<th>Public key (Hex)</th>
<th>Public key</th>
<th>Feed URL</th>
<th>View in clients</th>
</tr>
{{range .Entries}}
<tr>
<td><a href="https://www.nostr.guru/p/{{.PubKey}}" style="word-break: break-all;">{{.PubKey}}</a>
</td>
<td><a href="https://www.nostr.guru/{{.NPubKey}}" style="word-break: break-all;">{{.NPubKey}}</a>
<td><a href="nostr:{{.NPubKey}}" style="word-break: break-all;">{{.NPubKey}}</a>
</td>
<td><a href="{{.Url}}" style="word-break: break-all;">{{.Url}}</a>
</td>
<td>
<div class="buttons">
<a href="https://astral.ninja/{{.NPubKey}}" target="_blank" class="button is-small is-link is-light">View in astral.ninja</a>
<a href="https://iris.to/#/profile/{{.NPubKey}}" target="_blank" class="button is-small is-link is-light">View in iris.to</a>
<a href="https://snort.social/p/{{.NPubKey}}" target="_blank" class="button is-small is-link is-light">View in snort.social</a>
<a href="nostr:{{.NPubKey}}" target="_blank" class="button is-small is-link is-light">Open in default app</a>
</div>
</td>
</tr>
{{end}}
</tbody>
Expand Down
24 changes: 21 additions & 3 deletions web/templates/search.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous"/>
<title>rsslay</title>
</head>

Expand Down Expand Up @@ -76,7 +77,12 @@
placeholder="https://example.com/feed">
</div>
<div class="control">
<button class="button is-link">Get Public Key</button>
<button class="button is-link">
<span class="icon">
<i class="fas fa-key"></i>
</span>
<span>Get Public Key</span>
</button>
</div>
</div>
</form>
Expand All @@ -92,7 +98,10 @@
</div>
<div class="control">
<a class="button is-info">
Search
<span class="icon">
<i class="fas fa-filter"></i>
</span>
<span>Search</span>
</a>
</div>
</div>
Expand All @@ -104,15 +113,24 @@
<th>Public key (Hex)</th>
<th>Public key</th>
<th>Feed URL</th>
<th>View in clients</th>
</tr>
{{range .Entries}}
<tr>
<td><a href="https://www.nostr.guru/p/{{.PubKey}}" style="word-break: break-all;">{{.PubKey}}</a>
</td>
<td><a href="https://www.nostr.guru/{{.NPubKey}}" style="word-break: break-all;">{{.NPubKey}}</a>
<td><a href="nostr:{{.NPubKey}}" style="word-break: break-all;">{{.NPubKey}}</a>
</td>
<td><a href="{{.Url}}" style="word-break: break-all;">{{.Url}}</a>
</td>
<td>
<div class="buttons">
<a href="https://astral.ninja/{{.NPubKey}}" target="_blank" class="button is-small is-link is-light">View in astral.ninja</a>
<a href="https://iris.to/#/profile/{{.NPubKey}}" target="_blank" class="button is-small is-link is-light">View in iris.to</a>
<a href="https://snort.social/p/{{.NPubKey}}" target="_blank" class="button is-small is-link is-light">View in snort.social</a>
<a href="nostr:{{.NPubKey}}" target="_blank" class="button is-small is-link is-light">Open in default app</a>
</div>
</td>
</tr>
{{end}}
</tbody>
Expand Down

0 comments on commit 1068e45

Please sign in to comment.