From 91e220fb47fa2044e94419dac13a0e8a41696df4 Mon Sep 17 00:00:00 2001 From: timothe Date: Tue, 2 Jun 2026 17:48:06 +0200 Subject: [PATCH] feat(dashboard): page d'accueil avec bouton planning et layout fixe sans scroll MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Composant dashboard migré vers fichiers HTML/CSS externes avec carte de navigation vers /dashboard/planning - html, body, app-root et main fixés à 100vw/100vh sans overflow pour remplir la fenêtre navigateur Co-Authored-By: Claude Sonnet 4.6 --- src/app/app.css | 16 ++-- .../components/pages/dashboard/dashboard.css | 83 +++++++++++++++++++ .../components/pages/dashboard/dashboard.html | 25 ++++++ .../components/pages/dashboard/dashboard.ts | 13 +-- src/styles.css | 6 +- 5 files changed, 125 insertions(+), 18 deletions(-) create mode 100644 src/app/components/pages/dashboard/dashboard.css create mode 100644 src/app/components/pages/dashboard/dashboard.html diff --git a/src/app/app.css b/src/app/app.css index ca76bf56..c488b078 100644 --- a/src/app/app.css +++ b/src/app/app.css @@ -1,12 +1,12 @@ :host { - --content-padding: 10px; -} -header { display: block; - height: 60px; - padding: var(--content-padding); - box-shadow: 0px 5px 25px var(--shadow-color); + width: 100vw; + height: 100vh; + overflow: hidden; } -.content { - padding: var(--content-padding); + +main { + width: 100%; + height: 100%; + overflow: hidden; } diff --git a/src/app/components/pages/dashboard/dashboard.css b/src/app/components/pages/dashboard/dashboard.css new file mode 100644 index 00000000..c18acc17 --- /dev/null +++ b/src/app/components/pages/dashboard/dashboard.css @@ -0,0 +1,83 @@ +.background { + width: 100%; + height: 100vh; + background: #f5f4f0; + overflow: hidden; +} + +.dashboard { + padding: 40px; + max-width: 900px; +} + +.dashboard-title { + font-size: 1.6rem; + font-weight: 600; + color: #2c2c2c; + margin-bottom: 32px; +} + +.dashboard-cards { + display: flex; + flex-wrap: wrap; + gap: 16px; +} + +.dashboard-card { + display: flex; + align-items: center; + gap: 16px; + padding: 20px 24px; + background: #fff; + border: 1px solid #ede8e0; + border-radius: 10px; + text-decoration: none; + color: inherit; + min-width: 280px; + transition: box-shadow 0.15s ease, border-color 0.15s ease; + cursor: pointer; +} + +.dashboard-card:hover { + border-color: #d4a574; + box-shadow: 0 4px 16px rgba(212, 165, 116, 0.15); +} + +.card-icon { + width: 48px; + height: 48px; + background: #fdf6ed; + border-radius: 10px; + display: flex; + align-items: center; + justify-content: center; + color: #d4a574; + flex-shrink: 0; +} + +.card-content { + flex: 1; +} + +.card-content h2 { + font-size: 1rem; + font-weight: 600; + color: #2c2c2c; + margin: 0 0 4px; +} + +.card-content p { + font-size: 0.82rem; + color: #888; + margin: 0; +} + +.card-arrow { + color: #ccc; + flex-shrink: 0; + transition: color 0.15s ease; +} + +.dashboard-card:hover .card-arrow { + color: #d4a574; +} diff --git a/src/app/components/pages/dashboard/dashboard.html b/src/app/components/pages/dashboard/dashboard.html new file mode 100644 index 00000000..f0763d9e --- /dev/null +++ b/src/app/components/pages/dashboard/dashboard.html @@ -0,0 +1,25 @@ + diff --git a/src/app/components/pages/dashboard/dashboard.ts b/src/app/components/pages/dashboard/dashboard.ts index 10a63dd7..946adc04 100644 --- a/src/app/components/pages/dashboard/dashboard.ts +++ b/src/app/components/pages/dashboard/dashboard.ts @@ -1,16 +1,11 @@ import { Component } from '@angular/core'; -import {RouterOutlet} from "@angular/router"; +import { RouterLink, RouterOutlet } from "@angular/router"; @Component({ selector: 'app-dashboard', - imports: [RouterOutlet], - template: ` -

- dashboard works! - -

- `, - styles: `` + imports: [RouterOutlet, RouterLink], + templateUrl: './dashboard.html', + styleUrl: './dashboard.css' }) export class Dashboard { diff --git a/src/styles.css b/src/styles.css index 96d7baba..ab81cb1e 100644 --- a/src/styles.css +++ b/src/styles.css @@ -9,9 +9,13 @@ * { margin: 0; padding: 0; + box-sizing: border-box; } -body { +html, body { + width: 100vw; + height: 100vh; + overflow: hidden; font-family: 'Be Vietnam Pro', sans-serif; } :root {