|
|
@ -1,7 +1,8 @@
|
|
|
|
import "../style/home.css"
|
|
|
|
import "../style/home.css"
|
|
|
|
import "../style/personnal_space.css"
|
|
|
|
import "../style/personnal_space.css"
|
|
|
|
import "../style/side_menu.css"
|
|
|
|
import "../style/side_menu.css"
|
|
|
|
import { CSSProperties } from "react"
|
|
|
|
// import AccountSvg from "../assets/account.svg?react"
|
|
|
|
|
|
|
|
import { CSSProperties, useRef } from "react"
|
|
|
|
|
|
|
|
|
|
|
|
interface Tactic {
|
|
|
|
interface Tactic {
|
|
|
|
id : number
|
|
|
|
id : number
|
|
|
@ -27,6 +28,7 @@ export default function Home({ lastTactics, allTactics, teams, username } : { la
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function Title({username} : {username : string}) {
|
|
|
|
export function Title({username} : {username : string}) {
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div id="header">
|
|
|
|
<div id="header">
|
|
|
|
<div id="header-left">
|
|
|
|
<div id="header-left">
|
|
|
@ -36,8 +38,11 @@ export function Title({username} : {username : string}) {
|
|
|
|
<h1 id="IQBall"><span id="IQ">IQ</span><span id="Ball">Ball</span></h1>
|
|
|
|
<h1 id="IQBall"><span id="IQ">IQ</span><span id="Ball">Ball</span></h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="header-right">
|
|
|
|
<div id="header-right">
|
|
|
|
<img id="img-account" src="account.svg" color="white"/>
|
|
|
|
<div className="clickable" id="clickable-header-right">
|
|
|
|
{username}
|
|
|
|
{/* <AccountSvg id="img-account" /> */}
|
|
|
|
|
|
|
|
<img id="img-account" src="account.svg" onClick={() => {location.pathname="/settings"}} />
|
|
|
|
|
|
|
|
<p id="username">{username}</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -118,8 +123,6 @@ function TableData({allTactics} : {allTactics : Tactic[]} ) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
console.log(listTactic);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const data = listTactic.map((tactic, rowIndex) =>
|
|
|
|
const data = listTactic.map((tactic, rowIndex) =>
|
|
|
|
<tr key={rowIndex+"row"}>
|
|
|
|
<tr key={rowIndex+"row"}>
|
|
|
|
{tactic}
|
|
|
|
{tactic}
|
|
|
|