diff --git a/front/style/home/global.css b/front/style/home/global.css new file mode 100644 index 0000000..f215ab7 --- /dev/null +++ b/front/style/home/global.css @@ -0,0 +1,5 @@ +#main { + margin-left:10%; + margin-right:10%; + background-color: grey; +} \ No newline at end of file diff --git a/front/style/home/tactic.css b/front/style/home/tactic.css new file mode 100644 index 0000000..7dea75e --- /dev/null +++ b/front/style/home/tactic.css @@ -0,0 +1,10 @@ +#titreTactic { + background-color: red; + padding-right : 10px; + margin-top : 10px; +} + +#titreTactic h2 { + display: inline; + padding-right : 25px; +} \ No newline at end of file diff --git a/front/style/home.css b/front/style/home/titre.css similarity index 67% rename from front/style/home.css rename to front/style/home/titre.css index 4f11371..199c9bc 100644 --- a/front/style/home.css +++ b/front/style/home/titre.css @@ -8,4 +8,8 @@ #IQBall { text-align: center; +} + +#title { + background-color: aqua; } \ No newline at end of file diff --git a/front/views/Home.tsx b/front/views/Home.tsx index 2d2d0be..72643ab 100644 --- a/front/views/Home.tsx +++ b/front/views/Home.tsx @@ -1,16 +1,18 @@ -import "../style/home.css" +import "../style/home/global.css" +import "../style/home/tactic.css" +import "../style/home/titre.css" -export default function Home(){ +export default function Home() { return ( -
+
<Body/> </div> ) } -export function Title(){ - return( +export function Title() { + return ( <div id="title"> <h1 id="IQBall"><span id="IQ">IQ</span><span id="B">B</span>all</h1> <img src=""></img> @@ -18,10 +20,32 @@ export function Title(){ ) } -export function Body(){ - return( + +export function Body() { + return ( <div id="body"> - + <Team/> + <Tactic/> + </div> + ) +} + +export function Team() { + return ( + <div id="team"> + <h2>Mes équipes</h2> + <button id="createTeam">+</button> + </div> + ) +} + +export function Tactic() { + return ( + <div id="tactic"> + <div id="titreTactic"> + <h2>Mes stratégies</h2> + <button id="createTactic" onClick={location.pathname = "/tactic/new"}>+</button> + </div> </div> ) } \ No newline at end of file