From 04c71e1b7603513be1e9e8f6900b734be5dff35f Mon Sep 17 00:00:00 2001 From: Pierre Ferreira Date: Thu, 16 Nov 2023 14:26:26 +0100 Subject: [PATCH] ajout de la partie interface dans la page d'info :memo: --- cryptide_project/src/Pages/InfoPage.css | 10 + cryptide_project/src/Pages/InfoPage.tsx | 357 ++++++++++++++---------- 2 files changed, 226 insertions(+), 141 deletions(-) diff --git a/cryptide_project/src/Pages/InfoPage.css b/cryptide_project/src/Pages/InfoPage.css index a8a7642..8c8786b 100644 --- a/cryptide_project/src/Pages/InfoPage.css +++ b/cryptide_project/src/Pages/InfoPage.css @@ -63,6 +63,16 @@ li *{ text-decoration: none; } +.LiInterfaceDisplay{ + display: flex; + justify-content: start; + margin-bottom: 20px; +} + +.LiInterfaceDisplay p{ + font-size: medium; +} + h2 { position: relative; padding: 0; diff --git a/cryptide_project/src/Pages/InfoPage.tsx b/cryptide_project/src/Pages/InfoPage.tsx index 014c803..dadd9ac 100644 --- a/cryptide_project/src/Pages/InfoPage.tsx +++ b/cryptide_project/src/Pages/InfoPage.tsx @@ -17,9 +17,19 @@ import IndiceList from '../Components/IndiceList'; import { HashLink as Link } from 'react-router-hash-link'; import { ColorToHexa } from '../model/EnumExtender'; import Color from '../model/Color'; +import "./InGame.css" +import {useTheme} from '../Style/ThemeContext' +import Check from "../res/icon/checkboxGreen.png"; +import Alert from 'react-bootstrap/Alert'; +import MGlass from "../res/icon/magnifying-glass.png"; +import Param from "../res/icon/param.png"; +import Info from "../res/icon/infoGreen.png"; //todo changer la couleur de l'icon //@ts-ignore -function InfoPage({locale, changeLocale}) { //! cette page n'affiche que des informations et est suceptible de changer selon le context. +function InfoPage({locale, changeLocale}) { + + const theme = useTheme(); + const styles = { roux: { backgroundColor: ColorToHexa(Color.REDHEAD), width: '15px', height: '15px', display: 'inline-block', marginRight: '5px' }, blond: { backgroundColor: ColorToHexa(Color.BLOND), width: '15px', height: '15px', display: 'inline-block', marginRight: '5px' }, @@ -28,7 +38,7 @@ function InfoPage({locale, changeLocale}) { //! cette page n'affiche que des inf chatain: { backgroundColor: ColorToHexa(Color.BROWN), width: '15px', height: '15px', display: 'inline-block', marginRight: '5px' }, }; return ( - + //! Il faudra possiblement faire une gestion des mode de jeu, pour modifier les regles en fonction de ce dernier.

@@ -49,155 +59,220 @@ function InfoPage({locale, changeLocale}) { //! cette page n'affiche que des inf
-
-

:

-

- -

-
- -
-

- -

-
-

- {/* - //TODO mettre icon des ages apres le merge - */} -

:
- . - -
:
- -
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
- -
: ⚾🏀🎳⚽🎾
- -
    -
  • -
  • 🏀
  • -
  • 🎳
  • -
  • -
  • 🎾
  • -
- -

-
-
-
-

:

-

- -

+
+

:

- : +

+
+

    - -

    -

    :

    -

    - -

    -

    :

    -

    - -

    +
  • : 🟪🟦🟩🟨🟥🟫
  • + -

    - Interface : - {/* - //TODO - */} -

    -
-
-
-

:

-

- 1 : -

-

- -

-

- 2 : -

-

- +

  • : 🟣🔵🟢🟡🔴🟤
  • +

    + +

    - 3 : +

    +

    - + {/* + //TODO mettre icon des ages apres le merge + */} +

    :
    + . + +
    :
    + +
      +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    + +
    : ⚾🏀🎳⚽🎾
    + +
      +
    • +
    • 🏀
    • +
    • 🎳
    • +
    • +
    • 🎾
    • +
    +

    -
    +
    +
    +
    +

    :

    +

    + +

    +

    + : +

    +

    + +

    +

    :

    +

    + +

    +

    :

    +

    + +

    + +

    + Interface : +

    +
    Pour chacune des parties, vous aurez certains éléments d'interface à disposition :
    + +
    +
    +
    +

    :

    +

    + 1 : +

    +

    + +

    +

    + 2 : +

    +

    + +

    +

    + 3 : +

    +

    + +

    +
    +
    +
    +

    :

    +
    +

    + +

    + + +

    + +

    + +
    -
    -

    :

    -
    -

    - -

    - - -

    - -

    - - -
    -

    - -

    - - - - -

    - -

    - - -
    -
    - - {/* - //! Topographie présente uniquement sur Cryptide -

    Topographie

    -

    Legende des différents objet disponible sur la carte.

    - */} +

    + +

    + + + + +

    + +

    + + +
    +
    ); }