Spaces:
Running
Colonne 1 (gauche) : menu + titre « Espace Codage »
Browse filesColonne 2 (milieu) : vide + barre en bas avec :
à gauche : + et trombone
au centre : barre de recherche / saisie
à droite : micro + flèche envoyer
Colonne 3 (droite) : panneau “Aperçu” avec une barre d’outils + message “Échec du chargement de l’aperçu.”
Copie-colle tout ça dans un fichier : espace-codage.html puis ouvre-le dans ton navigateur.
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Espace Codage</title>
<style>
:root{
--bg:#0b0f16;
--panel:#0f1521;
--panel2:#0c111b;
--line:rgba(255,255,255,.08);
--text:rgba(255,255,255,.92);
--muted:rgba(255,255,255,.65);
--muted2:rgba(255,255,255,.45);
--shadow: 0 18px 60px rgba(0,0,0,.45);
--r:16px;
--r2:14px;
--focus: rgba(93, 173, 255, .35);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
margin:0;
background: radial-gradient(1200px 700px at 18% 10%, rgba(93,173,255,.12), transparent 55%),
radial-gradient(1200px 800px at 85% 20%, rgba(255,145,85,.08), transparent 60%),
var(--bg);
color:var(--text);
font: 14px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica,Arial;
overflow:hidden;
}
/* Layout 3 colonnes */
.app{
height:100%;
display:grid;
grid-template-columns: 320px 1fr 520px;
gap:14px;
padding:14px;
}
.col{
background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
border:1px solid var(--line);
border-radius: var(--r);
box-shadow: var(--shadow);
overflow:hidden;
min-width: 0;
}
/* Colonne gauche */
.sidebar{
display:flex;
flex-direction:column;
background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
}
.sidebarTop{
padding:14px 14px 10px;
border-bottom:1px solid var(--line);
display:flex;
align-items:center;
gap:10px;
}
.brandDot{
width:10px;height:10px;border-radius:50%;
background: radial-gradient(circle at 30% 30%, #7fd3ff, #3a78ff);
box-shadow:0 0 0 4px rgba(58,120,255,.14);
}
.brandTitle{
font-weight:700;
letter-spacing:.2px;
font-size:14px;
}
.sidebarSearch{
padding:12px 14px;
display:flex;
gap:10px;
align-items:center;
border-bottom:1px solid var(--line);
background: rgba(0,0,0,.12);
}
.sIcon{
width:34px;height:34px;border-radius:12px;
display:grid;place-items:center;
background: rgba(255,255,255,.04);
border:1px solid var(--line);
color:var(--muted);
user-select:none;
}
.sInput{
flex:1;
display:flex;align-items:center;
background: rgba(255,255,255,.03);
border:1px solid var(--line);
border-radius:12px;
padding:9px 10px;
color:var(--muted);
gap:8px;
}
.sInput input{
width:100%;
border:0; outline:0;
background:transparent;
color:var(--text);
font: inherit;
}
.sInput input::placeholder{color:var(--muted2)}
.nav{
padding:10px 10px 14px;
overflow:auto;
}
.navSection{
padding:10px 8px 6px;
color:var(--muted2);
font-size:12px;
text-transform:uppercase;
letter-spacing:.12em;
}
.navItem{
display:flex;
align-items:center;
gap:10px;
padding:10px 10px;
border-radius:12px;
cursor:pointer;
color:var(--muted);
border:1px solid transparent;
user-select:none;
}
.navItem:hover{
background: rgba(255,255,255,.04);
border-color: rgba(255,255,255,.06);
color:var(--text);
}
.navItem.active{
background: rgba(93,173,255,.10);
border-color: rgba(93,173,255,.18);
color:var(--text);
}
.navItem .ico{
width:30px;height:30px;border-radius:12px;
display:grid;place-items:center;
background: rgba(255,255,255,.04);
border:1px solid var(--line);
color:var(--muted);
flex:0 0 auto;
}
.navItem .label{
flex:1;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}
.sidebarFooter{
margin-top:auto;
padding:12px 14px;
border-top:1px solid var(--line);
background: rgba(0,0,0,.10);
display:flex;
justify-content:space-between;
align-items:center;
gap:10px;
}
.tinyBtn{
display:flex;align-items:center;gap:8px;
background: rgba(255,255,255,.04);
border:1px solid var(--line);
padding:9px 10px;
border-radius:12px;
color:var(--muted);
cursor:pointer;
user-select:none;
}
.tinyBtn:hover{color:var(--text); background: rgba(255,255,255,.055);}
.tinyBtn span{font-size:12px;color:var(--muted2)}
/* Colonne milieu (vide + barre en bas) */
.center{
display:flex;
flex-direction:column;
background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.06));
}
.centerTop{
padding:12px 14px;
border-bottom:1px solid var(--line);
display:flex;
align-items:center;
gap:10px;
background: rgba(0,0,0,.10);
}
.pill{
padding:7px 10px;
border-radius:999px;
border:1px solid var(--line);
background: rgba(255,255,255,.03);
color:var(--muted);
font-size:12px;
}
.centerBody{
flex:1;
position:relative;
overflow:auto;
}
.emptyHint{
position:absolute;
inset:0;
display:grid;
place-items:center;
color:var(--muted2);
padding:24px;
text-align:center;
}
.composerWrap{
padding:12px 12px 14px;
border-top:1px solid var(--line);
background: rgba(0,0,0,.18);
}
.composer{
display:flex;
align-items:center;
gap:10px;
padding:10px;
border-radius: 16px;
border:1px solid var(--line);
background: rgba(255,255,255,.03);
}
.iconBtn{
width:40px;height:40px;border-radius:14px;
display:grid;place-items:center;
background: rgba(255,255,255,.04);
border:1px solid var(--line);
color:var(--muted);
cursor:pointer;
user-select:none;
flex:0 0 auto;
}
.iconBtn:hover{color:var(--text); background: rgba(255,255,255,.06)}
.iconBtn:active{transform: translateY(1px)}
.composerInput{
flex:1;
display:flex;
align-items:center;
gap:10px;
padding:0 8px;
min-width: 0;
}
.composerInput input{
width:100%;
border:0; outline:0;
background:transparent;
color:var(--text);
font: 14px/1.4 inherit;
padding: 8px 0;
min-width:0;
}
.composerInput input::placeholder{color:var(--muted2)}
.composerInput input:focus{
filter: drop-shadow(0 0 0 var(--focus));
}
.sendBtn{
width:44px;height:44px;border-radius:16px;
display:grid;place-items:center;
border:1px solid rgba(93,173,255,.35);
background: radial-gradient(circle at 30% 30%, rgba(127,211,255,.28), rgba(58,120,255,.22));
color:var(--text);
cursor:pointer;
user-select:none;
flex:0 0 auto;
}
.sendBtn:disabled{
opacity:.45;
cursor:not-allowed;
filter: grayscale(30%);
}
/* Colonne droite (aperçu) */
.preview{
display:flex;
flex-direction:column;
background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
}
.previewTop{
padding:12px 14px;
border-bottom:1px solid var(--line);
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
background: rgba(0,0,0,.10);
}
.previewTopLeft{
display:flex;align-items:center;gap:10px;
min-width:0;
}
.previewTitle{
font-weight:700;
}
.toolRow{
display:flex;align-items:center;gap:8px;
flex-wrap:wrap;
justify-content:flex-end;
}
.tool{
height:34px;
padding:0 10px;
border-radius:12px;
border:1px solid var(--line);
background: rgba(255,255,255,.03);
color:var(--muted);
display:flex;align-items:center;gap:8px;
cursor:pointer;
user-select:none;
}
.tool:hover{color:var(--text); background: rgba(255,255,255,.055)}
.tool .k{color:var(--muted2); font-size:12px}
.previewBody{
flex:1;
display:flex;
flex-direction:column;
background: rgba(0,0,0,.10);
}
.previewCanvas{
flex:1;
display:grid;
place-items:center;
padding:22px;
}
.previewCard{
width:min(420px, 92%);
border-radius: 18px;
border:1px solid var(--line);
background: rgba(255,255,255,.03);
padding:18px;
text-align:center;
color:var(--muted);
}
.ghost{
height:140px;
border-radius:16px;
border:1px dashed rgba(255,255,255,.14);
background:
linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.02), rgba(255,255,255,.04));
opacity:.9;
margin:0 auto 14px;
max-width: 340px;
}
.failTitle{
font-weight:700;
color:var(--text);
margin-bottom:6px;
}
.failMsg{color:var(--muted)}
.previewBottom{
padding:12px 14px;
border-top:1px solid var(--line);
display:flex;
justify-content:space-between;
align-items:center;
gap:10px;
background: rgba(0,0,0,.14);
}
/* Responsive */
@media (max-width: 1200px){
.app{grid-template-columns: 300px 1fr 460px;}
}
@media (max-width: 980px){
body{overflow:auto}
.app{
height:auto;
grid-template-columns: 1fr;
}
.col{min-height: 360px;}
}
</style>
</head>
<body>
<div class="app">
<!-- Colonne 1 : Espace Codage -->
<aside class="col sidebar">
<div class="sidebarTop">
<div class
- README.md +8 -5
- components/nav-item.js +76 -0
- index.html +173 -19
- script.js +36 -0
- style.css +39 -19
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: CodeCraft Haven 🚀
|
| 3 |
+
colorFrom: green
|
| 4 |
+
colorTo: pink
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class NavItem extends HTMLElement {
|
| 2 |
+
constructor() {
|
| 3 |
+
super();
|
| 4 |
+
this.attachShadow({ mode: 'open' });
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
connectedCallback() {
|
| 8 |
+
const icon = this.getAttribute('icon') || 'circle';
|
| 9 |
+
const label = this.getAttribute('label') || 'Item';
|
| 10 |
+
const active = this.hasAttribute('active');
|
| 11 |
+
|
| 12 |
+
this.shadowRoot.innerHTML = `
|
| 13 |
+
<style>
|
| 14 |
+
:host {
|
| 15 |
+
display: block;
|
| 16 |
+
margin-bottom: 0.25rem;
|
| 17 |
+
}
|
| 18 |
+
.nav-item {
|
| 19 |
+
display: flex;
|
| 20 |
+
align-items: center;
|
| 21 |
+
gap: 0.75rem;
|
| 22 |
+
padding: 0.5rem 0.75rem;
|
| 23 |
+
border-radius: 0.75rem;
|
| 24 |
+
cursor: pointer;
|
| 25 |
+
color: rgba(209, 213, 219, 1);
|
| 26 |
+
border: 1px solid transparent;
|
| 27 |
+
transition: all 0.15s ease;
|
| 28 |
+
}
|
| 29 |
+
.nav-item:hover {
|
| 30 |
+
background: rgba(255, 255, 255, 0.04);
|
| 31 |
+
border-color: rgba(255, 255, 255, 0.06);
|
| 32 |
+
color: rgba(255, 255, 255, 1);
|
| 33 |
+
}
|
| 34 |
+
.nav-item.active {
|
| 35 |
+
background: rgba(59, 130, 246, 0.1);
|
| 36 |
+
border-color: rgba(59, 130, 246, 0.18);
|
| 37 |
+
color: rgba(191, 219, 254, 1);
|
| 38 |
+
}
|
| 39 |
+
.icon {
|
| 40 |
+
width: 2rem;
|
| 41 |
+
height: 2rem;
|
| 42 |
+
border-radius: 0.75rem;
|
| 43 |
+
display: flex;
|
| 44 |
+
align-items: center;
|
| 45 |
+
justify-content: center;
|
| 46 |
+
background: rgba(255, 255, 255, 0.04);
|
| 47 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 48 |
+
}
|
| 49 |
+
.label {
|
| 50 |
+
flex: 1;
|
| 51 |
+
overflow: hidden;
|
| 52 |
+
text-overflow: ellipsis;
|
| 53 |
+
white-space: nowrap;
|
| 54 |
+
}
|
| 55 |
+
</style>
|
| 56 |
+
<div class="nav-item ${active ? 'active' : ''}">
|
| 57 |
+
<div class="icon">
|
| 58 |
+
<i data-feather="${icon}"></i>
|
| 59 |
+
</div>
|
| 60 |
+
<div class="label">${label}</div>
|
| 61 |
+
</div>
|
| 62 |
+
`;
|
| 63 |
+
|
| 64 |
+
// Replace feather icons after rendering
|
| 65 |
+
setTimeout(() => {
|
| 66 |
+
if (window.feather) {
|
| 67 |
+
window.feather.replace({
|
| 68 |
+
width: '1rem',
|
| 69 |
+
height: '1rem'
|
| 70 |
+
});
|
| 71 |
+
}
|
| 72 |
+
}, 100);
|
| 73 |
+
}
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
customElements.define('nav-item', NavItem);
|
|
@@ -1,19 +1,173 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="fr">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>CodeCraft Haven | Espace Codage</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<link rel="stylesheet" href="style.css">
|
| 11 |
+
</head>
|
| 12 |
+
<body class="bg-gray-900 text-gray-100 font-sans antialiased">
|
| 13 |
+
<div class="app-container h-screen flex">
|
| 14 |
+
<!-- Sidebar -->
|
| 15 |
+
<aside class="w-80 bg-gray-800 border-r border-gray-700 flex flex-col">
|
| 16 |
+
<div class="p-4 border-b border-gray-700 flex items-center gap-3">
|
| 17 |
+
<div class="w-3 h-3 rounded-full bg-blue-500 shadow-lg shadow-blue-500/30"></div>
|
| 18 |
+
<h1 class="font-bold">Espace Codage</h1>
|
| 19 |
+
</div>
|
| 20 |
+
|
| 21 |
+
<div class="p-3 border-b border-gray-700 flex items-center gap-2 bg-gray-850">
|
| 22 |
+
<button class="p-2 rounded-lg bg-gray-750 hover:bg-gray-700">
|
| 23 |
+
<i data-feather="edit-2" class="w-4 h-4 text-gray-400"></i>
|
| 24 |
+
</button>
|
| 25 |
+
<div class="flex-1 relative">
|
| 26 |
+
<i data-feather="search" class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-500 w-4 h-4"></i>
|
| 27 |
+
<input type="text" placeholder="Rechercher..."
|
| 28 |
+
class="w-full pl-9 pr-3 py-2 bg-gray-750 rounded-lg text-sm focus:outline-none focus:ring-1 focus:ring-blue-500">
|
| 29 |
+
</div>
|
| 30 |
+
</div>
|
| 31 |
+
|
| 32 |
+
<nav class="flex-1 overflow-y-auto p-2">
|
| 33 |
+
<h2 class="text-xs uppercase tracking-wider text-gray-500 px-3 py-2">Projets</h2>
|
| 34 |
+
<a href="#" class="flex items-center gap-3 px-3 py-2 rounded-lg bg-blue-900/30 border border-blue-800/50 text-blue-200 mb-1">
|
| 35 |
+
<div class="p-2 rounded-lg bg-blue-900/50 border border-blue-800/50">
|
| 36 |
+
<i data-feather="code" class="w-4 h-4"></i>
|
| 37 |
+
</div>
|
| 38 |
+
<span class="truncate">Espace Codage - Projet 1</span>
|
| 39 |
+
</a>
|
| 40 |
+
<a href="#" class="flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-gray-750/50 border border-transparent hover:border-gray-700 text-gray-300 mb-1">
|
| 41 |
+
<div class="p-2 rounded-lg bg-gray-750 border border-gray-700">
|
| 42 |
+
<i data-feather="code" class="w-4 h-4"></i>
|
| 43 |
+
</div>
|
| 44 |
+
<span class="truncate">Espace Codage - Projet 2</span>
|
| 45 |
+
</a>
|
| 46 |
+
|
| 47 |
+
<h2 class="text-xs uppercase tracking-wider text-gray-500 px-3 py-2 mt-4">Raccourcis</h2>
|
| 48 |
+
<a href="#" class="flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-gray-750/50 border border-transparent hover:border-gray-700 text-gray-300 mb-1">
|
| 49 |
+
<div class="p-2 rounded-lg bg-gray-750 border border-gray-700">
|
| 50 |
+
<i data-feather="book" class="w-4 h-4"></i>
|
| 51 |
+
</div>
|
| 52 |
+
<span class="truncate">Bibliothèque</span>
|
| 53 |
+
</a>
|
| 54 |
+
<a href="#" class="flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-gray-750/50 border border-transparent hover:border-gray-700 text-gray-300 mb-1">
|
| 55 |
+
<div class="p-2 rounded-lg bg-gray-750 border border-gray-700">
|
| 56 |
+
<i data-feather="settings" class="w-4 h-4"></i>
|
| 57 |
+
</div>
|
| 58 |
+
<span class="truncate">Paramètres</span>
|
| 59 |
+
</a>
|
| 60 |
+
</nav>
|
| 61 |
+
|
| 62 |
+
<div class="p-3 border-t border-gray-700 flex justify-between bg-gray-850">
|
| 63 |
+
<button class="flex items-center gap-1 px-3 py-2 rounded-lg text-sm bg-gray-750 hover:bg-gray-700 border border-gray-700">
|
| 64 |
+
<i data-feather="share-2" class="w-4 h-4"></i>
|
| 65 |
+
<span>Partager</span>
|
| 66 |
+
<span class="text-xs text-gray-500 ml-1">inviter</span>
|
| 67 |
+
</button>
|
| 68 |
+
<button class="flex items-center gap-1 px-3 py-2 rounded-lg text-sm bg-gray-750 hover:bg-gray-700 border border-gray-700">
|
| 69 |
+
<i data-feather="user" class="w-4 h-4"></i>
|
| 70 |
+
<span class="text-xs text-gray-500">profil</span>
|
| 71 |
+
</button>
|
| 72 |
+
</div>
|
| 73 |
+
</aside>
|
| 74 |
+
|
| 75 |
+
<!-- Main Content -->
|
| 76 |
+
<main class="flex-1 flex flex-col bg-gray-850/50">
|
| 77 |
+
<div class="p-3 border-b border-gray-700 flex gap-2 bg-gray-850">
|
| 78 |
+
<span class="text-xs px-3 py-1 rounded-full bg-gray-800 border border-gray-700 text-gray-400">Aperçu</span>
|
| 79 |
+
<span class="text-xs px-3 py-1 rounded-full bg-gray-800 border border-gray-700 text-gray-400">Projet</span>
|
| 80 |
+
<span class="text-xs px-3 py-1 rounded-full bg-gray-800 border border-gray-700 text-gray-400">/</span>
|
| 81 |
+
</div>
|
| 82 |
+
|
| 83 |
+
<div class="flex-1 flex items-center justify-center">
|
| 84 |
+
<div class="text-center max-w-md p-6">
|
| 85 |
+
<h3 class="font-bold text-lg mb-1">Zone centrale vide</h3>
|
| 86 |
+
<p class="text-gray-400">La barre de recherche / saisie reste en bas, comme demandé.</p>
|
| 87 |
+
</div>
|
| 88 |
+
</div>
|
| 89 |
+
|
| 90 |
+
<div class="p-3 border-t border-gray-700 bg-gray-850">
|
| 91 |
+
<div class="flex items-center gap-2 p-2 rounded-xl bg-gray-800 border border-gray-700">
|
| 92 |
+
<button class="p-2 rounded-lg hover:bg-gray-700 text-gray-400 hover:text-gray-200">
|
| 93 |
+
<i data-feather="plus" class="w-5 h-5"></i>
|
| 94 |
+
</button>
|
| 95 |
+
<button class="p-2 rounded-lg hover:bg-gray-700 text-gray-400 hover:text-gray-200">
|
| 96 |
+
<i data-feather="paperclip" class="w-5 h-5"></i>
|
| 97 |
+
</button>
|
| 98 |
+
|
| 99 |
+
<input type="text" placeholder="Rechercher / écrire..."
|
| 100 |
+
class="flex-1 bg-transparent px-3 py-2 focus:outline-none text-sm">
|
| 101 |
+
|
| 102 |
+
<button class="p-2 rounded-lg hover:bg-gray-700 text-gray-400 hover:text-gray-200">
|
| 103 |
+
<i data-feather="mic" class="w-5 h-5"></i>
|
| 104 |
+
</button>
|
| 105 |
+
<button class="p-2 rounded-lg bg-blue-600 hover:bg-blue-500 text-white disabled:opacity-50" disabled>
|
| 106 |
+
<i data-feather="send" class="w-5 h-5"></i>
|
| 107 |
+
</button>
|
| 108 |
+
</div>
|
| 109 |
+
</div>
|
| 110 |
+
</main>
|
| 111 |
+
|
| 112 |
+
<!-- Preview Panel -->
|
| 113 |
+
<aside class="w-96 bg-gray-800 border-l border-gray-700 flex flex-col">
|
| 114 |
+
<div class="p-3 border-b border-gray-700 flex justify-between items-center bg-gray-850">
|
| 115 |
+
<h2 class="font-bold">Aperçu</h2>
|
| 116 |
+
<div class="flex gap-1">
|
| 117 |
+
<button class="p-2 rounded-lg hover:bg-gray-700 text-gray-400 hover:text-gray-200">
|
| 118 |
+
<i data-feather="arrow-left" class="w-4 h-4"></i>
|
| 119 |
+
</button>
|
| 120 |
+
<button class="p-2 rounded-lg hover:bg-gray-700 text-gray-400 hover:text-gray-200">
|
| 121 |
+
<i data-feather="arrow-right" class="w-4 h-4"></i>
|
| 122 |
+
</button>
|
| 123 |
+
<button class="p-2 rounded-lg hover:bg-gray-700 text-gray-400 hover:text-gray-200">
|
| 124 |
+
<i data-feather="refresh-ccw" class="w-4 h-4"></i>
|
| 125 |
+
</button>
|
| 126 |
+
<button class="p-2 rounded-lg hover:bg-gray-700 text-gray-400 hover:text-gray-200">
|
| 127 |
+
<i data-feather="maximize" class="w-4 h-4"></i>
|
| 128 |
+
</button>
|
| 129 |
+
<button class="flex items-center gap-1 px-3 py-1 rounded-lg text-sm bg-gray-750 hover:bg-gray-700 border border-gray-700">
|
| 130 |
+
<i data-feather="edit" class="w-4 h-4"></i>
|
| 131 |
+
<span>Modifier</span>
|
| 132 |
+
</button>
|
| 133 |
+
</div>
|
| 134 |
+
</div>
|
| 135 |
+
|
| 136 |
+
<div class="flex-1 flex items-center justify-center bg-gray-850/30">
|
| 137 |
+
<div class="w-full max-w-sm p-6 text-center">
|
| 138 |
+
<div class="h-40 bg-gray-800 rounded-xl border-2 border-dashed border-gray-700 mb-4"></div>
|
| 139 |
+
<h3 class="font-bold text-lg mb-1">Échec du chargement de l'aperçu.</h3>
|
| 140 |
+
<p class="text-gray-400">Vérifie l'URL / le serveur local, puis rafraîchis.</p>
|
| 141 |
+
</div>
|
| 142 |
+
</div>
|
| 143 |
+
|
| 144 |
+
<div class="p-3 border-t border-gray-700 flex justify-between text-sm bg-gray-850">
|
| 145 |
+
<span class="text-gray-500">Statut: <span class="text-gray-400">Hors ligne</span></span>
|
| 146 |
+
<span class="text-gray-500">Mode: <span class="text-gray-400">Preview</span></span>
|
| 147 |
+
</div>
|
| 148 |
+
</aside>
|
| 149 |
+
</div>
|
| 150 |
+
|
| 151 |
+
<script>
|
| 152 |
+
feather.replace();
|
| 153 |
+
|
| 154 |
+
// Simple interaction for the message input
|
| 155 |
+
const messageInput = document.querySelector('main input');
|
| 156 |
+
const sendButton = document.querySelector('main button:disabled');
|
| 157 |
+
|
| 158 |
+
messageInput.addEventListener('input', () => {
|
| 159 |
+
sendButton.disabled = messageInput.value.trim() === '';
|
| 160 |
+
});
|
| 161 |
+
|
| 162 |
+
// Navigation items active state
|
| 163 |
+
const navItems = document.querySelectorAll('nav a');
|
| 164 |
+
navItems.forEach(item => {
|
| 165 |
+
item.addEventListener('click', () => {
|
| 166 |
+
navItems.forEach(i => i.classList.remove('bg-blue-900/30', 'border-blue-800/50', 'text-blue-200'));
|
| 167 |
+
item.classList.add('bg-blue-900/30', 'border-blue-800/50', 'text-blue-200');
|
| 168 |
+
});
|
| 169 |
+
});
|
| 170 |
+
</script>
|
| 171 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 172 |
+
</body>
|
| 173 |
+
</html>
|
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 2 |
+
// Initialize tooltips for icons
|
| 3 |
+
const initTooltips = () => {
|
| 4 |
+
const buttons = document.querySelectorAll('button');
|
| 5 |
+
buttons.forEach(button => {
|
| 6 |
+
const icon = button.querySelector('[data-feather]');
|
| 7 |
+
if (icon) {
|
| 8 |
+
const iconName = icon.getAttribute('data-feather');
|
| 9 |
+
button.setAttribute('title', iconName.charAt(0).toUpperCase() + iconName.slice(1));
|
| 10 |
+
}
|
| 11 |
+
});
|
| 12 |
+
};
|
| 13 |
+
|
| 14 |
+
// Handle message sending
|
| 15 |
+
const setupMessageInput = () => {
|
| 16 |
+
const input = document.querySelector('main input');
|
| 17 |
+
const sendBtn = document.querySelector('main button:disabled');
|
| 18 |
+
|
| 19 |
+
input.addEventListener('keydown', (e) => {
|
| 20 |
+
if (e.key === 'Enter' && input.value.trim() !== '') {
|
| 21 |
+
e.preventDefault();
|
| 22 |
+
console.log('Message sent:', input.value.trim());
|
| 23 |
+
input.value = '';
|
| 24 |
+
sendBtn.disabled = true;
|
| 25 |
+
}
|
| 26 |
+
});
|
| 27 |
+
};
|
| 28 |
+
|
| 29 |
+
// Initialize all functionality
|
| 30 |
+
const init = () => {
|
| 31 |
+
initTooltips();
|
| 32 |
+
setupMessageInput();
|
| 33 |
+
};
|
| 34 |
+
|
| 35 |
+
init();
|
| 36 |
+
});
|
|
@@ -1,28 +1,48 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
font-size: 15px;
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@tailwind base;
|
| 2 |
+
@tailwind components;
|
| 3 |
+
@tailwind utilities;
|
| 4 |
+
|
| 5 |
+
/* Custom scrollbar */
|
| 6 |
+
::-webkit-scrollbar {
|
| 7 |
+
width: 8px;
|
| 8 |
+
height: 8px;
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
::-webkit-scrollbar-track {
|
| 12 |
+
background: rgba(255, 255, 255, 0.05);
|
| 13 |
+
border-radius: 4px;
|
| 14 |
}
|
| 15 |
|
| 16 |
+
::-webkit-scrollbar-thumb {
|
| 17 |
+
background: rgba(255, 255, 255, 0.15);
|
| 18 |
+
border-radius: 4px;
|
| 19 |
}
|
| 20 |
|
| 21 |
+
::-webkit-scrollbar-thumb:hover {
|
| 22 |
+
background: rgba(255, 255, 255, 0.25);
|
|
|
|
|
|
|
|
|
|
| 23 |
}
|
| 24 |
|
| 25 |
+
/* Smooth transitions */
|
| 26 |
+
button, a, input {
|
| 27 |
+
transition: all 0.15s ease;
|
|
|
|
|
|
|
|
|
|
| 28 |
}
|
| 29 |
|
| 30 |
+
/* Focus styles */
|
| 31 |
+
input:focus, button:focus {
|
| 32 |
+
outline: none;
|
| 33 |
+
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
|
| 34 |
}
|
| 35 |
+
|
| 36 |
+
/* Animation for empty state */
|
| 37 |
+
@keyframes pulse {
|
| 38 |
+
0%, 100% {
|
| 39 |
+
opacity: 0.6;
|
| 40 |
+
}
|
| 41 |
+
50% {
|
| 42 |
+
opacity: 0.3;
|
| 43 |
+
}
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
.empty-state {
|
| 47 |
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
| 48 |
+
}
|