11---
22import { getAllChangelogs } from ' ../lib/changelog' ;
33import { DateTime } from ' luxon' ;
4-
4+ import AstroIcon from ' ./AstroIcon.astro ' ;
55const allChangelogs = await getAllChangelogs ();
66const top10Changelogs = allChangelogs .slice (0 , 10 );
77---
@@ -12,16 +12,18 @@ const top10Changelogs = allChangelogs.slice(0, 10);
1212 <img
1313 src =' /images/gifs/rocket.gif'
1414 alt =' Rocket'
15- class =' mr-2 hidden sm:inline h-12 w-12'
15+ class =' mr-2 hidden h-12 w-12 sm:inline '
1616 />
1717 Actively Maintained
1818 </p >
19- <p class =' mt-1 mb-2 sm:my-2 text-sm leading-relaxed text-gray-600 sm:my-5 sm:text-lg' >
19+ <p
20+ class =' mb-2 mt-1 text-sm leading-relaxed text-gray-600 sm:my-2 sm:my-5 sm:text-lg'
21+ >
2022 We are always improving our content, adding new resources and adding
2123 features to enhance your learning experience.
2224 </p >
2325
24- <div class =' relative mt-2 sm:mt-8 text-left ' >
26+ <div class =' relative mt-2 text-left sm:mt-8' >
2527 <div
2628 class =' absolute inset-y-0 left-[120px] hidden w-px -translate-x-[0.5px] translate-x-[5.75px] bg-gray-300 sm:block'
2729 >
@@ -36,13 +38,13 @@ const top10Changelogs = allChangelogs.slice(0, 10);
3638 <li class = ' relative' >
3739 <a
3840 href = { ` /changelog#${changelog .id } ` }
39- class = ' flex flex-col sm:flex-row items-start sm:items-center'
41+ class = ' flex flex-col items-start sm:flex-row sm:items-center'
4042 >
41- <span class = ' sm:w-[120px] flex-shrink-0 pr-0 sm:pr-4 text-right text-sm tracking-wide text-gray-400' >
43+ <span class = ' flex-shrink-0 pr-0 text-right text-sm tracking-wide text-gray-400 sm:w-[120px] sm:pr-4 ' >
4244 { formattedDate }
4345 </span >
44- <span class = ' h-3 w-3 flex-shrink-0 rounded-full bg-gray-300 hidden sm:block' />
45- <span class = ' text-balance sm:pl-8 text-base font-medium text-gray-900' >
46+ <span class = ' hidden h-3 w-3 flex-shrink-0 rounded-full bg-gray-300 sm:block' />
47+ <span class = ' text-balance text-base font-medium text-gray-900 sm:pl-8 ' >
4648 { changelog .frontmatter .title }
4749 </span >
4850 </a >
@@ -52,13 +54,23 @@ const top10Changelogs = allChangelogs.slice(0, 10);
5254 }
5355 </ul >
5456 </div >
55- <div class =' mt-2 sm:mt-8 text-left sm:text-center' >
57+ <div
58+ class =' mt-2 flex flex-col gap-2 sm:flex-row sm:mt-8 sm:items-center sm:justify-center'
59+ >
5660 <a
5761 href =' /changelog'
58- class =' inline-block text-sm sm:text-base rounded-lg sm:rounded-full bg-gray-800 px-4 sm:px-6 py-2 text-white transition-colors hover:bg-gray-700'
62+ class =' inline-block rounded-lg border border-black bg-black px-4 py-2 text-sm text- white transition-colors hover:bg-gray-700 sm:rounded-full sm:px-6 sm:text-base '
5963 >
6064 View Full Changelog
6165 </a >
66+ <button
67+ data-guest-required
68+ data-popup =' login-popup'
69+ class =' flex flex-row items-center gap-2 rounded-lg border border-black bg-white px-4 py-2 text-sm text-black transition-all hover:bg-black hover:text-white sm:rounded-full sm:pl-4 sm:pr-5 sm:text-base'
70+ >
71+ <AstroIcon icon =' bell' class =' h-5 w-5' />
72+ Subscribe for Notifications
73+ </button >
6274 </div >
6375 </div >
6476</div >
0 commit comments