upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-12-03 16:15:55 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-03 16:15:55 +0000
commitdd1b44132199aa72c2b699e1160fbe6b885f0ef6 (patch)
treea4f3ea50770f8ef22d5f5140e79bbfddec563b0d /templates
parent2591dbf7498e2300a42928ac9fbec454732e66f0 (diff)
landing page: display relay inforamtion document
Diffstat (limited to 'templates')
-rw-r--r--templates/landing.html59
1 files changed, 56 insertions, 3 deletions
diff --git a/templates/landing.html b/templates/landing.html
index 6dc2833..41bb1e5 100644
--- a/templates/landing.html
+++ b/templates/landing.html
@@ -27,9 +27,13 @@
27 gap: 16px; 27 gap: 16px;
28 margin-bottom: 24px; 28 margin-bottom: 24px;
29 }} 29 }}
30 .logo {{ 30 .relay-icon {{
31 width: 48px; 31 width: 48px;
32 height: 48px; 32 height: 48px;
33 max-width: 48px;
34 max-height: 48px;
35 object-fit: contain;
36 border-radius: 8px;
33 }} 37 }}
34 h1 {{ 38 h1 {{
35 font-size: 2rem; 39 font-size: 2rem;
@@ -123,6 +127,9 @@
123 font-weight: 500; 127 font-weight: 500;
124 margin-right: 8px; 128 margin-right: 8px;
125 }} 129 }}
130 .badge-nip {{
131 background: var(--success);
132 }}
126 code {{ padding: 2px 8px; }} 133 code {{ padding: 2px 8px; }}
127 .tag-container {{ 134 .tag-container {{
128 margin: 16px 0; 135 margin: 16px 0;
@@ -169,6 +176,37 @@
169 background: var(--brand-light); 176 background: var(--brand-light);
170 text-decoration: none; 177 text-decoration: none;
171 }} 178 }}
179 /* Relay Information Document table styles */
180 .info-table {{
181 width: 100%;
182 border-collapse: collapse;
183 font-size: 0.875rem;
184 }}
185 .info-table th {{
186 text-align: left;
187 padding: 8px 12px;
188 color: var(--text-muted);
189 font-weight: 500;
190 width: 140px;
191 vertical-align: top;
192 border-bottom: 1px solid var(--border);
193 }}
194 .info-table td {{
195 padding: 8px 12px;
196 color: var(--text);
197 border-bottom: 1px solid var(--border);
198 word-break: break-all;
199 }}
200 .info-table tr:last-child th,
201 .info-table tr:last-child td {{
202 border-bottom: none;
203 }}
204 .info-table a {{
205 color: var(--brand-light);
206 }}
207 .info-table code {{
208 font-size: 0.75rem;
209 }}
172 .footer {{ margin-top: 64px; }} 210 .footer {{ margin-top: 64px; }}
173 .footer-separator {{ margin: 0 0.5em; opacity: 0.5; }} 211 .footer-separator {{ margin: 0 0.5em; opacity: 0.5; }}
174 </style> 212 </style>
@@ -178,6 +216,7 @@
178 <header class="hero"> 216 <header class="hero">
179 <div class="hero-content"> 217 <div class="hero-content">
180 <div class="header"> 218 <div class="header">
219 {relay_icon}
181 <h1>{relay_name}</h1> 220 <h1>{relay_name}</h1>
182 </div> 221 </div>
183 222
@@ -187,11 +226,16 @@
187 Browse Repositories on GitWorkshop.dev &rarr; 226 Browse Repositories on GitWorkshop.dev &rarr;
188 </a> 227 </a>
189 228
190 <div class="tag-container" style="margin-bottom: 12px;"> 229 <div class="tag-container" style="margin-bottom: 8px;">
191 <span class="tag-label">Curation:</span> 230 <span class="tag-label">Curation:</span>
192 <span class="tag-label">{curation}</span> 231 <span class="tag-label">{curation}</span>
193 </div> 232 </div>
194 233
234 <div class="tag-container" style="margin-bottom: 12px;">
235 <span class="tag-label">Repo Acceptance Criteria:</span>
236 <span class="tag-label" style="max-width: 600px; text-align: center;">{repo_acceptance_criteria}</span>
237 </div>
238
195 <div class="tag-container" style="margin-top: 12px;"> 239 <div class="tag-container" style="margin-top: 12px;">
196 <span class="tag-label">Supports:</span> 240 <span class="tag-label">Supports:</span>
197 {hero_tags} 241 {hero_tags}
@@ -205,7 +249,7 @@
205 <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"/> 249 <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"/>
206 </svg> 250 </svg>
207 <div class="software-content"> 251 <div class="software-content">
208 <h3 class="software-heading"><a href="https://gitworkshop.dev/danconwaydev.com/ngit-grasp">Grasp Server</a> Powered by <a href="https://gitworkshop.dev/danconwaydev.com/ngit-grasp">ngit-grasp</a></h3> 252 <h3 class="software-heading"><a href="https://gitworkshop.dev/danconwaydev.com/ngit-grasp">Grasp Server</a> Powered by <a href="https://gitworkshop.dev/danconwaydev.com/ngit-grasp">ngit-grasp</a> ({nip11_version})</h3>
209 <p class="software-desc">Git hosting distributed across relays using Nostr for authorization. <a href="https://ngit.dev/grasp">Find out more...</a></p> 253 <p class="software-desc">Git hosting distributed across relays using Nostr for authorization. <a href="https://ngit.dev/grasp">Find out more...</a></p>
210 </div> 254 </div>
211 </div> 255 </div>
@@ -234,6 +278,15 @@
234 {nip_cards} 278 {nip_cards}
235 </div> 279 </div>
236 280
281 <div class="section">
282 <div class="section-title">Relay Information Document</div>
283 <div class="card">
284 <table class="info-table">
285 {relay_info_rows}
286 </table>
287 </div>
288 </div>
289
237 <div class="footer"> 290 <div class="footer">
238 <span id="footer-domain"></span><span class="footer-separator">•</span>powered by <a href="https://gitworkshop.dev/danconwaydev.com/ngit-grasp"><strong>ngit-grasp</strong></a><span class="footer-separator">•</span>{version}<span class="footer-separator">•</span>MIT Licensed 291 <span id="footer-domain"></span><span class="footer-separator">•</span>powered by <a href="https://gitworkshop.dev/danconwaydev.com/ngit-grasp"><strong>ngit-grasp</strong></a><span class="footer-separator">•</span>{version}<span class="footer-separator">•</span>MIT Licensed
239 </div> 292 </div>