edit: création d'une interface type explorateur de fichier pour afficher les liens externes
This commit is contained in:
@@ -139,6 +139,14 @@ p{
|
|||||||
background-color: var(--accent-color);
|
background-color: var(--accent-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon{
|
||||||
|
position: relative;
|
||||||
|
height:77%;
|
||||||
|
width:auto;
|
||||||
|
fill: currentColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*=====================Animation*/
|
/*=====================Animation*/
|
||||||
.floating {
|
.floating {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
<script setup>
|
||||||
|
import CloseIcon from '../assets/icons/close.svg'
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="windowContainer" id="aboutPannel" ref="aboutPannel" :style="{top:coordY+'px', left:coordX+'px'}" @mousedown.left="$emit('focus')" >
|
<div class="windowContainer" id="aboutPannel" ref="aboutPannel" :style="{top:coordY+'px', left:coordX+'px'}" @mousedown.left="$emit('focus')" >
|
||||||
<Moveable
|
<Moveable
|
||||||
@@ -9,7 +13,9 @@
|
|||||||
<div class="windowTitle">
|
<div class="windowTitle">
|
||||||
<div class="titleContent">
|
<div class="titleContent">
|
||||||
<p>./About.333</p>
|
<p>./About.333</p>
|
||||||
<button type="button" class="titleBtn" @mousedown.stop @touchstart="$emit('close')" @click="$emit('close')"><p>×</p></button>
|
<button type="button" class="titleBtn" @mousedown.stop @touchstart="$emit('close')" @click="$emit('close')">
|
||||||
|
<CloseIcon name="close" class="icon"/>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p id="about_text">
|
<p id="about_text">
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
<script setup>
|
||||||
|
import CloseIcon from '../assets/icons/close.svg'
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="windowContainer" id="contactPannel" ref="contactPannel" :style="{top:coordY+'px', left:coordX+'px'}" @mousedown.left="$emit('focus')" >
|
<div class="windowContainer" id="contactPannel" ref="contactPannel" :style="{top:coordY+'px', left:coordX+'px'}" @mousedown.left="$emit('focus')" >
|
||||||
<Moveable
|
<Moveable
|
||||||
@@ -9,7 +13,9 @@
|
|||||||
<div class="windowTitle">
|
<div class="windowTitle">
|
||||||
<div class="titleContent">
|
<div class="titleContent">
|
||||||
<p>./Contact.333</p>
|
<p>./Contact.333</p>
|
||||||
<button type="button" class="titleBtn" @mousedown.stop @touchstart="$emit('close')" @click="$emit('close')"><p>×</p></button>
|
<button type="button" class="titleBtn" @mousedown.stop @touchstart="$emit('close')" @click="$emit('close')">
|
||||||
|
<CloseIcon name="close" class="icon"/>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="contactContainer">
|
<div class="contactContainer">
|
||||||
|
|||||||
@@ -1,13 +1,24 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
|
import WelcomeIcon from '../assets/icons/info.svg'
|
||||||
|
import AboutIcon from '../assets/icons/about.svg'
|
||||||
|
import ContactIcon from '../assets/icons/contact.svg'
|
||||||
|
import LinksIcon from '../assets/icons/link.svg'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div id="extraContainer">
|
<div id="extraContainer">
|
||||||
<div id="btnPannel">
|
<div id="btnPannel">
|
||||||
<button type="button" class="btnColStyle" @click="openPannel('welcome')" id="info"><p>i</p></button>
|
<button type="button" class="btnColStyle" @click="openPannel('welcome')" id="info">
|
||||||
<button type="button" class="btnColStyle" @click="openPannel('about')"><p>#</p></button>
|
<WelcomeIcon name="welcome" class="icon"/>
|
||||||
<button type="button" class="btnColStyle" @click="openPannel('contact')"><p>@</p></button>
|
</button>
|
||||||
<button type="button" class="btnColStyle" @click="openPannel('link')"><p>//</p></button>
|
<button type="button" class="btnColStyle" @click="openPannel('about')">
|
||||||
|
<AboutIcon name="about" class="icon"/>
|
||||||
|
</button>
|
||||||
|
<button type="button" class="btnColStyle" @click="openPannel('contact')">
|
||||||
|
<ContactIcon name="contact" class="icon"/>
|
||||||
|
</button>
|
||||||
|
<button type="button" class="btnColStyle" @click="openPannel('link')">
|
||||||
|
<LinksIcon name="links" class="icon"/>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div id="contentContainer" ref="contentContainer">
|
<div id="contentContainer" ref="contentContainer">
|
||||||
<div class="windowContainer" id="contentPannel">
|
<div class="windowContainer" id="contentPannel">
|
||||||
@@ -46,7 +57,7 @@
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
font-family: 'lineal';
|
font-family: 'lineal';
|
||||||
color: var(--light-color);
|
color: var(--light-color);
|
||||||
border-color: var(--Light-color);
|
border-color: var(--light-color);
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-radius: 16.1px;
|
border-radius: 16.1px;
|
||||||
border-width: thin;
|
border-width: thin;
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
<script setup>
|
||||||
|
import CloseIcon from '../assets/icons/close.svg'
|
||||||
|
import FolderIcon from '../assets/icons/folder.svg'
|
||||||
|
import FileIcon from '../assets/icons/file.svg'
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="windowContainer" id="linkPannel" ref="linkPannel" :style="{top:coordY+'px', left:coordX+'px'}" @mousedown.left="$emit('focus')">
|
<div class="windowContainer" id="linkPannel" ref="linkPannel" :style="{top:coordY+'px', left:coordX+'px'}" @mousedown.left="$emit('focus')">
|
||||||
<Moveable
|
<Moveable
|
||||||
@@ -6,21 +12,81 @@
|
|||||||
:draggable="true"
|
:draggable="true"
|
||||||
@drag="onDrag"
|
@drag="onDrag"
|
||||||
/>
|
/>
|
||||||
|
<!--TITRE-->
|
||||||
<div class="windowTitle">
|
<div class="windowTitle">
|
||||||
<div class="titleContent">
|
<div class="titleContent">
|
||||||
<p>./ExternalLinks.333</p>
|
<p>./ExternalLinks.333</p>
|
||||||
<button type="button" class="titleBtn" @mousedown.stop @touchstart="$emit('close')" @click="$emit('close')"><p>×</p></button>
|
<button type="button" class="titleBtn" @mousedown.stop @touchstart="$emit('close')" @click="$emit('close')">
|
||||||
|
<CloseIcon name="close" class="icon"/>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!--CONTENU-->
|
||||||
|
<div class="theMatrix" @mousedown.stop @touchstart.stop>
|
||||||
|
<div class="itemStyle" v-for="item in displayedItems" :key="item.caption">
|
||||||
|
<component :is="item.type==='folder'? FolderIcon : FileIcon" class="icon"/>
|
||||||
|
<p class="itemCaption">{{item.caption}}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
/*=====================LinkPannel CSS*/
|
/*=====================LinkPannel CSS*/
|
||||||
|
.theMatrix{
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||||
|
grid-auto-rows: 180px;
|
||||||
|
gap: 10px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow-y: auto;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.itemStyle{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
padding-top: 13.12px;
|
||||||
|
border-radius: 8px;
|
||||||
|
width:90%;
|
||||||
|
height: auto;
|
||||||
|
color: var(--light-color);
|
||||||
|
border-style: solid;
|
||||||
|
border-width: thin;
|
||||||
|
border-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.itemStyle .icon{
|
||||||
|
height:auto;
|
||||||
|
width:50%;
|
||||||
|
fill: currentColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
.itemStyle:hover{
|
||||||
|
color: var(--accent-color);
|
||||||
|
border-color: var(--accent-color);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.itemCaption{
|
||||||
|
text-align: center;
|
||||||
|
color: var(--light-color);
|
||||||
|
font-family: 'velvelyne';
|
||||||
|
font-weight: lighter;
|
||||||
|
font-size: 16.1px;
|
||||||
|
pointer-events: all;
|
||||||
|
cursor:inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.itemCaption:hover{
|
||||||
|
color: var(--accent-color);
|
||||||
|
}
|
||||||
|
|
||||||
#linkPannel{
|
#linkPannel{
|
||||||
background-color: var(--dark-color);
|
background-color: var(--dark-color);
|
||||||
position:absolute;
|
|
||||||
cursor:grab;
|
cursor:grab;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,19 +102,43 @@
|
|||||||
@media(max-width:800px){
|
@media(max-width:800px){
|
||||||
#linkPannel{
|
#linkPannel{
|
||||||
width:333px;
|
width:333px;
|
||||||
height:333px;
|
height:666px;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Moveable from 'vue3-moveable';
|
import Moveable from 'vue3-moveable'
|
||||||
|
const linksData = [
|
||||||
|
{
|
||||||
|
type: "folder",
|
||||||
|
caption: "Folder001"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "folder",
|
||||||
|
caption: "Folder002"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "folder",
|
||||||
|
caption: "Folder333"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "folder",
|
||||||
|
caption: "test"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "file",
|
||||||
|
caption: "READ-ME.txt"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name : 'LinkPannel',
|
name : 'LinkPannel',
|
||||||
components:{
|
components:{
|
||||||
Moveable
|
Moveable,
|
||||||
|
FileIcon,
|
||||||
|
FolderIcon
|
||||||
},
|
},
|
||||||
emits: ["focus","close"],
|
emits: ["focus","close"],
|
||||||
methods:{
|
methods:{
|
||||||
@@ -74,6 +164,10 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
observer.observe(container);
|
observer.observe(container);
|
||||||
|
},
|
||||||
|
dataFirstLoad(){
|
||||||
|
this.displayedItems = linksData;
|
||||||
|
console.log(this.displayedItems);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
@@ -82,6 +176,7 @@
|
|||||||
bodyWidth:0,
|
bodyWidth:0,
|
||||||
coordX:0,
|
coordX:0,
|
||||||
coordY:0,
|
coordY:0,
|
||||||
|
displayedItems:[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
@@ -89,6 +184,7 @@
|
|||||||
this.observeContainer()
|
this.observeContainer()
|
||||||
});
|
});
|
||||||
console.log('coord:', this.coordX, this.coordY);
|
console.log('coord:', this.coordX, this.coordY);
|
||||||
|
this.dataFirstLoad();
|
||||||
console.log("Contact pannel is loaded!");
|
console.log("Contact pannel is loaded!");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
<script setup>
|
||||||
|
import ReloadIcon from '../assets/icons/reload.svg'
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div id="mainContainer">
|
<div id="mainContainer">
|
||||||
<generatorDiv ref="generator"></generatorDiv>
|
<generatorDiv ref="generator"></generatorDiv>
|
||||||
@@ -6,7 +10,9 @@
|
|||||||
<div class="titleContent">
|
<div class="titleContent">
|
||||||
<p>./MainContent.333</p>
|
<p>./MainContent.333</p>
|
||||||
<!--<Teleport to="div#generatorContainer">-->
|
<!--<Teleport to="div#generatorContainer">-->
|
||||||
<button type="button" class="titleBtn" @click="reloadContent()"> <p>RELOAD</p> </button>
|
<button type="button" class="titleBtn" @click="reloadContent()">
|
||||||
|
<ReloadIcon name="reload" class="icon"/>
|
||||||
|
</button>
|
||||||
<!--</Teleport>-->
|
<!--</Teleport>-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
<script setup>
|
||||||
|
import CloseIcon from '../assets/icons/close.svg'
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="windowContainer" id="welcomePannel" ref="welcomePannel" :style="{top:coordY+'px', left:coordX+'px'}" @mousedown.left="$emit('focus')">
|
<div class="windowContainer" id="welcomePannel" ref="welcomePannel" :style="{top:coordY+'px', left:coordX+'px'}" @mousedown.left="$emit('focus')">
|
||||||
<Moveable
|
<Moveable
|
||||||
@@ -9,7 +13,9 @@
|
|||||||
<div class="windowTitle">
|
<div class="windowTitle">
|
||||||
<div class="titleContent">
|
<div class="titleContent">
|
||||||
<p>./Welcome:{{guestName}}</p>
|
<p>./Welcome:{{guestName}}</p>
|
||||||
<button type="button" class="titleBtn" @mousedown.stop @touchstart="$emit('close')" @click="$emit('close')"><p>×</p></button>
|
<button type="button" class="titleBtn" @mousedown.stop @touchstart="$emit('close')" @click="$emit('close')">
|
||||||
|
<CloseIcon name="close" class="icon"/>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p id="welcomeTxt">
|
<p id="welcomeTxt">
|
||||||
|
|||||||
Reference in New Issue
Block a user