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