diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-02 12:58:45 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-02 13:02:31 +0000 |
| commit | 6e1b4620d26051da4aec8b808c346d17bb1889df (patch) | |
| tree | 7ddbb876ddf200af15fa3cdd200a0a8efc395435 /templates | |
| parent | 59dbbf0f2986e8d969cc30b57d70f76984a272e3 (diff) | |
improve landing page copy and styles
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/landing.html | 236 |
1 files changed, 131 insertions, 105 deletions
diff --git a/templates/landing.html b/templates/landing.html index 84be8ad..bc7ee4f 100644 --- a/templates/landing.html +++ b/templates/landing.html | |||
| @@ -5,146 +5,172 @@ | |||
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | <title>{relay_name}</title> | 6 | <title>{relay_name}</title> |
| 7 | <style> | 7 | <style> |
| 8 | * {{ | 8 | {base_css} |
| 9 | margin: 0; | 9 | .container {{ |
| 10 | padding: 0; | 10 | max-width: 720px; |
| 11 | box-sizing: border-box; | 11 | margin: 0 auto; |
| 12 | }} | 12 | padding: 80px 24px; |
| 13 | body {{ | 13 | }} |
| 14 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif; | 14 | .header {{ |
| 15 | line-height: 1.6; | ||
| 16 | background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | ||
| 17 | color: #333; | ||
| 18 | min-height: 100vh; | ||
| 19 | display: flex; | 15 | display: flex; |
| 20 | align-items: center; | 16 | align-items: center; |
| 21 | justify-content: center; | 17 | gap: 16px; |
| 22 | padding: 20px; | 18 | margin-bottom: 24px; |
| 23 | }} | 19 | }} |
| 24 | .container {{ | 20 | .logo {{ |
| 25 | max-width: 800px; | 21 | width: 48px; |
| 26 | background: white; | 22 | height: 48px; |
| 27 | padding: 40px; | ||
| 28 | border-radius: 12px; | ||
| 29 | box-shadow: 0 20px 60px rgba(0,0,0,0.3); | ||
| 30 | }} | 23 | }} |
| 31 | h1 {{ | 24 | h1 {{ |
| 32 | color: #667eea; | 25 | font-size: 2rem; |
| 33 | margin-bottom: 10px; | 26 | font-weight: 600; |
| 34 | font-size: 2.5em; | 27 | letter-spacing: -0.02em; |
| 35 | }} | ||
| 36 | h2 {{ | ||
| 37 | color: #764ba2; | ||
| 38 | margin-top: 30px; | ||
| 39 | margin-bottom: 15px; | ||
| 40 | font-size: 1.5em; | ||
| 41 | border-bottom: 2px solid #667eea; | ||
| 42 | padding-bottom: 10px; | ||
| 43 | }} | 28 | }} |
| 44 | .subtitle {{ | 29 | .subtitle {{ |
| 45 | color: #666; | 30 | color: var(--text-muted); |
| 46 | margin-bottom: 30px; | 31 | font-size: 1.125rem; |
| 47 | font-size: 1.1em; | 32 | margin-bottom: 48px; |
| 48 | }} | 33 | }} |
| 49 | .info-grid {{ | 34 | .overview {{ |
| 50 | display: grid; | 35 | background: var(--surface); |
| 51 | grid-template-columns: 140px 1fr; | 36 | border: 1px solid var(--border); |
| 52 | gap: 15px; | 37 | border-radius: 12px; |
| 53 | margin: 20px 0; | 38 | padding: 24px; |
| 39 | margin-bottom: 48px; | ||
| 54 | }} | 40 | }} |
| 55 | .info-label {{ | 41 | .overview p {{ |
| 56 | font-weight: 600; | 42 | color: var(--text-muted); |
| 57 | color: #555; | 43 | font-size: 0.95rem; |
| 58 | }} | 44 | }} |
| 59 | .info-value {{ | 45 | .section {{ |
| 60 | color: #333; | 46 | margin-bottom: 40px; |
| 61 | }} | 47 | }} |
| 62 | code {{ | 48 | .section-title {{ |
| 63 | background: #f4f4f4; | 49 | font-size: 0.75rem; |
| 64 | padding: 3px 8px; | 50 | font-weight: 600; |
| 65 | border-radius: 4px; | 51 | text-transform: uppercase; |
| 66 | font-family: 'Courier New', monospace; | 52 | letter-spacing: 0.1em; |
| 67 | color: #667eea; | 53 | color: var(--brand); |
| 68 | font-size: 0.9em; | 54 | margin-bottom: 16px; |
| 69 | }} | 55 | }} |
| 70 | ul {{ | 56 | .card {{ |
| 71 | margin: 15px 0; | 57 | background: var(--surface); |
| 72 | padding-left: 30px; | 58 | border: 1px solid var(--border); |
| 59 | border-radius: 12px; | ||
| 60 | padding: 20px; | ||
| 73 | }} | 61 | }} |
| 74 | li {{ | 62 | .card + .card {{ |
| 75 | margin: 8px 0; | 63 | margin-top: 12px; |
| 76 | }} | 64 | }} |
| 77 | .feature-box {{ | 65 | .card-title {{ |
| 78 | background: #f9f9f9; | 66 | font-weight: 500; |
| 79 | padding: 20px; | 67 | margin-bottom: 4px; |
| 80 | border-radius: 8px; | ||
| 81 | margin: 15px 0; | ||
| 82 | border-left: 4px solid #667eea; | ||
| 83 | }} | 68 | }} |
| 84 | .footer {{ | 69 | .card-desc {{ |
| 85 | margin-top: 40px; | 70 | color: var(--text-muted); |
| 86 | padding-top: 20px; | 71 | font-size: 0.875rem; |
| 87 | border-top: 1px solid #eee; | ||
| 88 | text-align: center; | ||
| 89 | color: #999; | ||
| 90 | font-size: 0.9em; | ||
| 91 | }} | 72 | }} |
| 92 | .badge {{ | 73 | .badge {{ |
| 93 | display: inline-block; | 74 | display: inline-block; |
| 94 | background: #667eea; | 75 | background: var(--brand); |
| 95 | color: white; | 76 | color: white; |
| 96 | padding: 4px 12px; | 77 | padding: 2px 8px; |
| 97 | border-radius: 12px; | 78 | border-radius: 4px; |
| 98 | font-size: 0.85em; | 79 | font-size: 0.75rem; |
| 80 | font-weight: 500; | ||
| 99 | margin-right: 8px; | 81 | margin-right: 8px; |
| 100 | }} | 82 | }} |
| 83 | code {{ padding: 2px 8px; }} | ||
| 84 | .connection-grid {{ | ||
| 85 | display: grid; | ||
| 86 | gap: 12px; | ||
| 87 | }} | ||
| 88 | .connection-item {{ | ||
| 89 | display: flex; | ||
| 90 | justify-content: space-between; | ||
| 91 | align-items: center; | ||
| 92 | padding: 12px 16px; | ||
| 93 | background: var(--surface); | ||
| 94 | border: 1px solid var(--border); | ||
| 95 | border-radius: 8px; | ||
| 96 | }} | ||
| 97 | .connection-label {{ | ||
| 98 | font-size: 0.875rem; | ||
| 99 | color: var(--text-muted); | ||
| 100 | }} | ||
| 101 | .footer {{ margin-top: 64px; }} | ||
| 101 | </style> | 102 | </style> |
| 102 | </head> | 103 | </head> |
| 103 | <body> | 104 | <body> |
| 104 | <div class="container"> | 105 | <div class="container"> |
| 105 | <h1>{relay_name}</h1> | 106 | <div class="header"> |
| 107 | <svg class="logo" viewBox="0 0 38 38" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
| 108 | <rect width="38" height="38" rx="12" fill="#4434FF"/> | ||
| 109 | <path d="M10.6731 30.6348C8.83687 30.6346 7.34885 29.1458 7.34885 27.3096C7.34891 26.2473 7.84783 25.303 8.62326 24.6943C8.21265 23.3055 7.86571 22.049 7.45334 20.6758C6.90247 18.8412 7.4492 16.8197 8.93576 15.5605L15.7512 9.78906C15.6931 9.54286 15.6614 9.28642 15.6613 9.02246C15.6613 7.51617 16.6628 6.24465 18.0363 5.83594L18.0363 -1.11215e-06C18.511 0.000462658 18.4612 0.000975391 18.9856 0.000975533C19.5102 0.000975578 19.5802 -1.11589e-06 19.9367 -9.46012e-07L19.9367 5.83594C21.3097 6.24503 22.3108 7.5166 22.3108 9.02246C22.3107 9.29118 22.2792 9.55249 22.219 9.80273L29.0783 15.6123C30.5229 16.8359 31.1022 18.8013 30.5539 20.6133L29.3254 24.6758C30.1142 25.2837 30.6232 26.2367 30.6233 27.3096C30.6233 29.1459 29.1344 30.6348 27.2981 30.6348C25.4619 30.6346 23.9738 29.1458 23.9738 27.3096C23.974 25.4734 25.4619 23.9846 27.2981 23.9844C27.3814 23.9844 27.4643 23.9891 27.5461 23.9951L28.7356 20.0625C29.0645 18.9753 28.7166 17.7966 27.8498 17.0625L21.2424 11.4648C20.8746 11.8048 20.4294 12.0622 19.9367 12.209L19.9367 18.9258C21.0425 19.3175 21.836 20.3694 21.8362 21.6094C21.8362 23.1834 20.5596 24.46 18.9856 24.46C17.4117 24.4598 16.136 23.1833 16.136 21.6094C16.1361 20.3689 16.93 19.3172 18.0363 18.9258L18.0363 12.21C17.5395 12.0622 17.0916 11.801 16.7219 11.457L10.1643 17.0107C9.27919 17.7605 8.93068 18.9867 9.27365 20.1289C9.68708 21.5056 10.0175 22.7009 10.3986 23.998C10.4892 23.9906 10.5806 23.9844 10.6731 23.9844C12.5093 23.9844 13.9981 25.4733 13.9983 27.3096C13.9983 29.1459 12.5094 30.6348 10.6731 30.6348Z" fill="white"/> | ||
| 110 | </svg> | ||
| 111 | <h1>{relay_name}</h1> | ||
| 112 | </div> | ||
| 113 | |||
| 106 | <p class="subtitle">{relay_description}</p> | 114 | <p class="subtitle">{relay_description}</p> |
| 107 | 115 | ||
| 108 | <h2>📡 Connection Information</h2> | 116 | <div class="overview"> |
| 109 | <div class="info-grid"> | 117 | <p>Software: <a href="https://gitworkshop.dev/danconwaydev.com/ngit-grasp">ngit-grasp</a> |
| 110 | <div class="info-label">Domain:</div> | 118 | </p> |
| 111 | <div class="info-value"><code>{domain}</code></div> | 119 | <p>Git hosting distributed across relays using Nostr to authorise repo creation and git push operations. An implementation of the <a href="https://gitworkshop.dev/danconwaydev.com/grasp">Grasp Protocol</a>.</p> |
| 112 | |||
| 113 | <div class="info-label">WebSocket:</div> | ||
| 114 | <div class="info-value"><code>ws://{bind_address}/</code></div> | ||
| 115 | |||
| 116 | <div class="info-label">HTTP:</div> | ||
| 117 | <div class="info-value"><code>http://{bind_address}/</code></div> | ||
| 118 | </div> | 120 | </div> |
| 119 | 121 | ||
| 120 | <h2>🔌 Supported NIPs</h2> | 122 | <div> |
| 121 | <div class="feature-box"> | 123 | <a href="https://gitworkshop.dev/relay/{domain}">Browse Listed Repositories (using GitWorkshop.dev)</a> |
| 122 | <ul> | 124 | </div> |
| 123 | <li><span class="badge">NIP-01</span> Basic protocol flow and event structure</li> | 125 | |
| 124 | <li><span class="badge">NIP-11</span> Relay information document</li> | 126 | <div class="section"> |
| 125 | <li><span class="badge">NIP-34</span> Git repository events and announcements</li> | 127 | <div class="section-title">Connection</div> |
| 126 | </ul> | 128 | <div class="connection-grid"> |
| 129 | <div class="connection-item"> | ||
| 130 | <span class="connection-label">WebSocket</span> | ||
| 131 | <code>ws://{domain}/</code> | ||
| 132 | </div> | ||
| 133 | <div class="connection-item"> | ||
| 134 | <span class="connection-label">HTTP</span> | ||
| 135 | <code>http://{domain}/</code> | ||
| 136 | </div> | ||
| 137 | </div> | ||
| 127 | </div> | 138 | </div> |
| 128 | 139 | ||
| 129 | <h2>🎯 GRASP Features</h2> | 140 | <div class="section"> |
| 130 | <div class="feature-box"> | 141 | <div class="section-title">Supported GRASPs</div> |
| 131 | <ul> | 142 | <div class="card"> |
| 132 | <li><strong>Repository Announcements</strong> (kind 30617) - Declare Git repositories with validation</li> | 143 | <div class="card-title"><span class="badge">GRASP-01</span>Nostr Authorised HTTP Git Server</div> |
| 133 | <li><strong>Repository State</strong> (kind 30618) - Track repository state changes</li> | 144 | <div class="card-desc">with embedded Nostr Relay</div> |
| 134 | <li><strong>NIP-34 Validation</strong> - Automatic validation of repository events</li> | 145 | </div> |
| 135 | <li><strong>Git HTTP Backend</strong> - Coming soon in Phase 2</li> | ||
| 136 | </ul> | ||
| 137 | </div> | 146 | </div> |
| 138 | 147 | ||
| 139 | <h2>📚 Documentation</h2> | 148 | <div class="section"> |
| 140 | <p>For more information about GRASP (Git Relays Authorized via Signed-Nostr Proofs):</p> | 149 | <div class="section-title">Supported NIPs</div> |
| 141 | <ul> | 150 | <div class="card"> |
| 142 | <li><a href="https://gitworkshop.dev/danconwaydev.com/grasp/01.md" target="_blank">GRASP-01 Specification</a></li> | 151 | <div class="card-title"><span class="badge">NIP-01</span> Basic Protocol</div> |
| 143 | <li><a href="https://github.com/nostr-protocol/nips/blob/master/34.md" target="_blank">NIP-34: Git Stuff</a></li> | 152 | <div class="card-desc">Core Nostr protocol flow and event structure</div> |
| 144 | </ul> | 153 | </div> |
| 154 | <div class="card"> | ||
| 155 | <div class="card-title"><span class="badge">NIP-11</span> Relay Information</div> | ||
| 156 | <div class="card-desc">Relay metadata and capabilities document</div> | ||
| 157 | </div> | ||
| 158 | <div class="card"> | ||
| 159 | <div class="card-title"><span class="badge">NIP-34</span> Git Events</div> | ||
| 160 | <div class="card-desc">Repository announcements and state tracking</div> | ||
| 161 | </div> | ||
| 162 | </div> | ||
| 163 | |||
| 164 | <div class="section"> | ||
| 165 | <div class="section-title">Documentation</div> | ||
| 166 | <div class="card"> | ||
| 167 | <p style="margin-bottom: 12px;"><a href="https://gitworkshop.dev/r/naddr1qvzqqqrhnypzqfngzhsvjggdlgeycm96x4emzjlwf8dyyzdfg4hefp89zpkdgz99qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qghwaehxw309aex2mrp0yhxummnw3ezucnpdejz7q3ql2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqxpqqqqqqz6pwefu" target="_blank">GRASP Specification</a></p> | ||
| 168 | <p><a href="https://github.com/nostr-protocol/nips/blob/master/34.md" target="_blank">NIP-34: Git Stuff</a></p> | ||
| 169 | </div> | ||
| 170 | </div> | ||
| 145 | 171 | ||
| 146 | <div class="footer"> | 172 | <div class="footer"> |
| 147 | <p>Powered by <strong>ngit-grasp</strong> with <strong>nostr-relay-builder</strong></p> | 173 | Powered by <strong>ngit-grasp</strong> |
| 148 | </div> | 174 | </div> |
| 149 | </div> | 175 | </div> |
| 150 | </body> | 176 | </body> |