From 7042b48ffe912cbd7860be204baaf1f369010a01 Mon Sep 17 00:00:00 2001 From: "maxime.batista" Date: Tue, 19 Dec 2023 11:04:04 +0100 Subject: [PATCH] change court svg --- front/assets/court/court.svg | 63 ----------- front/assets/court/full_court.svg | 136 ++++++++++++++++++++++++ front/assets/court/half_court.svg | 94 ++++++++++++---- front/components/editor/BasketCourt.tsx | 1 - front/views/Editor.tsx | 2 +- front/views/NewTacticPanel.tsx | 2 +- front/views/Visualizer.tsx | 2 +- 7 files changed, 212 insertions(+), 88 deletions(-) delete mode 100644 front/assets/court/court.svg create mode 100644 front/assets/court/full_court.svg diff --git a/front/assets/court/court.svg b/front/assets/court/court.svg deleted file mode 100644 index e01fd58..0000000 --- a/front/assets/court/court.svg +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/front/assets/court/full_court.svg b/front/assets/court/full_court.svg new file mode 100644 index 0000000..cb59a6b --- /dev/null +++ b/front/assets/court/full_court.svg @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/front/assets/court/half_court.svg b/front/assets/court/half_court.svg index 8e7640e..7bf82e0 100644 --- a/front/assets/court/half_court.svg +++ b/front/assets/court/half_court.svg @@ -1,22 +1,74 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/front/components/editor/BasketCourt.tsx b/front/components/editor/BasketCourt.tsx index 6229afd..c158d89 100644 --- a/front/components/editor/BasketCourt.tsx +++ b/front/components/editor/BasketCourt.tsx @@ -1,4 +1,3 @@ -import CourtSvg from "../../assets/basketball_court.svg?react" import "../../style/basket_court.css" import { RefObject, useRef } from "react" import CourtPlayer from "./CourtPlayer" diff --git a/front/views/Editor.tsx b/front/views/Editor.tsx index 5c10f64..53107bf 100644 --- a/front/views/Editor.tsx +++ b/front/views/Editor.tsx @@ -10,7 +10,7 @@ import "../style/editor.css" import TitleInput from "../components/TitleInput" import { BasketCourt } from "../components/editor/BasketCourt" -import plainCourt from "../assets/court/court.svg" +import plainCourt from "../assets/court/full_court.svg" import halfCourt from "../assets/court/half_court.svg" import { Rack } from "../components/Rack" diff --git a/front/views/NewTacticPanel.tsx b/front/views/NewTacticPanel.tsx index bd9badb..97ec0a5 100644 --- a/front/views/NewTacticPanel.tsx +++ b/front/views/NewTacticPanel.tsx @@ -1,7 +1,7 @@ import "../style/theme/default.css" import "../style/new_tactic_panel.css" -import plainCourt from "../assets/court/court.svg" +import plainCourt from "../assets/court/full_court.svg" import halfCourt from "../assets/court/half_court.svg" import { BASE } from "../Constants" diff --git a/front/views/Visualizer.tsx b/front/views/Visualizer.tsx index 5b09115..701c759 100644 --- a/front/views/Visualizer.tsx +++ b/front/views/Visualizer.tsx @@ -1,6 +1,6 @@ import React, { CSSProperties, useState } from "react" import "../style/visualizer.css" -import Court from "../assets/court/court.svg" +import Court from "../assets/court/full_court.svg" export default function Visualizer({ id, name }: { id: number; name: string }) { const [style, setStyle] = useState({})