Skip to content

Commit

Permalink
started with skills
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag3003 committed Jan 28, 2024
1 parent b9cf4b8 commit a4dc7f9
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 5 deletions.
23 changes: 18 additions & 5 deletions components/Skills.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import skills from '@/configs/skills'
import React from 'react'

function SkillsSection() {
Expand All @@ -6,18 +7,30 @@ function SkillsSection() {
<h2 className="text-primary text-6xl font-semibold mb-20">
My Skills
</h2>
<div className="flex flex-col-reverse lg:flex-row w-full">
<div className="flex flex-col-reverse lg:flex-row w-full items-center">
<div className="w-full lg:w-1/2 items-center px-10">
<img
src="/image1.svg"
alt=""
className="w-full aspect-square"
/>
</div>
<div className="w-full lg:w-1/2 grid grid-cols-2 lg:grid-cols-4">
<div className="skill w-full flex-col items-center">
<img src="" alt="" />
</div>
<div className="w-full lg:w-1/2 grid grid-cols-2 lg:grid-cols-4 gap-4 lg:gap-10">
{skills.map(({ name, icon }, index) => {
return (
<div
key={index}
className="skill w-full flex flex-col items-center gap-4 px-4"
>
<img
src={icon}
alt=""
className="w-full aspect-square"
/>
<p className='text-center'>{name}</p>
</div>
)
})}
</div>
</div>
</section>
Expand Down
20 changes: 20 additions & 0 deletions configs/skills.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const skills = [
{
name: 'Golang',
icon: '/skills/golang.png',
},
{
name: 'Kotlin',
icon: '/skills/kotlin.png',
},
{
name: 'NextJS',
icon: '/skills/nextjs.png',
},
{
name: 'NodeJS',
icon: '/skills/nodejs.png',
},
]

export default skills
Binary file added public/skills/golang.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/skills/js.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/skills/kotlin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/skills/nextjs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/skills/nodejs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a4dc7f9

Please sign in to comment.