fix: added a logout button in the header
This commit is contained in:
parent
aee8e8797c
commit
4044a95dd1
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<header>
|
<header class="header">
|
||||||
<a
|
<a
|
||||||
href="https://www.bordeaux-inp.fr/fr/lincubateur-bordeaux-inpulse"
|
href="https://www.bordeaux-inp.fr/fr/lincubateur-bordeaux-inpulse"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@ -11,26 +11,57 @@
|
|||||||
class="logo"
|
class="logo"
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<div class="header-actions">
|
||||||
|
<button class="logout" @click="store.logout">Logout</button>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script setup lang="ts">
|
||||||
export default {
|
import { store } from "@/main.ts";
|
||||||
name: "HeaderComponent",
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
header img {
|
@import "@/components/canvas/style-project.css";
|
||||||
width: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 10px 20px;
|
padding: 15px 30px;
|
||||||
background-color: #fff;
|
background-color: #f9f9f9;
|
||||||
border-bottom: 2px solid #ddd;
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-actions {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 20px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.logout {
|
||||||
|
background-color: #009cde;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 10px 15px;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 14px;
|
||||||
|
border-radius: 5px;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: background-color 0.2s ease;
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logout:hover {
|
||||||
|
background-color: #007bad;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user