<template>
    <header class="header">
        <a
            href="https://www.bordeaux-inp.fr/fr/lincubateur-bordeaux-inpulse"
            target="_blank"
            rel="noopener"
        >
            <img
                src="./icons/logo inpulse.png"
                alt="INPulse Logo"
                class="logo"
            />
        </a>

        <div class="header-actions">
            <button class="logout" @click="store.logout">Logout</button>
        </div>
    </header>
</template>

<script setup lang="ts">
import { store } from "@/main.ts";
</script>

<style scoped>
@import "@/components/canvas/style-project.css";

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #f9f9f9;
    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>
