computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.2 KiB
64 lines
2.2 KiB
--- |
|
import { getAllChangelogs } from '../lib/changelog'; |
|
import { DateTime } from 'luxon'; |
|
|
|
const allChangelogs = await getAllChangelogs(); |
|
const top10Changelogs = allChangelogs.slice(0, 10); |
|
--- |
|
|
|
<div class='border-t bg-white py-6 text-left sm:py-16 sm:text-center'> |
|
<div class='container !max-w-[650px]'> |
|
<p class='text-2xl font-bold sm:text-5xl'> |
|
<img |
|
src='/images/gifs/rocket.gif' |
|
alt='Rocket' |
|
class='mr-2 hidden sm:inline h-12 w-12' |
|
/> |
|
Actively Maintained |
|
</p> |
|
<p class='mt-1 mb-2 sm:my-2 text-sm leading-relaxed text-gray-600 sm:my-5 sm:text-lg'> |
|
We are always improving our content, adding new resources and adding |
|
features to enhance your learning experience. |
|
</p> |
|
|
|
<div class='relative mt-2 sm:mt-8 text-left'> |
|
<div |
|
class='absolute inset-y-0 left-[120px] hidden w-px -translate-x-[0.5px] translate-x-[5.75px] bg-gray-300 sm:block' |
|
> |
|
</div> |
|
<ul class='relative flex flex-col gap-4 py-4'> |
|
{ |
|
top10Changelogs.map((changelog) => { |
|
const formattedDate = DateTime.fromISO( |
|
changelog.frontmatter.date, |
|
).toFormat('dd LLL, yyyy'); |
|
return ( |
|
<li class='relative'> |
|
<a |
|
href={`/changelog#${changelog.id}`} |
|
class='flex flex-col sm:flex-row items-start sm:items-center' |
|
> |
|
<span class='sm:w-[120px] flex-shrink-0 pr-0 sm:pr-4 text-right text-sm tracking-wide text-gray-400'> |
|
{formattedDate} |
|
</span> |
|
<span class='h-3 w-3 flex-shrink-0 rounded-full bg-gray-300 hidden sm:block' /> |
|
<span class='text-balance sm:pl-8 text-base font-medium text-gray-900'> |
|
{changelog.frontmatter.title} |
|
</span> |
|
</a> |
|
</li> |
|
); |
|
}) |
|
} |
|
</ul> |
|
</div> |
|
<div class='mt-2 sm:mt-8 text-left sm:text-center'> |
|
<a |
|
href='/changelog' |
|
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' |
|
> |
|
View Full Changelog |
|
</a> |
|
</div> |
|
</div> |
|
</div>
|
|
|