feat: Add filter buttons for skill section
This commit is contained in:
parent
aab2b39c50
commit
871286192c
4 changed files with 39 additions and 7 deletions
15
assets/scripts/sections/skills.js
Normal file
15
assets/scripts/sections/skills.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
import Filterizr from 'filterizr'
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
// ================== Project cards =====================
|
||||
|
||||
// setup project filter buttons
|
||||
const skillCardHolder = document.getElementById('skill-card-holder')
|
||||
if (skillCardHolder != null && skillCardHolder.children.length !== 0) {
|
||||
// eslint-disable-next-line no-new
|
||||
new Filterizr('.filtr-skills', {
|
||||
layout: 'sameWidth',
|
||||
controlsSelector: '.skill-filtr-control'
|
||||
})
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue