WIP Page Home integration img

pull/81/head
d_yanis 1 year ago
parent bc50d3d5b6
commit 69374f932d

@ -4,4 +4,8 @@
#B {
color : blue;
}
#IQBall {
text-align: center;
}

@ -2,8 +2,26 @@ import "../style/home.css"
export default function Home(){
return (
<div>
<h1><span id="IQ">IQ</span><span id="B">B</span>all</h1>
<div id="main-div">
<Title/>
<Body/>
</div>
)
}
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>
</div>
)
}
export function Body(){
return(
<div id="body">
</div>
)
}

@ -107,6 +107,8 @@ function getRoutes(): AltoRouter {
$ar->map("GET", "/team/members/remove", Action::auth(fn(SessionHandle $s) => getTeamController()->displayDeleteMember($s)));
$ar->map("POST", "/team/members/remove", Action::auth(fn(SessionHandle $s) => getTeamController()->deleteMember($_POST, $s)));
//temp
$ar->map("GET", "/test", Action::auth(fn(SessionHandle $s) => getUserController()->homeTwig($s)));
return $ar;
}

@ -26,6 +26,10 @@ class UserController {
return ViewHttpResponse::react("views/Home.tsx", []);
}
public function homeTwig(SessionHandle $session): ViewHttpResponse {
return ViewHttpResponse::twig("home.twig", []);
}
/**
* @return ViewHttpResponse account settings page
*/

Loading…
Cancel
Save