refactor: remove Bilans component and related styles to clean up project structure

This commit is contained in:
sebvtl728 2026-06-22 10:45:58 +02:00
parent 9d8e4e6314
commit ff5d08ed72
6 changed files with 2 additions and 1809 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -1,610 +0,0 @@
.bilan-wrapper {
min-height: 100vh;
padding: 2.5rem 1.5rem;
background: radial-gradient(circle at top, #1f2847, #0b1425 65%);
display: flex;
justify-content: center;
align-items: flex-start;
position: relative;
overflow: hidden;
}
.logo-bg {
position: absolute;
width: 80%;
max-width: 900px;
opacity: 0.07;
inset: 0;
margin: auto;
pointer-events: none;
filter: grayscale(1);
}
.bilan-container {
position: relative;
width: 100%;
max-width: 1100px;
background: rgba(255, 255, 255, 0.08);
border-radius: 20px;
padding: 30px;
color: #fff;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
border: 1px solid rgba(255, 255, 255, 0.25);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
z-index: 1;
}
.header {
text-align: center;
margin-bottom: 20px;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.back-btn {
align-self: flex-start;
border: none;
border-radius: 999px;
padding: 8px 18px;
font-weight: 600;
cursor: pointer;
color: #fff;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.25);
backdrop-filter: blur(6px);
transition: all 0.25s ease;
}
.back-btn:hover {
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.25);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.header h1 {
margin: 0;
font-size: 30px;
font-weight: 700;
background: linear-gradient(135deg, #93c5fd, #c084fc);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.header h2 {
margin: 6px 0 0;
color: rgba(255, 255, 255, 0.85);
font-weight: 500;
}
.controls {
background: rgba(255, 255, 255, 0.08);
border-radius: 14px;
padding: 14px;
margin: 16px 0;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 12px;
justify-content: center;
border: 1px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(12px);
}
.controls input,
.controls select {
padding: 10px 14px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.25);
background: rgba(255, 255, 255, 0.12);
color: #fff;
min-width: 180px;
}
.controls input::placeholder {
color: rgba(255, 255, 255, 0.6);
}
.bilan-container button,
.ai-actions button {
border: none;
border-radius: 999px;
padding: 10px 20px;
font-weight: 600;
cursor: pointer;
color: #fff;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.25);
backdrop-filter: blur(6px);
transition: all 0.25s ease;
}
.bilan-container button:hover,
.ai-actions button:hover {
transform: translateY(-2px) scale(1.03);
background: rgba(255, 255, 255, 0.25);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.bilan-container button:disabled,
.ai-actions button:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.competences-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 16px;
}
.competence-card {
background: rgba(255, 255, 255, 0.08);
border-radius: 14px;
padding: 14px;
border: 1px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
min-height: 150px;
}
.competence-card h4 {
display: flex;
justify-content: space-between;
margin: 0 0 12px;
font-size: 1rem;
}
.badge {
background: rgba(255, 255, 255, 0.15);
border-radius: 999px;
padding: 2px 10px;
font-size: 0.8rem;
}
.bucket-list {
display: flex;
flex-direction: column;
gap: 16px;
min-height: 80px;
}
.bucket.dragover {
border-color: rgba(147, 197, 253, 0.8);
background: rgba(147, 197, 253, 0.1);
}
.competence-item {
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding: 12px;
border-radius: 12px;
cursor: grab;
position: relative;
background: rgba(255, 255, 255, 0.05);
transition: all 0.25s ease;
}
.competence-item:hover {
background: rgba(255, 255, 255, 0.12);
transform: translateY(-2px);
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
.competence-item.dragging {
opacity: 0.65;
transform: scale(0.98);
background: rgba(147, 197, 253, 0.15);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.competence-item .competence-label {
font-weight: 600;
margin-bottom: 8px;
}
.remove-field-btn {
background: #ef4444;
color: #fff;
border: 0;
border-radius: 50%;
width: 24px;
height: 24px;
font-size: 14px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 10px;
right: 10px;
opacity: 0;
transform: scale(0.8);
transition: all 0.25s ease;
}
.competence-item:hover .remove-field-btn {
opacity: 1;
transform: scale(1);
}
.competence-checkbox,
#aiPrepend {
appearance: none;
-webkit-appearance: none;
width: 20px;
height: 20px;
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.3);
background: rgba(255, 255, 255, 0.08);
cursor: pointer;
position: relative;
transition: all 0.25s ease;
}
.competence-checkbox:hover,
#aiPrepend:hover {
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.5);
}
.competence-checkbox:checked,
#aiPrepend:checked {
background: linear-gradient(135deg, #4ade80, #22c55e);
border-color: rgba(34, 197, 94, 0.6);
box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}
.competence-checkbox:checked::after,
#aiPrepend:checked::after {
content: "✔";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -52%);
font-size: 13px;
font-weight: 700;
color: #fff;
}
.bilan-container select {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
padding: 10px 40px 10px 14px;
border-radius: 14px;
border: 1px solid rgba(255, 255, 255, 0.25);
background: rgba(255, 255, 255, 0.08);
color: #fff;
cursor: pointer;
transition: all 0.25s ease;
min-width: 200px;
background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 12px center;
background-size: 16px;
}
.bilan-container select:hover {
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.4);
}
.bilan-container select:focus {
outline: none;
border-color: rgba(147, 197, 253, 0.9);
box-shadow: 0 0 10px rgba(147, 197, 253, 0.6);
background: rgba(255, 255, 255, 0.18);
}
.bilan-container select option {
background: #1f2937;
}
#openaiKey {
min-width: 260px;
background: rgba(255, 255, 255, 0.08)
url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='white' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 7a2 2 0 11-4 0 2 2 0 014 0zm-4 0v10a2 2 0 002 2h4a2 2 0 002-2V7h-8z'/%3E%3C/svg%3E")
no-repeat 12px center;
background-size: 16px;
}
#openaiKey::placeholder {
color: rgba(255, 255, 255, 0.55);
font-style: italic;
}
.bilan-container textarea {
width: 97%;
min-height: 120px;
padding: 14px;
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.25);
background: rgba(255, 255, 255, 0.08);
color: #fff;
resize: vertical;
transition: all 0.25s ease;
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}
.bilan-container textarea::placeholder {
color: rgba(255, 255, 255, 0.55);
font-style: italic;
}
.bilan-container textarea:focus {
outline: none;
border-color: rgba(147, 197, 253, 0.8);
background: rgba(255, 255, 255, 0.12);
box-shadow: 0 0 12px rgba(147, 197, 253, 0.6),
inset 0 3px 8px rgba(0, 0, 0, 0.2);
}
#observation,
.observation-textarea {
min-height: 240px;
font-size: 15px;
line-height: 1.5;
margin-top: 20px;
width: 100%;
}
.level-group {
margin-top: 15px;
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.level-title {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.75);
margin-right: 0.5rem;
}
.level-pill {
position: relative;
overflow: hidden;
border-radius: 999px;
transition: all 0.3s ease;
}
.level-pill input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.level-pill label {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 6px 10px;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.25);
background: rgba(255, 255, 255, 0.08);
color: #fff;
font-size: 12px;
cursor: pointer;
user-select: none;
transition: all 0.3s ease;
max-width: 36px;
overflow: hidden;
}
.level-pill label .short,
.level-pill label .long {
transition: opacity 0.25s ease, transform 0.25s ease;
}
.level-pill label .long {
opacity: 0;
white-space: nowrap;
transform: translateX(10px);
}
.level-pill label:hover {
max-width: 160px;
padding: 6px 16px;
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.4);
}
.level-pill label:hover .long {
opacity: 1;
transform: translateX(0);
}
.level-pill label:hover .short {
opacity: 0;
transform: translateX(-10px);
}
.level-pill input:checked + label {
max-width: 160px;
padding: 6px 16px;
border-color: rgba(147, 197, 253, 0.9);
background: rgba(147, 197, 253, 0.25);
box-shadow: 0 0 8px rgba(147, 197, 253, 0.4);
font-weight: 600;
}
.level-pill input:checked + label .long {
opacity: 1;
transform: translateX(0);
}
.level-pill input:checked + label .short {
opacity: 0;
transform: translateX(-10px);
}
.ai {
margin-top: 24px;
background: rgba(255, 255, 255, 0.08);
border-radius: 18px;
padding: 20px;
border: 1px solid rgba(255, 255, 255, 0.25);
color: #fff;
display: flex;
flex-direction: column;
gap: 18px;
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
backdrop-filter: blur(14px) saturate(160%);
}
.ai strong {
font-size: 24px;
font-weight: 600;
text-align: center;
margin-bottom: 6px;
background: linear-gradient(135deg, #93c5fd, #ffffff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.ai .row {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 32px;
}
.ai label {
margin-top: 10px;
font-size: 14px;
font-weight: 500;
color: rgba(255, 255, 255, 0.85);
}
.ai textarea,
.ai input,
.ai select {
width: 100%;
}
.ai textarea::placeholder,
.ai input::placeholder {
color: rgba(255, 255, 255, 0.55);
}
.ai textarea:focus,
.ai input:focus,
.ai select:focus {
outline: none;
border-color: rgba(147, 197, 253, 0.9);
box-shadow: 0 0 10px rgba(147, 197, 253, 0.6);
}
.ai-actions,
.ai .controls {
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: center;
margin-top: 10px;
}
.ai-loader {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
font-size: 0.9rem;
font-weight: 500;
}
.spinner {
width: 16px;
height: 16px;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.3);
border-top-color: #93c5fd;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.status {
display: none;
margin: 15px auto;
max-width: 800px;
padding: 14px 18px;
border-radius: 12px;
font-weight: 500;
font-size: 15px;
text-align: center;
border: 1px solid rgba(255, 255, 255, 0.25);
background: rgba(255, 255, 255, 0.08);
color: #fff;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.status.info {
border-left: 6px solid #3b82f6;
}
.status.success {
border-left: 6px solid #16a34a;
}
.status.error {
border-left: 6px solid #dc2626;
}
.status .progress {
height: 4px;
background: rgba(255, 255, 255, 0.25);
border-radius: 999px;
overflow: hidden;
margin-top: 10px;
}
.status .progress-bar {
width: 100%;
height: 100%;
background: linear-gradient(90deg, #93c5fd, #1d4ed8);
animation: progress-stripes 1.2s linear infinite;
}
@keyframes progress-stripes {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
@media (max-width: 768px) {
.bilan-wrapper {
padding: 1.5rem 1rem;
}
.bilan-container {
padding: 1.5rem;
}
.controls,
.ai .row {
flex-direction: column;
grid-template-columns: 1fr;
}
.competences-grid {
grid-template-columns: 1fr;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -20,13 +20,6 @@ const toolsApps = [
description: "Application React dédiée à la gestion du réseau.",
url: "/app-reseaux/index.html?access-token=OCTO-ADMIN-2024",
external: true,
},
{
id: "bilans",
name: "Bilans",
description: "Module de suivi et génération des bilans.",
url: "/admin/bilans",
external: false,
},
{
id: "generateur-photo",
@ -157,7 +150,7 @@ function Tools() {
maxWidth: 520,
}}
>
Centralisez vos applications internes : réseau, bilans, générateur
Centralisez vos applications internes : réseau, générateur
de photos et futurs modules dautomatisation Octopus.
</Typography>
</Stack>

View File

@ -18,7 +18,6 @@ import Tools from "./components/Pages/Tools";
import GestionCours from "./components/Admin/GestionCours";
import ListeCours from "./components/Admin/ListeCours";
import CoursLecture from './components/Admin/CoursLecture';
import Bilans from './components/Admin/Bilans';
// Lazy loading des pages
const Home = lazy(() => import("./components/Pages/Home.jsx"));
@ -84,7 +83,6 @@ function YourApp() {
<Route path="/admin/gestion-cours" element={<GestionCours />} />
<Route path="/admin/liste-cours" element={<ListeCours />} />
<Route path="/cours/lecture/:token" element={<CoursLecture />} />
<Route path="/admin/bilans" element={<Bilans/>} />
<Route path="/admin/tools" element={<Tools />} />
</Routes>
<Footer />

File diff suppressed because one or more lines are too long