75 lines
1.4 KiB
Vue
75 lines
1.4 KiB
Vue
<!-- En-tête du chat -->
|
|
<template>
|
|
<header class="chat-header">
|
|
<div class="header-left">
|
|
<span class="xip-title">XIP</span>
|
|
<span class="chat-label">Chat</span>
|
|
<span class="online-dot" aria-hidden="true" />
|
|
<span class="online-count">{{ connectedCount }} connectés</span>
|
|
</div>
|
|
<div class="channel-badge"># général</div>
|
|
</header>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
defineProps<{ connectedCount: number }>();
|
|
</script>
|
|
|
|
<style scoped>
|
|
.chat-header {
|
|
height: 52px;
|
|
flex-shrink: 0;
|
|
background: #0e0e16;
|
|
border-bottom: 1px solid #1a1a2a;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 16px 0 20px;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.xip-title {
|
|
font-family: Arial, sans-serif;
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: #00eeff;
|
|
text-shadow: 0 0 10px #00ccff99;
|
|
}
|
|
|
|
.chat-label {
|
|
font-family: Arial, sans-serif;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
color: #aaaacc;
|
|
}
|
|
|
|
.online-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: #00ff88;
|
|
box-shadow: 0 0 6px #00ff44;
|
|
}
|
|
|
|
.online-count {
|
|
font-family: Arial, sans-serif;
|
|
font-size: 11px;
|
|
color: #33ff66;
|
|
}
|
|
|
|
.channel-badge {
|
|
background: #131320;
|
|
border: 1px solid #222233;
|
|
border-radius: 12px;
|
|
padding: 4px 14px;
|
|
font-family: Arial, sans-serif;
|
|
font-size: 10px;
|
|
color: #5555aa;
|
|
}
|
|
</style>
|