diff --git a/v1-com-officielle/public/DATA/peopleData.json b/v1-com-officielle/public/DATA/peopleData.json index 063f61d..0f1aa2c 100644 --- a/v1-com-officielle/public/DATA/peopleData.json +++ b/v1-com-officielle/public/DATA/peopleData.json @@ -50,8 +50,17 @@ "type": "link", "isSelected": false, "caption": "Theo.web", - "description": "Site internet de Theo", - "url":"https://drags-nerds.net" + "description": "Réseaux de Theo", + "links":[ + { + "caption":"site web", + "url":"https://drags-nerds.net" + }, + { + "caption":"site web", + "url":"https://drags-nerds.net" + } + ] }, { "type": "text", @@ -74,7 +83,12 @@ "isSelected": false, "caption": "Background.web", "description": "Site internet du fond animé, en open source, allez checker ça l'équipe ! (et payer un café à son créateur si vous pouvez hihi)", - "url":"https://collidingscopes.github.io/liquid-shape-distortions" + "links":[ + { + "caption":"site web", + "url":"https://collidingscopes.github.io/liquid-shape-distortions" + } + ] }, { "type": "text", diff --git a/v1-com-officielle/src/dataExchange.js b/v1-com-officielle/src/dataExchange.js index 300a57f..83c66a3 100644 --- a/v1-com-officielle/src/dataExchange.js +++ b/v1-com-officielle/src/dataExchange.js @@ -16,5 +16,9 @@ export const dataStorage = reactive({ selectedImg: { src: "", caption: "" + }, + selectedLink:{ + linksData: [], + description: '' } }) diff --git a/v1-com-officielle/src/indieComponents/ArtistPannel.vue b/v1-com-officielle/src/indieComponents/ArtistPannel.vue index a50776f..70c8259 100644 --- a/v1-com-officielle/src/indieComponents/ArtistPannel.vue +++ b/v1-com-officielle/src/indieComponents/ArtistPannel.vue @@ -3,6 +3,7 @@ import FolderIcon from '../assets/icons/folder.svg' import FileIcon from '../assets/icons/file.svg' import ReloadIcon from '../assets/icons/reload.svg' + import AboutIcon from '../assets/icons/about.svg' import BackIcon from '../assets/icons/back.svg' import { loadPeopleData } from '@/data/peopleData.js' @@ -35,7 +36,7 @@

Oops! There is nothing to display here...

- +

{{item.caption}}

@@ -245,7 +246,7 @@ isNotRoot : false } }, - emits: ['close','focus','openImg'], + emits: ['close','focus','openImg','openLink'], methods:{ onDrag({ target, transform }) { target.style.transform = transform; @@ -277,6 +278,19 @@ src: e.src, caption: e.caption } + this.displayedDescription = e.description; + } + if (e.type === 'link'){ + this.$emit('openLink'); + dataStorage.selectedLink = { + linksData: e.links, + caption: e.caption, + description: e.description + } + console.log(dataStorage.selectedLink); + } + if (e.type === 'text'){ + this.selectFile(e); } }, diff --git a/v1-com-officielle/src/indieComponents/LinkPannel.vue b/v1-com-officielle/src/indieComponents/LinkPannel.vue new file mode 100644 index 0000000..defb62e --- /dev/null +++ b/v1-com-officielle/src/indieComponents/LinkPannel.vue @@ -0,0 +1,116 @@ + + + + + + + diff --git a/v1-com-officielle/src/infoComponents/InfoMenu.vue b/v1-com-officielle/src/infoComponents/InfoMenu.vue index 6c7cd4a..2088d9e 100644 --- a/v1-com-officielle/src/infoComponents/InfoMenu.vue +++ b/v1-com-officielle/src/infoComponents/InfoMenu.vue @@ -33,6 +33,7 @@ @@ -73,6 +74,12 @@ @focus="focusPannel('visual')" :class="{zBase: isFocused!=='visual', zFocus: isFocused==='visual'}"> + +