Files
Support-Agent/maquettes/support/home_template.html
T

107 lines
5.6 KiB
HTML
Raw Normal View History

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>AIMsight Home</title>
<style>
/* Maquette côté support : page d'accueil (toutes les stations) + section Status. Contenu injecté par home.py. */
:root {
--sidebar: #2a3f54; --topbar: #ededed; --page: #f7f7f7; --panel-border: #e6e9ed;
--muted: #73879c; --text: #333; --line: #dee2e6;
--green: #008300; --orange: #eda100; --red: #d03b3b; --spark: #26b99a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--muted);
font: 13px/1.47 "Helvetica Neue", Roboto, Arial, "Droid Sans", sans-serif; }
svg.i { width: 15px; height: 15px; fill: currentColor; vertical-align: -2px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 230px; background: var(--sidebar); color: #fff; }
.brand { height: 57px; padding: 0 10px; display: flex; align-items: center; font-size: 22px; }
.profile { display: flex; align-items: center; gap: 22px; padding: 18px 12px 24px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: #9b59b6; border: 3px solid #fff;
display: grid; place-items: center; font-size: 19px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.profile small { display: block; color: #bab8b8; font-size: 13px; }
.profile span { font-size: 14px; }
.section { padding: 0 23px 18px; font-size: 11px; font-weight: bold; letter-spacing: .3px; }
.nav a { display: flex; align-items: center; gap: 4px; padding: 13px 15px; color: #e7e7e7;
text-decoration: none; font-weight: bold; }
.nav a.active { background: #34495e; border-right: 5px solid #1abb9c; }
.nav a .chev { margin-left: auto; }
.topbar { margin-left: 230px; height: 52px; background: var(--topbar); border-bottom: 1px solid #d9dee4;
display: flex; align-items: center; justify-content: space-between; padding: 0 15px; }
.topbar .burger { color: #5a738e; width: 26px; height: 26px; }
.user { display: flex; align-items: center; gap: 10px; color: #515356; }
.user .avatar { width: 29px; height: 29px; border-width: 0; font-size: 11px; box-shadow: none; }
main { margin-left: 230px; padding: 10px 20px; }
.panel { background: #fff; border: 1px solid var(--panel-border); padding: 10px 17px 20px; margin-bottom: 20px; }
.panel-title { border-bottom: 2px solid var(--panel-border); padding: 4px 6px 12px; }
.panel-title h2 { margin: 0; font-size: 18px; font-weight: 400; }
.panel-title h2 small { font-size: 14px; margin-left: 10px; }
/* Ajout : section Status, une notification par station Orange ou Red, avec le lien vers sa vue client. */
.notes { list-style: none; margin: 12px 6px 0; padding: 0; }
.notes li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px;
border: 1px solid var(--line); border-radius: 4px; color: var(--text); font-size: 15px; }
.notes li + li { margin-top: 8px; }
.notes li.empty { color: var(--muted); }
.notes a { margin-left: auto; color: #2a78d6; text-decoration: none; font-weight: bold; }
.notes a:hover { text-decoration: underline; }
.status { padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: bold; color: #fff; }
.status.ORANGE { background: var(--orange); color: #1a1a1a; } .status.RED { background: var(--red); }
.meta { color: var(--muted); font-size: 13px; }
/* Vignettes des stations, comme sur le site : nom, dernière tension, courbe de la fenêtre. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 0; margin-bottom: 20px; }
.tile { display: block; padding: 2px 12px 2px 18px; border-left: 2px solid #ddd; color: var(--muted); text-decoration: none; }
a.tile:hover { background: #eef1f4; }
.tile-head { display: flex; justify-content: space-between; }
.tile-head span { font-weight: bold; }
.tile svg { display: block; width: 100%; height: 40px; margin-top: 6px; background: #ececec; }
.tile path { fill: none; stroke: var(--spark); stroke-width: 2; vector-effect: non-scaling-stroke; }
.tile.none { opacity: .5; }
.rows div { padding: 14px 6px; border-bottom: 2px solid var(--panel-border); font-size: 18px; }
</style>
</head>
<body>
<svg style="display:none">
<symbol id="home" viewBox="0 0 20 20"><path d="M10 2 1 10h3v8h5v-5h2v5h5v-8h3z"/></symbol>
<symbol id="list" viewBox="0 0 20 20"><path d="M1 3h3v3H1zm5 0h13v3H6zM1 8.5h3v3H1zm5 0h13v3H6zM1 14h3v3H1zm5 0h13v3H6z"/></symbol>
<symbol id="chev" viewBox="0 0 20 20"><path d="M4 7l6 6 6-6" fill="none" stroke="currentColor" stroke-width="2.2"/></symbol>
<symbol id="burger" viewBox="0 0 20 20"><path d="M2 4h16v2.4H2zm0 4.8h16v2.4H2zm0 4.8h16V16H2z"/></symbol>
</svg>
<aside class="sidebar">
<div class="brand">AIMsight monitoring</div>
<div class="profile"><div class="avatar">MP</div><div><small>Welcome,</small><span>Maxime Pasquier</span></div></div>
<div class="section">GENERAL</div>
<nav class="nav">
<a class="active"><svg class="i"><use href="#home"/></svg>Home</a>
<a><svg class="i"><use href="#list"/></svg>Explore<svg class="i chev"><use href="#chev"/></svg></a>
</nav>
</aside>
<header class="topbar">
<svg class="burger"><use href="#burger"/></svg>
<div class="user"><div class="avatar">MP</div>Maxime Pasquier ▾</div>
</header>
<main>
<section class="panel">
<div class="panel-title"><h2>Status<small><!--COUNT--></small></h2></div>
<ul class="notes"><!--STATUS--></ul>
</section>
<div class="grid">
<!--TILES-->
</div>
<section class="panel rows">
<div>Projects</div>
<div>Archive</div>
</section>
</main>
</body>
</html>