1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-24 09:55:57 +02:00

Add github URL in redirect

This commit is contained in:
Kamran Ahmed
2024-06-28 12:36:29 +01:00
parent 9ecf4a9d78
commit a62ed919c1
3 changed files with 9 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ const discordInfo = await getDiscordInfo();
class='mt-5 grid grid-cols-1 justify-between gap-2 divide-x-0 sm:my-11 sm:grid-cols-3 sm:gap-0 sm:divide-x mb-4 sm:mb-0' class='mt-5 grid grid-cols-1 justify-between gap-2 divide-x-0 sm:my-11 sm:grid-cols-3 sm:gap-0 sm:divide-x mb-4 sm:mb-0'
> >
<OpenSourceStat text='GitHub Stars' value={starCount} /> <OpenSourceStat text='GitHub Stars' value={starCount} />
<OpenSourceStat text='Registered Users' value={'850k'} /> <OpenSourceStat text='Registered Users' value={'+1M'} />
<OpenSourceStat <OpenSourceStat
text='Discord Members' text='Discord Members'
value={discordInfo.totalFormatted} value={discordInfo.totalFormatted}

View File

@@ -28,7 +28,7 @@ const isDiscordMembers = text.toLowerCase() === 'discord members';
{ {
isRegistered && ( isRegistered && (
<p class='flex items-center text-sm text-blue-500 sm:flex'> <p class='flex items-center text-sm text-blue-500 sm:flex'>
<span class='mr-1.5 rounded-md bg-blue-500 px-1 text-white'>+55k</span> <span class='mr-1.5 rounded-md bg-blue-500 px-1 text-white'>+75k</span>
every month every month
</p> </p>
) )
@@ -44,7 +44,7 @@ const isDiscordMembers = text.toLowerCase() === 'discord members';
} }
<div class="flex flex-row items-center sm:flex-col my-1 sm:my-0"> <div class="flex flex-row items-center sm:flex-col my-1 sm:my-0">
<p <p
class='relative my-0 sm:my-4 mr-1 sm:mr-0 text-base font-bold lowercase sm:w-auto sm:text-5xl' class='relative my-0 sm:my-4 mr-1 sm:mr-0 text-base font-bold sm:w-auto sm:text-5xl'
> >
{value} {value}
</p> </p>

6
src/pages/github.astro Normal file
View File

@@ -0,0 +1,6 @@
---
export const prerender = false;
const githubLink = 'https://github.com/kamranahmedse/developer-roadmap';
return Astro.redirect(githubLink);
---