This repository has been archived by the owner on Dec 17, 2023. It is now read-only.
forked from plantimals/rsslay
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: links to clients to view profiles (related #8)
- Loading branch information
Showing
3 changed files
with
56 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
||
|
@@ -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"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
|
||
|
@@ -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> | ||
|
@@ -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> | ||
|
@@ -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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
|
||
|
@@ -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> | ||
|
@@ -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> | ||
|
@@ -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> | ||
|