2023-01-30 02:38:45 +01:00
|
|
|
import html from '../utils/html.js'
|
|
|
|
|
2023-09-28 02:50:43 +02:00
|
|
|
/**
|
|
|
|
* @param {import('../schema.d.ts').ResumeSchema['skills']} skills
|
|
|
|
* @returns {string | false}
|
|
|
|
*/
|
2023-01-30 02:38:45 +01:00
|
|
|
export default function Skills(skills = []) {
|
2023-10-08 01:23:03 +02:00
|
|
|
return (
|
|
|
|
skills.length > 0 &&
|
|
|
|
html`
|
|
|
|
<section id="skills">
|
|
|
|
<h3>Skills</h3>
|
|
|
|
<div class="grid-list">
|
|
|
|
${skills.map(
|
|
|
|
({ keywords = [], name }) => html`
|
|
|
|
<div>
|
|
|
|
${name && html`<h4>${name}</h4>`}
|
|
|
|
${keywords.length > 0 &&
|
|
|
|
html`
|
|
|
|
<ul class="tag-list">
|
|
|
|
${keywords.map(keyword => html`<li>${keyword}</li>`)}
|
|
|
|
</ul>
|
|
|
|
`}
|
|
|
|
</div>
|
|
|
|
`,
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
`
|
|
|
|
)
|
2023-01-30 02:38:45 +01:00
|
|
|
}
|