-
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
1 parent
99e7956
commit d0e6637
Showing
6 changed files
with
153 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { useState } from 'react'; | ||
import Work from './Work'; | ||
import Skills from './Skills'; | ||
|
||
const HighlightedSkills = (props) => { | ||
const [highlightedSkill, setHighlightedSkill] = useState(null); | ||
|
||
return ( | ||
<div> | ||
<Skills items={props.skills} highlightedSkills={highlightedSkill} /> | ||
<Work items={props.works} setHighlightedSkills={setHighlightedSkill} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default HighlightedSkills; |
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 |
---|---|---|
@@ -1,32 +1,36 @@ | ||
import Link from 'next/link' | ||
import Title from './Title' | ||
|
||
const Skills = (props) => { | ||
const items = props.items | ||
import Title from './Title'; | ||
|
||
const Skills = ({ items, highlightedSkills }) => { | ||
return ( | ||
<div className="section"> | ||
<Title title="Skills" icon={`<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg>`} /> | ||
<Title | ||
title="Skills" | ||
icon={`<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg>`} | ||
/> | ||
|
||
<div className="md:flex justify-between pl-4"> | ||
{items.map((item, index) => | ||
{items.map((item, index) => ( | ||
<div className="md:w-1/3 px-4 mb-4 md:mb-0" key={index}> | ||
<h3 className="text-xs font-semibold uppercase mb-1"> | ||
{item.name} | ||
</h3> | ||
{item.keywords.map((keyword, kindex) => | ||
{item.keywords.map((keyword, kindex) => ( | ||
<span | ||
className="inline-flex mr-2 text-xs font-semibold text-opacity-70 text-black border px-1 rounded border-purple-100 bg-purple-50 dark:border-gray-900 dark:bg-gray-600" | ||
className={`inline-flex mr-2 text-xs font-semibold text-opacity-70 text-black border px-1 rounded border-purple-100 dark:border-gray-900 transition-colors ${ | ||
highlightedSkills?.includes(keyword) | ||
? 'bg-green-400' | ||
: 'dark:bg-gray-600 bg-purple-50' | ||
}`} | ||
key={kindex} | ||
> | ||
{keyword} | ||
</span> | ||
)} | ||
))} | ||
</div> | ||
)} | ||
))} | ||
</div> | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Skills | ||
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
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