From 3f2eff7fbd6df81ebc8cbd479f81380059c84a7d Mon Sep 17 00:00:00 2001 From: BENOIT Vincent Date: Mon, 14 Oct 2024 14:14:39 +0200 Subject: [PATCH] animation du ballon avec le joueur et debut d'animation du ballon seul --- .../football-field.component.css | 48 ++++- .../football-field.component.html | 73 +++---- .../football-field.component.ts | 200 +++++++++++------- 3 files changed, 197 insertions(+), 124 deletions(-) diff --git a/src/app/football-field/football-field.component.css b/src/app/football-field/football-field.component.css index cf69b88..8d039fb 100644 --- a/src/app/football-field/football-field.component.css +++ b/src/app/football-field/football-field.component.css @@ -7,9 +7,10 @@ .toolbar { display: flex; - justify-content: space-between; - align-items: center; - width: 620px; /* largeur égale au canvas pour aligner */ + flex-wrap: wrap; + justify-content: space-evenly; + align-items: stretch; + width: 690px; /* largeur égale au canvas pour aligner */ margin-bottom: 10px; } @@ -48,13 +49,22 @@ canvas { margin-top: 15px; } +.toolbar-act { + margin-top: 10px; +} + +.toolbar-mode { + text-align: center; +} + .clear-button { padding: 10px 20px; + margin: 2px; background-color: #ff4d4d; /* Rouge vif */ color: white; border: none; cursor: pointer; - font-size: 16px; + font-size: 12px bold; border-radius: 5px; } @@ -62,6 +72,36 @@ canvas { background-color: #ff1a1a; /* couleur plus foncée au survol */ } +.action-button { + padding: 10px 20px; + margin: 2px; + background-color: #a04dff; /* Rouge vif */ + color: white; + border: none; + cursor: pointer; + font-size: 12px bold; + border-radius: 5px; +} + +.action-button:hover { + background-color: #ca1aff; /* couleur plus foncée au survol */ +} + +.anim-button { + padding: 10px 20px; + margin: 2px; + background-color: hsl(224, 100%, 65%); /* Rouge vif */ + color: white; + border: none; + cursor: pointer; + font-size: 12px bold; + border-radius: 5px; +} + +.anim-button:hover { + background-color: #1a3cff; /* couleur plus foncée au survol */ +} + .timeline-container { width: 100%; margin-top: 20px; diff --git a/src/app/football-field/football-field.component.html b/src/app/football-field/football-field.component.html index e7b79e4..3079bb7 100644 --- a/src/app/football-field/football-field.component.html +++ b/src/app/football-field/football-field.component.html @@ -1,50 +1,39 @@
- +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + + + +
+ + + + +
-
--> - -
- - -
- - -
- - -
- - -
- - -
- - - - - - - - - - - - -
+
+

{{ interactionMode }}

+
+