diff --git a/front/assets/account.svg b/front/assets/account.svg new file mode 100644 index 0000000..70d7391 --- /dev/null +++ b/front/assets/account.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/front/style/home.css b/front/style/home.css index 547903a..fc813b5 100644 --- a/front/style/home.css +++ b/front/style/home.css @@ -17,7 +17,7 @@ body { text-align: center; background-color: var(--main-color); margin : 0px; - border : RED 2px solid; + /* border : var(--accent-color) 1px ésolid; */ display: flex; flex-direction: row; /* border-radius: 0.75cap; */ @@ -64,15 +64,51 @@ body { margin-top : 5%; } -#img-account { +#img-account { + width: 100%; + cursor: pointer; } #header-right, #header-left { width: 10%; - border: yellow 2px solid; + /* border: yellow 2px solid; */ +} + +#header-right { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} + +#username { + color : var(--main-contrast-color); + margin : 0; +} + +#clickable-header-right:hover #username { + color : var(--accent-color); } #header-center { width: 80%; -} \ No newline at end of file +} + +#clickable-header-right { + width: 40%; + border-radius: 1cap; + padding : 2%; +} + +#clickable-header-right:hover { + border : orange 1px solid; +} + +.clickable { + cursor : pointer; +} + +#img-account { + width: 100%; +} diff --git a/front/views/Home.tsx b/front/views/Home.tsx index e564964..44e63fd 100644 --- a/front/views/Home.tsx +++ b/front/views/Home.tsx @@ -1,7 +1,8 @@ import "../style/home.css" import "../style/personnal_space.css" import "../style/side_menu.css" -import { CSSProperties } from "react" +// import AccountSvg from "../assets/account.svg?react" +import { CSSProperties, useRef } from "react" interface Tactic { id : number @@ -27,6 +28,7 @@ export default function Home({ lastTactics, allTactics, teams, username } : { la } export function Title({username} : {username : string}) { + return ( ) @@ -118,8 +123,6 @@ function TableData({allTactics} : {allTactics : Tactic[]} ) { } } - console.log(listTactic); - const data = listTactic.map((tactic, rowIndex) => {tactic} diff --git a/public/account.svg b/public/account.svg index ce59194..70d7391 100644 --- a/public/account.svg +++ b/public/account.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file