-
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.
Merge pull request #4 from kavishka-sulakshana/skill-data-update
add react-icons dependency and implement new Skills component
- Loading branch information
Showing
8 changed files
with
182 additions
and
34 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,43 @@ | ||
import skills from "../../../data/Skills"; | ||
|
||
const SkillSet = () => { | ||
return ( | ||
<section className="container mx-auto px-4 py-4"> | ||
<div className="grid grid-cols-1 md:grid-cols-2 gap-8"> | ||
{skills.map(skill => ( | ||
<div | ||
key={skill.name} | ||
className="backdrop-blur-md bg-white/5 rounded-xl p-6 border border-white/10 text-cyan-100 | ||
shadow-lg hover:shadow-xl transition-all duration-300 | ||
hover:bg-white/5" | ||
> | ||
<div className="flex items-top gap-3 mb-4"> | ||
<div className="w-10 h-10 rounded-lg bg-gradient-to-br from-cyan-500 to-blue-500 flex items-center justify-center text-white font-bold"> | ||
{skill.icon} | ||
</div> | ||
<h3 className="text-xl font-semibold">{skill.name}</h3> | ||
</div> | ||
|
||
<hr className="mb-4" /> | ||
|
||
<div className="grid grid-cols-2 gap-4"> | ||
{skill.tools.map(tool => ( | ||
<div | ||
key={tool.name} | ||
className="flex items-center gap-2 p-2 bg-transparent rounded-lg transition-colors" | ||
> | ||
{tool.imageSrc} | ||
<span className="text-sm font-medium text-gray-50"> | ||
{tool.name} | ||
</span> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
</section> | ||
) | ||
} | ||
|
||
export default SkillSet |
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,18 @@ | ||
import Title from "../../small_comps/Title" | ||
import background from '../../../assets/images/tt.jpg' | ||
import SkillSet from "./SkillSet" | ||
|
||
const Skills = () => { | ||
return ( | ||
<section id="skills" className=" overflow-x-hidden relative flex flex-col py-20 h-auto sm:px-40 px-5 bg-fixed md:items-start items-center justify-center w-full bg-gradient-to-l from-cyan-950 to-gray-900"> | ||
<Title text="S K I L L S" /> | ||
<div className="flex px-3 pt-10 justify-around w-full items-center flex-wrap z-10"> | ||
<SkillSet /> | ||
</div> | ||
<img | ||
className="absolute w-full h-full opacity-10 z-0 object-cover left-0" src={background} alt="" /> | ||
</section> | ||
) | ||
} | ||
|
||
export default Skills |
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,78 @@ | ||
import { ReactNode } from "react"; | ||
import { BiLogoTypescript } from "react-icons/bi"; | ||
import { CgWebsite } from "react-icons/cg"; | ||
import { FaAws, FaDatabase, FaGithub, FaGitSquare, FaLinux, FaReact } from "react-icons/fa"; | ||
import { GrDeploy, GrServerCluster } from "react-icons/gr"; | ||
import { IoIosGitBranch } from "react-icons/io"; | ||
import { LuWorkflow } from "react-icons/lu"; | ||
import { RiTailwindCssFill } from "react-icons/ri"; | ||
import { SiDocker, SiExpress, SiFirebase, SiGitlab, SiMongodb, SiMui, SiMysql, SiNestjs, SiNextdotjs, SiPhp, SiPostgresql, SiPython, SiSpring } from "react-icons/si"; | ||
|
||
|
||
interface Tool { | ||
name: string; | ||
imageSrc: ReactNode; | ||
} | ||
|
||
interface Skill { | ||
name: string; | ||
icon: ReactNode; | ||
tools: Tool[]; | ||
} | ||
|
||
const skills: Skill[] = [ | ||
{ | ||
name: "Frontend", | ||
icon: <CgWebsite />, | ||
tools: [ | ||
{ name: "React", imageSrc: <FaReact /> }, | ||
{ name: "TypeScript", imageSrc: <BiLogoTypescript /> }, | ||
{ name: "Next.js", imageSrc: <SiNextdotjs /> }, | ||
{ name: "Tailwind css", imageSrc: <RiTailwindCssFill /> }, | ||
{ name: "MUI", imageSrc: <SiMui /> } | ||
] | ||
}, | ||
{ | ||
name: "Backend", | ||
icon: <GrServerCluster />, | ||
tools: [ | ||
{ name: "Spring-boot", imageSrc: <SiSpring /> }, | ||
{ name: "NestJs", imageSrc: <SiNestjs /> }, | ||
{ name: "Express", imageSrc: <SiExpress /> }, | ||
{ name: "PHP", imageSrc: <SiPhp /> }, | ||
{ name: "Python", imageSrc: <SiPython /> }, | ||
] | ||
}, | ||
{ | ||
name: "Database", | ||
icon: <FaDatabase />, | ||
tools: [ | ||
{ name: "PostgreSQL", imageSrc: <SiPostgresql /> }, | ||
{ name: "MongoDB", imageSrc: <SiMongodb /> }, | ||
{ name: "FireStore", imageSrc: <SiFirebase /> }, | ||
{ name: "MySql", imageSrc: <SiMysql /> }, | ||
] | ||
}, | ||
{ | ||
name: "DevOps", | ||
icon: <GrDeploy />, | ||
tools: [ | ||
{ name: "Docker", imageSrc: <SiDocker /> }, | ||
{ name: "AWS", imageSrc: <FaAws /> }, | ||
{ name: "CI / CD", imageSrc: <LuWorkflow /> }, | ||
{ name: "Linux", imageSrc: <FaLinux /> }, | ||
] | ||
}, | ||
{ | ||
name: "Source Control", | ||
icon: <IoIosGitBranch />, | ||
tools: [ | ||
{ name: "Git", imageSrc: <FaGitSquare /> }, | ||
{ name: "GitHub", imageSrc: <FaGithub /> }, | ||
{ name: "GitLab", imageSrc: <SiGitlab /> }, | ||
] | ||
} | ||
]; | ||
|
||
|
||
export default skills; |
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