header for the site, and making the 1st layout for the components, still trying to figure out the framework
This commit is contained in:
@ -1,11 +1,48 @@
|
||||
<script setup lang="ts">
|
||||
import { RouterLink, RouterView } from 'vue-router'
|
||||
import HelloWorld from './components/HelloWorld.vue'
|
||||
import Header from './components/Header.vue';
|
||||
import ProjectComp from './components/Project-comp.vue';
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<RouterView />
|
||||
<Header />
|
||||
<div id="main">
|
||||
<ProjectComp
|
||||
v-for="(project, index) in projects"
|
||||
:key="index"
|
||||
:projectName="project.name"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: 'App',
|
||||
components: {
|
||||
Header,
|
||||
ProjectComp,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
projects: [
|
||||
{
|
||||
name: 'Projet Alpha',
|
||||
//link: './project-alpha.html',
|
||||
//members: ['Alice', 'Bob', 'Charlie'],
|
||||
},
|
||||
{
|
||||
name: 'Projet Beta',
|
||||
//link: './project-beta.html',
|
||||
//members: ['David', 'Eve', 'Frank'],
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
</script>
|
26
front/MyINPulse-front/src/components/Header.vue
Normal file
26
front/MyINPulse-front/src/components/Header.vue
Normal file
@ -0,0 +1,26 @@
|
||||
<template>
|
||||
<header>
|
||||
<img src="./icons/logo inpulse.png" alt="INPulse" />
|
||||
</header>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: 'Header',
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
header img {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
header{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 10px 20px;
|
||||
background-color: #fff;
|
||||
border-bottom: 2px solid #ddd;
|
||||
}
|
||||
</style>
|
18
front/MyINPulse-front/src/components/Project-comp.vue
Normal file
18
front/MyINPulse-front/src/components/Project-comp.vue
Normal file
@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<div class="project">
|
||||
<div class="project-header">
|
||||
<h2>{{ projectName }}</h2>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: 'Project',
|
||||
props: {
|
||||
projectName: String,
|
||||
}
|
||||
}
|
||||
</script>
|
BIN
front/MyINPulse-front/src/components/icons/logo inpulse.png
Normal file
BIN
front/MyINPulse-front/src/components/icons/logo inpulse.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
@ -25,6 +25,7 @@ keycloakService.CallInit(() => {
|
||||
|
||||
})
|
||||
|
||||
createApp(App).mount('#app');
|
||||
|
||||
// TODO: fix the comment
|
||||
/*
|
||||
|
Reference in New Issue
Block a user