front_foundation #5
@ -16,6 +16,7 @@ import ErrorWrapper from "@/views/errorWrapper.vue";
|
|||||||
:key="index"
|
:key="index"
|
||||||
:projectName="project.name"
|
:projectName="project.name"
|
||||||
:listName="project.members"
|
:listName="project.members"
|
||||||
|
:projectLink="project.link"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div id="canvas">
|
<div id="canvas">
|
||||||
@ -59,12 +60,12 @@ export default {
|
|||||||
projects: [
|
projects: [
|
||||||
{
|
{
|
||||||
name: 'Projet Alpha',
|
name: 'Projet Alpha',
|
||||||
//link: './project-alpha.html',
|
link: '/project-alpha.html',//to test
|
||||||
members: ['Alice', 'Bob', 'Charlie'],
|
members: ['Alice', 'Bob', 'Charlie'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Projet Beta',
|
name: 'Projet Beta',
|
||||||
//link: './project-beta.html',
|
link: './project-beta.html', //to test
|
||||||
members: ['David', 'Eve', 'Frank'],
|
members: ['David', 'Eve', 'Frank'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
0
front/MyINPulse-front/src/components/Agenda.vue
Normal file
0
front/MyINPulse-front/src/components/Agenda.vue
Normal file
@ -1,9 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="project">
|
<div class="project">
|
||||||
<div class="project-header">
|
<div class="project-header">
|
||||||
<h2>{{ projectName }}</h2>
|
<h2 @click="goToLink">{{ projectName }}</h2>
|
||||||
mohamed_maoulainine marked this conversation as resolved
Outdated
|
|||||||
<div class="project-buttons">
|
<div class="project-buttons">
|
||||||
<button class="info-btn"><a href="./project-example.html">more infos</a></button>
|
|
||||||
<button class="contact-btn">Contact</button>
|
<button class="contact-btn">Contact</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -16,16 +15,24 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<script lang="ts">
|
<script setup lang="ts">
|
||||||
export default {
|
import { defineProps } from "vue";
|
||||||
name: 'Project',
|
|
||||||
props: {
|
|
||||||
projectName: String,
|
const props = defineProps<{
|
||||||
listName: Array as() => String[], //something isn't working
|
projectName: string;
|
||||||
}
|
listName: string[];
|
||||||
|
projectLink: string;
|
||||||
|
}>();
|
||||||
|
|
||||||
|
const goToLink = () => {
|
||||||
|
if (props.projectLink) {
|
||||||
|
window.location.href = props.projectLink;
|
||||||
piair marked this conversation as resolved
Outdated
piair
commented
C'est comme un href, a ne pas utiliser C'est comme un href, a ne pas utiliser
je le corrige après parce que je n'ai pas une idée claire sur comment sera le résultat du request, pour le moment je ferais en sorte de rediriger tout les projets vers le même canvas. je le corrige après parce que je n'ai pas une idée claire sur comment sera le résultat du request, pour le moment je ferais en sorte de rediriger tout les projets vers le même canvas.
|
|||||||
}
|
}
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.project {
|
.project {
|
||||||
background: linear-gradient(to right, #f4f4f4, #ffffff);
|
background: linear-gradient(to right, #f4f4f4, #ffffff);
|
||||||
@ -57,4 +64,52 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.info-btn {
|
||||||
|
background-color: #4CAF50;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-btn:hover {
|
||||||
|
background-color: #45a049;
|
||||||
|
transform: scale(1.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-btn {
|
||||||
|
background-color: #007BFF;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-btn:hover {
|
||||||
|
background-color: #0056b3;
|
||||||
|
transform: scale(1.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.project-body {
|
||||||
|
margin-top: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-body p {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #555;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-body ul {
|
||||||
|
list-style-type: disc;
|
||||||
|
margin: 0;
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-body ul li {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
Loading…
x
Reference in New Issue
Block a user
Toute la case devrait être clickable, pas que le titre