From e7e5b6d2fcfd177968852172bc6137d76a29fd05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateus=20Felipe=20Gon=C3=A7alves?= Date: Sun, 15 Sep 2024 13:53:27 +0000 Subject: [PATCH] feat(about): separate knowledge from stack UI on knowledge list --- .../about/sections/knowledge/accordion.tsx | 5 ++- src/app/about/sections/knowledge/index.tsx | 35 +++++++++++---- .../knowledge/knowledge-categories.tsx | 43 +++++++++++-------- 3 files changed, 55 insertions(+), 28 deletions(-) diff --git a/src/app/about/sections/knowledge/accordion.tsx b/src/app/about/sections/knowledge/accordion.tsx index 24732724..8ade7032 100644 --- a/src/app/about/sections/knowledge/accordion.tsx +++ b/src/app/about/sections/knowledge/accordion.tsx @@ -78,13 +78,14 @@ export function KnowledgeInfo({ knowledge }: { knowledge: Knowledge }) { return (
{knowledge.icon({})} {knowledge.title} - {knowledge.status === 'learning' && } + {knowledge.status === 'stack' && }
) } diff --git a/src/app/about/sections/knowledge/index.tsx b/src/app/about/sections/knowledge/index.tsx index f79e32ac..3a8e77f8 100644 --- a/src/app/about/sections/knowledge/index.tsx +++ b/src/app/about/sections/knowledge/index.tsx @@ -37,6 +37,19 @@ export function Knowledge() {
+
+ + + My main stack, the skills that I am most comfortable with. + +
skill.status === 'bad' ) + const stackSkills = category.knowledgeList.filter( + skill => skill.status === 'stack' + ) return ( {category.title}
- {[...learningSkills, ...godSkills, ...badSkills].map( - knowledge => ( - - ) - )} + {[ + ...stackSkills, + ...godSkills, + ...learningSkills, + ...badSkills + ].map(knowledge => ( + + ))}
diff --git a/src/app/about/sections/knowledge/knowledge-categories.tsx b/src/app/about/sections/knowledge/knowledge-categories.tsx index 6e5cf0df..fcff4652 100644 --- a/src/app/about/sections/knowledge/knowledge-categories.tsx +++ b/src/app/about/sections/knowledge/knowledge-categories.tsx @@ -57,7 +57,8 @@ import { CodespacesIcon, GitpodIcon, VimIcon, - GlpiIcon + GlpiIcon, + AngularIcon } from '~/components/icons' type IconType = (props: SVGProps) => JSX.Element @@ -66,7 +67,7 @@ export interface Knowledge { icon: IconType title: string color: string - status: 'god' | 'bad' | 'learning' + status: 'god' | 'bad' | 'learning' | 'stack' } export const knowledgeCategories: { @@ -84,19 +85,19 @@ export const knowledgeCategories: { }, { title: 'Typescript', - status: 'god', + status: 'stack', icon: TypescriptIcon, color: '#3178C6' }, { title: 'Python', - status: 'god', + status: 'stack', icon: PythonIcon, color: '#3776AB' }, { title: 'Rust', - status: 'learning', + status: 'god', icon: RustIcon, color: '#F74C00' }, @@ -122,7 +123,7 @@ export const knowledgeCategories: { title: 'Java', icon: JavaIcon, color: '#f89820', - status: 'bad' + status: 'learning' }, { title: 'C++', @@ -143,25 +144,25 @@ export const knowledgeCategories: { knowledgeList: [ { title: 'HTML5', - status: 'god', + status: 'stack', icon: HTML5Icon, color: '#E34F26' }, { title: 'CSS3', - status: 'god', + status: 'stack', icon: CSS3Icon, color: '#1572B6' }, { title: 'React.js', - status: 'god', + status: 'stack', icon: ReactIcon, color: '#61DAFB' }, { title: 'Next.js', - status: 'god', + status: 'stack', icon: NextIcon, color: '#FFFFFF' }, @@ -173,13 +174,19 @@ export const knowledgeCategories: { }, { title: 'Svelte', - status: 'learning', + status: 'god', icon: SvelteIcon, color: '#FF3E00' }, + { + title: 'Angular', + status: 'learning', + icon: AngularIcon, + color: '#c3002f' + }, { title: 'Tailwind CSS', - status: 'god', + status: 'stack', icon: TailwindcssIcon, color: '#06B6D4' }, @@ -214,7 +221,7 @@ export const knowledgeCategories: { knowledgeList: [ { title: 'Node.js', - status: 'god', + status: 'stack', icon: NodeIcon, color: '#339933' }, @@ -319,13 +326,13 @@ export const knowledgeCategories: { }, { title: 'Docker', - status: 'god', + status: 'stack', icon: DockerIcon, color: '#2496ED' }, { title: 'Linux', - status: 'god', + status: 'stack', icon: LinuxIcon, color: '#FCC624' }, @@ -372,13 +379,13 @@ export const knowledgeCategories: { knowledgeList: [ { title: 'GIT', - status: 'god', + status: 'stack', icon: GitIcon, color: '#F34F29' }, { title: 'Github', - status: 'god', + status: 'stack', icon: GithubIcon, color: '#181717' }, @@ -390,7 +397,7 @@ export const knowledgeCategories: { }, { title: 'VSCode', - status: 'god', + status: 'stack', icon: VSCodeIcon, color: '#0065A9' },