Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ngocnhan-tran1996 committed Jul 24, 2024
1 parent 1431d4e commit 4faf3a5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/Fragment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export function SectionFragment({ title, divideClassName, properties }: { title:
)
}

export function BadgeFragment({ value }: { value: string }) {
export function BadgeFragment({ values }: { values: string[] }) {

return <span className="badge rounded-pill text-bg-secondary fw-normal me-1">{value}</span>
return values.map(value => <span className="badge rounded-pill text-bg-secondary fw-normal me-1">{value}</span>)
}

export interface SectionProperty {
Expand Down
28 changes: 14 additions & 14 deletions src/data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,42 +89,42 @@ export const workExperienceData: SectionProperty[] = [
}
];

const languages = ["English", "Vietnamese"].map(value => <BadgeFragment value={value} />)
const programmingLanguages = ["Java", "Javascript"].map(value => <BadgeFragment value={value} />)
const frameworks = ["Spring Framework", "Spring Security", "Spring Boot", "Spring JPA", "Spring AMQP", "Spring Mail", "Thymeleaf", "Hibernate", "Boostrap", "ReactJS"].map(value => <BadgeFragment value={value} />)
const databases = ["MySQL", "PostgreSQL", "Oracle"].map(value => <BadgeFragment value={value} />)
const tools = ["Github", "Github", "Gitlab", "Eclipse", "VS Code", "IntelliJ"].map(value => <BadgeFragment value={value} />)
const knowledge = ["OOP", "Design Pattern", "SOLID Principles", "Dependency Injection", "RestfulAPI", "Microservices", "RabbitMQ", "ActiveMQ"].map(value => <BadgeFragment value={value} />)
const anotherTools = ["Word", "Excel"].map(value => <BadgeFragment value={value} />)
const languages = <BadgeFragment values={["English", "Vietnamese"]} />
const programmingLanguages = <BadgeFragment values={["Java", "Javascript"]} />
const frameworks = <BadgeFragment values={["Spring Framework", "Spring Security", "Spring Boot", "Spring JPA", "Spring AMQP", "Spring Mail", "Thymeleaf", "Hibernate", "Boostrap", "ReactJS"]} />
const databases = <BadgeFragment values={["MySQL", "PostgreSQL", "Oracle"]} />
const tools = <BadgeFragment values={["Github", "Github", "Gitlab", "Eclipse", "VS Code", "IntelliJ"]} />
const knowledge = <BadgeFragment values={["OOP", "Design Pattern", "SOLID Principles", "Dependency Injection", "RestfulAPI", "Microservices", "RabbitMQ", "ActiveMQ"]} />
const anotherTools = <BadgeFragment values={["Word", "Excel"]} />

export const skillsData: SectionProperty[] = [
{
title: "Languages",
children: <>{languages} </>
children: languages
},
{
title: "Programming Languages",
children: <>{programmingLanguages}</>
children: programmingLanguages
},
{
title: "Frameworks & Platforms",
children: <>{frameworks}</>
children: frameworks
},
{
title: "Databases",
children: <>{databases}</>
children: databases
},
{
title: "Version Control & IDE",
children: <>{tools}</>
children: tools
},
{
title: "Knowledge",
children: <>{knowledge}</>
children: knowledge
},
{
title: "Computer",
children: <>{anotherTools}</>
children: anotherTools
}
]

Expand Down
1 change: 0 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: '/'
})

0 comments on commit 4faf3a5

Please sign in to comment.