diff --git a/front/assets/icon/share.png b/front/assets/icon/share.png new file mode 100644 index 0000000..b6347d3 Binary files /dev/null and b/front/assets/icon/share.png differ diff --git a/front/style/home/home.css b/front/style/home/home.css index 455e3af..a08a199 100644 --- a/front/style/home/home.css +++ b/front/style/home/home.css @@ -22,6 +22,7 @@ body { margin: 0px; height: 100%; background-color: var(--second-color); + overflow: hidden; } .data { @@ -29,6 +30,7 @@ body { background-color: var(--main-color); border-radius: 0.75cap; color: var(--main-contrast-color); + position: relative; } .data:hover { diff --git a/front/style/home/personnal_space.css b/front/style/home/personnal_space.css index ba5a9a7..8875868 100644 --- a/front/style/home/personnal_space.css +++ b/front/style/home/personnal_space.css @@ -31,8 +31,31 @@ padding-top: 1%; height: fit-content; text-align: center; + overflow: hidden; } tbody p { text-align: center; } + +.share-icon-container { + position: absolute; + top: 50%; + right: 0; + transform: translateY(-50%); + padding: 5px; +} + +.share-button { + cursor: pointer; +} + +.share-icon-button { + background-color: transparent; + border: none; +} + +.share-icon { + color: white; + font-size: 2em; +} diff --git a/front/style/home/side_menu.css b/front/style/home/side_menu.css index 3a23947..f2371dd 100644 --- a/front/style/home/side_menu.css +++ b/front/style/home/side_menu.css @@ -16,6 +16,7 @@ #side-menu-content { width: 90%; } + .titre-side-menu { border-bottom: var(--main-color) solid 3px; width: 100%; diff --git a/front/style/team_panel.css b/front/style/team_panel.css index 151b2da..90597ab 100644 --- a/front/style/team_panel.css +++ b/front/style/team_panel.css @@ -30,6 +30,7 @@ body { align-items: center; width: 68%; margin-right: 2%; + margin-bottom: 15px; } #right-panel { @@ -37,6 +38,7 @@ body { flex-direction: column; align-items: center; width: 30%; + flex-grow: 1; } header { @@ -55,6 +57,10 @@ header h1 a { font-size: 1.4em; } +html, body, #main-div, #content-container, #right-panel, #tactics { + height: 100%; +} + .square { width: 50px; height: 50px; @@ -181,6 +187,8 @@ header h1 a { width: 100%; height: 100%; border-radius: 10px; + overflow: auto; + margin-bottom: 5px; } #head-tactics { diff --git a/front/views/Home.tsx b/front/views/Home.tsx index 35c59a3..00091f5 100644 --- a/front/views/Home.tsx +++ b/front/views/Home.tsx @@ -5,9 +5,10 @@ import { BASE } from "../Constants" import Draggable from "react-draggable"; import {NULL_POS} from "../components/arrows/Pos"; import {contains} from "../components/arrows/Box"; -import {useRef, useState} from "react"; +import React, {useRef, useState} from "react"; import { fetchAPI } from "../Fetcher" import {User} from "../model/User"; +import { FaShare } from "react-icons/fa"; import {SaveStates} from "../components/editor/SavingState"; interface Tactic { @@ -83,7 +84,7 @@ function SideMenu({ teams: Team[] }) { return ( -