This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

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