project nearly finished. TODO Next : Project page and refine some text
This commit is contained in:
25
src/stores/menu.js
Normal file
25
src/stores/menu.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useMenuStore = defineStore('menu', {
|
||||
state: () => ({
|
||||
whoAmI: true,
|
||||
technologies: false,
|
||||
projects: false,
|
||||
networks: false,
|
||||
contact: false,
|
||||
}),
|
||||
|
||||
actions:
|
||||
{
|
||||
selected(event){
|
||||
this.whoAmI = false
|
||||
this.technologies = false
|
||||
this.projects = false
|
||||
this.networks = false
|
||||
this.contact = false
|
||||
|
||||
this[event.currentTarget.dataset.name] = true
|
||||
|
||||
},
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user