forked from s1lvax/route
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
s1lva
committed
Oct 10, 2024
1 parent
9b7686e
commit 793f541
Showing
3 changed files
with
23 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export interface PublicProfile { | ||
links: { title: string; url: string }[]; | ||
skills: { title: string; level: string }[]; | ||
repoCount: number; | ||
contributionsCount: number; | ||
pfp: string | null; | ||
praises: number; | ||
username: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Function to convert skill level (string) into percentage for progress bar | ||
export const getProgressValue = (level: string): number => { | ||
const levels: { [key: string]: number } = { | ||
'1': 20, | ||
'2': 40, | ||
'3': 60, | ||
'4': 80, | ||
'5': 100 | ||
}; | ||
return levels[level] || 0; | ||
}; |