+
Roadmaps made by me
-
- {customRoadmaps.map((roadmap, counter) => (
-
- {roadmap.title}
-
- ))}
+
+ {customRoadmaps.map((roadmap, counter) => {
+ const doneCount = roadmap.done;
+ const skippedCount = roadmap.skipped;
+ const totalCount = roadmap.total;
+
+ const totalMarked = doneCount + skippedCount;
+ const progressPercentage = getPercentage(totalMarked, totalCount);
+
+ return (
+
+ {roadmap.title}
+
+ );
+ })}
)}
-
- {roadmapVisibility !== 'none' && (
- <>
-
My Skills
-
- {roadmaps.map((roadmap, counter) => (
- -
-
-
- ))}
-
- >
- )}
-
+ {roadmapVisibility !== 'none' && roadmaps.length > 0 && (
+ <>
+
+ Skills I have mastered
+
+
+ >
+ )}
);
}
diff --git a/src/lib/date.ts b/src/lib/date.ts
index 5d34da249..ecb6bd726 100644
--- a/src/lib/date.ts
+++ b/src/lib/date.ts
@@ -33,6 +33,13 @@ export function getRelativeTimeString(date: string): string {
return relativeTime;
}
+export function formatMonthDate(date: string): string {
+ return new Date(date).toLocaleDateString('en-US', {
+ month: 'long',
+ year: 'numeric',
+ });
+}
+
export function formatActivityDate(date: string): string {
return new Date(date).toLocaleDateString('en-US', {
month: 'long',
diff --git a/src/pages/u/[username]/index.astro b/src/pages/u/[username]/index.astro
index 0dcdaa62c..843c4bb73 100644
--- a/src/pages/u/[username]/index.astro
+++ b/src/pages/u/[username]/index.astro
@@ -3,6 +3,8 @@ import { FrownIcon } from 'lucide-react';
import { userApi } from '../../../api/user';
import AccountLayout from '../../../layouts/AccountLayout.astro';
import { UserPublicProfilePage } from '../../../components/UserPublicProfile/UserPublicProfilePage';
+import OpenSourceBanner from '../../../components/OpenSourceBanner.astro';
+import Footer from '../../../components/Footer.astro';
interface Params extends Record
{
username: string;
@@ -40,11 +42,18 @@ if (error || !userDetails) {
height='120'
/>
- Problem loading user!
+
+ Problem loading user!
+
- {errorMessage}
+
+ {errorMessage}
+
)
}
+
+