A vibe coded tangled fork which supports pijul.
at 9d516aae9da3104ed3194b178aaf66a6c7e4876f 530 lines 26 kB view raw
1{{ define "title" }}tangled &middot; tightly-knit social coding{{ end }} 2 3{{ define "extrameta" }} 4 <!-- Open Graph Meta Tags --> 5 <meta property="og:title" content="tangled · tightly-knit social coding" /> 6 <meta property="og:type" content="website" /> 7 <meta property="og:url" content="https://tangled.org" /> 8 <meta property="og:description" content="The next-generation social coding platform." /> 9 <meta property="og:image" content="https://assets.tangled.network/tangled_og.png" /> 10 <meta property="og:image:width" content="1200" /> 11 <meta property="og:image:height" content="630" /> 12 13 <!-- Twitter Card Meta Tags --> 14 <meta name="twitter:card" content="summary_large_image" /> 15 <meta name="twitter:title" content="Tangled" /> 16 <meta name="twitter:description" content="The next-generation social coding platform." /> 17 <meta name="twitter:image" content="https://assets.tangled.network/tangled_og.png" /> 18 19 <!-- Additional SEO --> 20 <meta name="description" content="The next-generation social coding platform. Host repos on your infrastructure with knots, use stacked pull requests, and run CI with spindles." /> 21 <link rel="canonical" href="https://tangled.org" /> 22{{ end }} 23 24 25{{ define "content" }} 26 <div class="flex flex-col gap-20 md:gap-40 my-20 md:my-32"> 27 {{ template "timeline/fragments/hero" . }} 28 {{ template "timeline/fragments/preview" . }} 29 {{ template "features1" . }} 30 {{ template "features2" . }} 31 {{ template "recentUpdates" . }} 32 {{ template "community" . }} 33 </div> 34{{ end }} 35 36{{ block "topbarLayout" . }} 37 <header class="max-w-screen-xl mx-auto w-full col-span-full md:col-span-1 md:col-start-2" style="z-index: 20;"> 38 {{ if .LoggedInUser }} 39 <div id="upgrade-banner" 40 hx-get="/upgradeBanner" 41 hx-trigger="load" 42 hx-swap="innerHTML"> 43 </div> 44 {{ end }} 45 {{ template "layouts/fragments/topbar" . }} 46 </header> 47{{ end }} 48 49{{ block "footerLayout" . }} 50 <footer class="z-10"> 51 {{ template "layouts/fragments/footer" . }} 52 </footer> 53{{ end }} 54 55{{ block "bodyClasses" . }} 56 bg-transparent bg-gradient-to-b from-white to-slate-100 dark:bg-none dark:bg-gray-900 57{{ end }} 58 59{{ block "mainLayout" . }} 60 <div class="flex-grow relative"> 61 <div 62 class="absolute opacity-50 dark:opacity-5 inset-x-0 top-0 bottom-[-50px] md:bottom-[-150px] pointer-events-none bg-[url('https://assets.tangled.network/yarn_ball.svg')] bg-no-repeat bg-right-bottom w-full"> 63 </div> 64 <div class="max-w-screen-xl mx-auto flex flex-col gap-4 relative z-10"> 65 {{ block "contentLayout" . }} 66 <main> 67 {{ block "content" . }}{{ end }} 68 </main> 69 {{ end }} 70 71 {{ block "contentAfterLayout" . }} 72 <main> 73 {{ block "contentAfter" . }}{{ end }} 74 </main> 75 {{ end }} 76 </div> 77 </div> 78{{ end }} 79 80{{ define "features1" }} 81 {{ $labelStyle := "normal-case cursor-pointer w-auto md:w-full p-4 md:px-6 rounded bg-white dark:bg-gray-800 font-medium text-base md:text-lg opacity-50 border border-gray-200 dark:border-gray-700 relative overflow-hidden" }} 82 {{ $spanStyle := "z-10 items-center justify-between gap-2 w-full" }} 83 {{ $connectorStyle := "w-0.5 h-6 bg-gray-300 dark:bg-gray-600 opacity-0 mx-auto" }} 84 {{ $contentStyle := "hidden bg-white dark:bg-gray-800 rounded shadow-sm border border-gray-200 dark:border-gray-700 grid-cols-1 animate-fadein" }} 85 {{ $progressOverlayStyle := "absolute inset-0 bg-gray-600/10 dark:bg-gray-100/10 w-0 transition-none" }} 86 87 <style> 88 @media (max-width: 768px) { 89 .features-grid:has(#feature-prs:checked) { 90 grid-template-columns: 1fr auto auto; 91 } 92 93 .features-grid:has(#feature-knots:checked) { 94 grid-template-columns: auto 1fr auto; 95 } 96 97 .features-grid:has(#feature-spindles:checked) { 98 grid-template-columns: auto auto 1fr; 99 } 100 101 #feature-prs:checked ~ label[for="feature-prs"] .label-text, 102 #feature-knots:checked ~ label[for="feature-knots"] .label-text, 103 #feature-spindles:checked ~ label[for="feature-spindles"] .label-text { 104 display: inline-flex !important; 105 } 106 #feature-prs:checked ~ label[for="feature-prs"] .icon-only, 107 #feature-knots:checked ~ label[for="feature-knots"] .icon-only, 108 #feature-spindles:checked ~ label[for="feature-spindles"] .icon-only { 109 display: none !important; 110 } 111 } 112 </style> 113 114 <div class="features-grid w-full grid grid-cols-3 gap-x-6 px-2"> 115 <input type="radio" id="feature-prs" name="feature" class="peer/prs hidden" checked /> 116 <input type="radio" id="feature-knots" name="feature" class="peer/knots hidden" /> 117 <input type="radio" id="feature-spindles" name="feature" class="peer/spindles hidden" /> 118 119 <label for="feature-prs" class="{{ $labelStyle }} peer-checked/prs:opacity-100 peer-checked/prs:shadow-sm"> 120 <span class="label-text hidden md:inline-flex {{ $spanStyle }}">A better way to review {{ i "git-pull-request" "size-5" }}</span> 121 <span class="icon-only inline-flex md:hidden {{ $spanStyle }}">{{ i "git-pull-request" "size-5" }}</span> 122 <div class="{{ $progressOverlayStyle }}" data-progress="prs"></div> 123 </label> 124 125 <label for="feature-knots" class="{{ $labelStyle }} peer-checked/knots:opacity-100 peer-checked/knots:shadow-sm"> 126 <span class="label-text hidden md:inline-flex {{ $spanStyle }}">Completely self-hostable {{ i "hard-drive" "size-5" }}</span> 127 <span class="icon-only inline-flex md:hidden {{ $spanStyle }}">{{ i "hard-drive" "size-5" }}</span> 128 <div class="{{ $progressOverlayStyle }}" data-progress="knots"></div> 129 </label> 130 131 <label for="feature-spindles" class="{{ $labelStyle }} peer-checked/spindles:opacity-100 peer-checked/spindles:shadow-sm"> 132 <span class="label-text hidden md:inline-flex {{ $spanStyle }}">Quick and easy CI {{ i "layers-2" "size-5" }}</span> 133 <span class="icon-only inline-flex md:hidden {{ $spanStyle }}">{{ i "layers-2" "size-5" }}</span> 134 <div class="{{ $progressOverlayStyle }}" data-progress="spindles"></div> 135 </label> 136 137 <div class="{{ $connectorStyle }} peer-checked/prs:opacity-100"></div> 138 <div class="{{ $connectorStyle }} peer-checked/knots:opacity-100"></div> 139 <div class="{{ $connectorStyle }} peer-checked/spindles:opacity-100"></div> 140 141 {{ $titleStyle := "text-2xl md:text-6xl my-2 md:mb-4 text-black dark:text-white font-medium" }} 142 {{ $textContentStyle := "p-4 md:p-6 md:text-xl" }} 143 {{ $imgContentStyle := "w-full overflow-hidden place-content-center bg-gradient-to-b from-slate-50 to-slate-100 dark:from-gray-800 dark:to-gray-900 border-t border-gray-200 dark:border-gray-700" }} 144 {{ $linkDesktopStyle := "hover:no-underline items-center gap-2 p-3 text-base btn" }} 145 146 <div class="col-span-3 {{ $contentStyle }} peer-checked/prs:grid"> 147 <div class="{{ $textContentStyle }} flex gap-4 md:gap-8"> 148 <section class="space-y-4"> 149 <h1 class="{{ $titleStyle }}">Pull requests, reimagined</h1> 150 <p class="text-gray-600 dark:text-gray-400"> 151 Break down large features into small, reviewable chunks. Stack pull 152 requests on top of each other and ship faster with round-based code 153 reviews. Tangled natively supports stacking using Jujutsu. 154 </p> 155 <a href="https://blog.tangled.org/stacking" class="hover:no-underline inline-flex items-center gap-2 text-sm md:text-base text-black dark:text-white font-medium"> 156 Learn more 157 {{ i "arrow-right" "size-4" }} 158 </a> 159 </section> 160 <div class="w-fit hidden md:flex items-center"> 161 <div class="size-32 rounded-full flex items-center justify-center bg-yellow-100 dark:bg-yellow-900 -mr-4" > 162 {{ i "wand-sparkles" "size-16 text-yellow-500 dark:text-yellow-500" }} 163 </div> 164 <div class="size-40 rounded-full flex items-center justify-center bg-green-100 dark:bg-green-900 z-10"> 165 {{ i "git-pull-request-arrow" "size-24 text-green-500 dark:text-green-500 rotate-12" }} 166 </div> 167 </div> 168 </div> 169 <div class="{{ $imgContentStyle }} relative overflow-hidden flex items-center justify-center"> 170 <div class="w-[120%] md:w-full flex"> 171 <picture class="w-full"> 172 <source srcset="https://assets.tangled.network/home-page-prs-dark.svg" media="(prefers-color-scheme: dark)" /> 173 <img src="https://assets.tangled.network/home-page-prs-light.svg" class="w-full block" /> 174 </picture> 175 </div> 176 </div> 177 </div> 178 179 <div class="col-span-3 {{ $contentStyle }} peer-checked/knots:grid"> 180 <div class="{{ $textContentStyle }} flex place-content-between gap-4 md:gap-8"> 181 <section class="space-y-4"> 182 <h1 class="{{ $titleStyle }}">Run it at home</h1> 183 <p class="text-gray-600 dark:text-gray-400"> 184 Host your repositories on your own infrastructure with <a href="https://docs.tangled.org/knot-self-hosting-guide.html#knot-self-hosting-guide" class="no-underline">knots</a>. 185 Run CI on your own machines with <a href="https://docs.tangled.org/spindles.html#self-hosting-guide" class="no-underline">spindles</a>. 186 <br> 187 Don't want to self-host? All are welcome on our hosted instances. 188 </p> 189 <a href="https://docs.tangled.org/knot-self-hosting-guide.html#knot-self-hosting-guide" class="hover:no-underline inline-flex items-center gap-2 text-sm md:text-base text-black dark:text-white font-medium"> 190 Learn more 191 {{ i "arrow-right" "size-4" }} 192 </a> 193 </section> 194 <div class="w-fit hidden md:flex items-center"> 195 <div class="size-32 rounded-full flex items-center justify-center bg-blue-100 dark:bg-blue-900 -mr-4" > 196 {{ i "workflow" "size-16 text-blue-500 dark:text-blue-500" }} 197 </div> 198 <div class="size-40 rounded-full flex items-center justify-center bg-yellow-100 dark:bg-yellow-900 z-10"> 199 {{ i "server" "size-24 text-yellow-500 dark:text-yellow-500" }} 200 </div> 201 </div> 202 </div> 203 <div class="{{ $imgContentStyle }} relative overflow-hidden flex items-center justify-center"> 204 <div class="w-[120%] md:w-full flex"> 205 <picture class="w-full"> 206 <source srcset="https://assets.tangled.network/home-page-self-host-dark.svg" media="(prefers-color-scheme: dark)" /> 207 <img src="https://assets.tangled.network/home-page-self-host-light.svg" class="w-full block" /> 208 </picture> 209 </div> 210 </div> 211 </div> 212 213 <div class="col-span-3 {{ $contentStyle }} peer-checked/spindles:grid"> 214 <div class="{{ $textContentStyle }} flex place-content-between gap-4 md:gap-8"> 215 <section class="space-y-4"> 216 <h1 class="{{ $titleStyle }}">Nix-powered CI</h1> 217 <p class="text-gray-600 dark:text-gray-400"> 218 Pick and choose dependencies for your CI pipelines from <a 219 href="https://docs.tangled.org/spindles.html#dependencies" 220 class="no-underline"><code>nixpkgs</code></a>, one of the biggest 221 package repositories. 222 <br> 223 Support for Docker and MicroVM based runners coming soon! 224 </p> 225 <a href="https://docs.tangled.org/spindles.html#pipelines" class="hover:no-underline inline-flex items-center gap-2 text-sm md:text-base text-black dark:text-white font-medium"> 226 Learn more 227 {{ i "arrow-right" "size-4" }} 228 </a> 229 </section> 230 <div class="w-fit hidden md:flex items-center"> 231 <div class="size-32 rounded-full flex items-center justify-center bg-green-100 dark:bg-green-900 -mr-4" > 232 {{ i "package" "size-16 text-green-500 dark:text-green-500" }} 233 </div> 234 <div class="size-40 rounded-full flex items-center justify-center bg-indigo-100 dark:bg-indigo-900 z-10"> 235 {{ i "snowflake" "size-24 text-indigo-500 dark:text-indigo-500 rotate-12" }} 236 </div> 237 </div> 238 </div> 239 <div class="{{ $imgContentStyle }} flex items-end justify-center pb-0 overflow-hidden"> 240 <div class="w-[120%] md:w-full flex"> 241 <picture class="w-full"> 242 <source srcset="https://assets.tangled.network/home-page-ci-dark.svg" media="(prefers-color-scheme: dark)" /> 243 <img src="https://assets.tangled.network/home-page-ci-light.svg" class="w-full block" /> 244 </picture> 245 </div> 246 </div> 247 </div> 248 </div> 249 250 <script> 251 document.addEventListener('DOMContentLoaded', function() { 252 const featureIds = ['feature-prs', 'feature-knots', 'feature-spindles']; 253 const progressNames = ['prs', 'knots', 'spindles']; 254 let currentIndex = 0; 255 let timerInterval = null; 256 257 function stopTimer() { 258 if (timerInterval) { 259 clearInterval(timerInterval); 260 timerInterval = null; 261 } 262 document.querySelectorAll('[data-progress]').forEach(el => { 263 el.classList.remove('animate-progress'); 264 }); 265 } 266 267 const firstProgress = document.querySelector('[data-progress="prs"]'); 268 if (firstProgress) { 269 firstProgress.classList.add('animate-progress'); 270 } 271 272 document.querySelectorAll('label[for^="feature-"]').forEach(label => { 273 label.addEventListener('click', stopTimer); 274 }); 275 276 timerInterval = setInterval(function() { 277 document.querySelectorAll('[data-progress]').forEach(el => { 278 el.classList.remove('animate-progress'); 279 void el.offsetWidth; // force reflow 280 }); 281 282 currentIndex = (currentIndex + 1) % featureIds.length; 283 document.getElementById(featureIds[currentIndex]).checked = true; 284 285 const activeProgress = document.querySelector('[data-progress="' + progressNames[currentIndex] + '"]'); 286 if (activeProgress) { 287 activeProgress.classList.add('animate-progress'); 288 } 289 }, 10000); 290 }); 291 </script> 292{{ end }} 293 294{{ define "features2" }} 295 {{ $cardStyle := "bg-white dark:bg-gray-800 rounded shadow-sm border border-gray-200 dark:border-gray-700" }} 296 {{ $cardInnerStyle := "flex flex-row items-center gap-4 md:gap-6 p-4 md:p-6 md:pt-8 relative" }} 297 {{ $contentStyle := "flex-1 flex flex-col" }} 298 {{ $titleStyle := "text-xl md:text-2xl font-bold mb-2 md:mb-3 text-gray-900 dark:text-gray-100" }} 299 {{ $descriptionStyle := "text-gray-600 dark:text-gray-300 text-sm md:text-base leading-relaxed mb-5 md:mb-0" }} 300 {{ $linkMobileStyle := "hover:no-underline inline-flex md:hidden items-center gap-2 text-sm text-black dark:text-white font-medium" }} 301 {{ $iconContainerStyle := "relative shrink-0 w-24 h-24 md:w-48 md:h-48" }} 302 {{ $iconCircleStyle := "rounded-full flex items-center justify-center border border-gray-200 dark:border-gray-700" }} 303 {{ $linkDesktopStyle := "hover:no-underline hidden md:inline-flex absolute -bottom-10 -right-14 items-center gap-2 p-3 text-base btn" }} 304 305 <div class="w-full flex flex-col gap-6 md:gap-40 max-w-5xl mx-auto px-2"> 306 <div class="{{ $cardStyle }} md:mr-32"> 307 <div class="{{ $cardInnerStyle }}"> 308 {{ $moreLink := "https://docs.tangled.org/quick-start-guide.html#login-or-sign-up" }} 309 <div class="{{ $contentStyle }}"> 310 <h3 class="{{ $titleStyle }}">Built on AT Protocol</h3> 311 <p class="{{ $descriptionStyle }}"> 312 <a class="underline" href="https://atproto.com/">AT Protocol</a> enables federated code-collaboration. Submit 313 pull-requests or bug-reports to any repository hosted on any 314 server. 315 <br> 316 <br> 317 Bring an existing AT Protocol account (such as your Bluesky 318 account), or signup for one with us. 319 </p> 320 <a href="{{ $moreLink }}" class="{{ $linkMobileStyle }}"> 321 Learn more 322 {{ i "arrow-right" "size-4" }} 323 </a> 324 </div> 325 <div class="{{ $iconContainerStyle }}"> 326 <div class="{{ $iconCircleStyle }} w-full h-full bg-blue-100 dark:bg-blue-900/50"> 327 {{ i "at-sign" "size-12 md:size-24" "text-blue-500 dark:text-blue-500" "rotate-12" }} 328 </div> 329 <div class="{{ $iconCircleStyle }} absolute -top-2 -left-2 w-10 h-10 md:w-16 md:h-16 rounded-full bg-white dark:bg-gray-800 -rotate-12"> 330 {{ i "globe" "size-4 md:size-8" "text-blue-500 dark:text-blue-500" }} 331 </div> 332 <a href="{{ $moreLink }}" class="{{ $linkDesktopStyle }}"> 333 Learn more 334 {{ i "arrow-right" "size-4" }} 335 </a> 336 </div> 337 </div> 338 </div> 339 340 <div class="{{ $cardStyle }} md:ml-32"> 341 <div class="{{ $cardInnerStyle }}"> 342 {{ $moreLink := "https://tangled.org/core" }} 343 <div class="{{ $contentStyle }}"> 344 <h3 class="{{ $titleStyle }}">Free and open source</h3> 345 <p class="{{ $descriptionStyle }}"> 346 All of Tangled is open source and built with the community! 347 Check out the <a class="underline" href="https://tangled.org/core">monorepo</a> and join in on the fun. 348 <br> 349 <br> 350 We welcome contributions however big or small. You can start contributing by picking up a 351 <a class="underline" href="https://tangled.org/tangled.org/core/issues">good-first-issue</a>. 352 </p> 353 <a href="{{ $moreLink }}" class="{{ $linkMobileStyle }}"> 354 View source 355 {{ i "arrow-right" "size-4" }} 356 </a> 357 </div> 358 <div class="{{ $iconContainerStyle }}"> 359 <div class="{{ $iconCircleStyle }} w-full h-full bg-green-100 dark:bg-green-900/50"> 360 {{ i "package-open" "size-12 md:size-24" "text-green-500 dark:text-green-500" "-rotate-12" }} 361 </div> 362 <div class="absolute -top-2 -left-2 w-10 h-10 md:w-16 md:h-16 rounded-full bg-white dark:bg-gray-800 flex items-center justify-center border border-gray-200 dark:border-gray-700 rotate-12"> 363 {{ i "heart" "size-4 md:size-8" "text-green-500 dark:text-green-500" }} 364 </div> 365 <a href="{{ $moreLink }}" class="{{ $linkDesktopStyle }}"> 366 View source 367 {{ i "arrow-right" "size-4" }} 368 </a> 369 </div> 370 </div> 371 </div> 372 373 <div class="{{ $cardStyle }} md:mr-32"> 374 <div class="{{ $cardInnerStyle }}"> 375 {{ $moreLink := "/timeline" }} 376 <div class="{{ $contentStyle }}"> 377 <h3 class="{{ $titleStyle }}">Social coding is back</h3> 378 <p class="{{ $descriptionStyle }}"> 379 Discover trending projects, follow your friends and star your favourite repositories. Coding is better together! 380 </p> 381 <a href="{{ $moreLink }}" class="{{ $linkMobileStyle }}"> 382 Explore timeline 383 {{ i "arrow-right" "size-4" }} 384 </a> 385 </div> 386 <div class="{{ $iconContainerStyle }}"> 387 <div class="{{ $iconCircleStyle }} w-full h-full bg-amber-100 dark:bg-amber-900/50"> 388 {{ i "message-circle-heart" "size-12 md:size-24" "text-amber-500 dark:text-amber-500" "rotate-12" }} 389 </div> 390 <div class="absolute -top-2 -left-2 w-10 h-10 md:w-16 md:h-16 rounded-full bg-white dark:bg-gray-800 flex items-center justify-center border border-gray-200 dark:border-gray-700 -rotate-12"> 391 {{ i "users" "size-4 md:size-8" "text-amber-500 dark:text-amber-500" }} 392 </div> 393 <a href="{{ $moreLink }}" class="{{ $linkDesktopStyle }}"> 394 Explore timeline 395 {{ i "arrow-right" "size-4" }} 396 </a> 397 </div> 398 </div> 399 </div> 400 </div> 401{{ end }} 402 403{{ define "changelog" }} 404 <div class="w-full px-2 py-16 md:py-24"> 405 <h2 class="text-3xl md:text-4xl font-bold mb-8 text-gray-900 dark:text-gray-100">Changelog</h2> 406 407 <div class="grid grid-cols-1 gap-6 mb-6"> 408 {{ range $index := list 0 1 2 3 }} 409 <div class="bg-white dark:bg-gray-800 rounded shadow-sm border border-gray-200 dark:border-gray-700 p-6"> 410 <div class="flex items-center gap-2 mb-3"> 411 <span class="text-xs font-medium text-gray-500 dark:text-gray-400">v1.{{ sub 3 $index }}.0</span> 412 <span class="text-xs text-gray-400 dark:text-gray-500"></span> 413 <span class="text-xs text-gray-500 dark:text-gray-400">Feb {{ sub 16 $index }}, 2026</span> 414 </div> 415 <h3 class="text-lg font-semibold mb-2 text-gray-900 dark:text-gray-100">Feature Update {{ sub 4 $index }}</h3> 416 <p class="text-sm text-gray-600 dark:text-gray-300 leading-relaxed"> 417 Improvements to the platform including bug fixes, performance enhancements, and new features. 418 </p> 419 </div> 420 {{ end }} 421 </div> 422 423 <div class="flex justify-end"> 424 <a href="/changelog" class="hover:no-underline inline-flex items-center gap-2 px-4 py-2 text-base btn"> 425 View full changelog 426 {{ i "arrow-right" "size-4" }} 427 </a> 428 </div> 429 </div> 430{{ end }} 431 432{{ define "recentUpdates" }} 433 <div class="w-full px-2 py-16 md:py-24"> 434 <h2 class="px-4 text-3xl md:text-4xl font-bold text-gray-900 dark:text-gray-100 mb-2">Recent updates</h2> 435 <p class="px-4 mb-8 text-gray-500 dark:text-gray-400"> 436 Follow <a href="https://bsky.app/profile/tangled.org">@tangled.org</a> on Bluesky for more! 437 </p> 438 <div class="columns-1 md:columns-2 lg:columns-3 gap-6"> 439 {{ range $index, $post := .BlueskyPosts }} 440 <div class="{{ if ge $index 3 }}hidden md:block{{ end }}"> 441 {{ template "post" $post }} 442 </div> 443 {{ end }} 444 </div> 445 </div> 446{{ end }} 447 448{{ define "post" }} 449 <div class="bg-white dark:bg-gray-800 rounded shadow-sm border border-gray-200 dark:border-gray-700 px-6 py-4 flex flex-col gap-2 break-inside-avoid mb-6"> 450 <div class="flex items-center justify-between text-sm text-gray-500 dark:text-gray-400"> 451 <span class="flex items-center gap-2"> 452 {{ template "user/fragments/picHandle" "tangled.org" }} 453 </span> 454 <span>{{ template "repo/fragments/shortTimeAgo" .CreatedAt }}</span> 455 </div> 456 <p class="text-gray-900 dark:text-gray-100 text-base leading-relaxed whitespace-pre-wrap">{{ .Text }}</p> 457 458 {{ if .Embed }} 459 {{ if .Embed.EmbedImages_View }} 460 <div class="grid {{ if eq (len .Embed.EmbedImages_View.Images) 1 }}grid-cols-1{{ else if eq (len .Embed.EmbedImages_View.Images) 2 }}grid-cols-2{{ else }}grid-cols-2{{ end }} gap-2"> 461 {{ range .Embed.EmbedImages_View.Images }} 462 <img src="{{ .Fullsize }}" alt="{{ .Alt }}" class="rounded w-full h-auto object-cover border border-gray-200 dark:border-gray-700" loading="lazy" /> 463 {{ end }} 464 </div> 465 {{ else if .Embed.EmbedExternal_View }} 466 <a href="{{ .Embed.EmbedExternal_View.External.Uri }}" target="_blank" rel="noopener noreferrer" class="hover:no-underline block border border-gray-200 dark:border-gray-700 rounded overflow-hidden hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors"> 467 {{ if .Embed.EmbedExternal_View.External.Thumb }} 468 <img src="{{ .Embed.EmbedExternal_View.External.Thumb }}" alt="" class="w-full h-48 object-cover" loading="lazy" /> 469 {{ end }} 470 <div class="p-3"> 471 <div class="font-medium text-gray-900 dark:text-gray-100 text-sm mb-1">{{ .Embed.EmbedExternal_View.External.Title }}</div> 472 <div class="text-xs text-gray-600 dark:text-gray-400 line-clamp-2">{{ .Embed.EmbedExternal_View.External.Description }}</div> 473 <div class="text-xs text-gray-500 dark:text-gray-500 mt-1">{{ .Embed.EmbedExternal_View.External.Uri }}</div> 474 </div> 475 </a> 476 {{ else if .Embed.EmbedVideo_View }} 477 <div class="rounded overflow-hidden bg-gray-100 dark:bg-gray-700 aspect-video flex items-center justify-center"> 478 <span class="text-gray-500 dark:text-gray-400 text-sm">Video embed</span> 479 </div> 480 {{ end }} 481 {{ end }} 482 483 <a href="https://bsky.app/profile/tangled.org/post/{{ .Rkey }}" 484 target="_blank" 485 rel="noopener noreferrer" 486 class="flex items-center justify-between gap-4 text-sm text-gray-500 dark:text-gray-400 pt-2 no-underline hover:no-underline"> 487 <div class="flex items-center gap-4"> 488 <div class="flex items-center gap-1"> 489 {{ i "heart" "size-4" }} 490 <span>{{ .LikeCount }}</span> 491 </div> 492 <div class="flex items-center gap-1"> 493 {{ i "repeat-2" "size-4" }} 494 <span>{{ .RepostCount }}</span> 495 </div> 496 <div class="flex items-center gap-1"> 497 {{ i "message-square" "size-4 -scale-x-1" }} 498 <span>{{ add64 .ReplyCount .QuoteCount }}</span> 499 </div> 500 </div> 501 {{ i "arrow-up-right" "size-4" }} 502 </a> 503 </div> 504{{ end }} 505 506{{ define "community" }} 507 <div class="w-full px-2 py-16 md:py-24"> 508 <div class="max-w-2xl mx-auto text-center space-y-6"> 509 <h2 class="text-3xl md:text-6xl font-bold text-gray-900 dark:text-gray-100">Join the network</h2> 510 <p class="text-xl text-gray-600 dark:text-gray-300"> 511 You can participate in the Tangled network with an AT account. If you 512 don't know what that is, you can sign up for one below. 513 </p> 514 <form class="flex gap-2 items-stretch w-full md:max-w-md mx-auto p-2 border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 rounded shadow-sm" method="get" action="/signup"> 515 <input 516 type="email" 517 id="email" 518 name="id" 519 tabindex="4" 520 required 521 placeholder="Enter your email" 522 class="py-2 w-full" 523 /> 524 <button class="btn-create flex items-center gap-2 text-base whitespace-nowrap" type="submit"> 525 join now 526 {{ i "arrow-right" "size-4" }} 527 </button> 528 </form> 529 </div> 530{{ end }}