clean css
This commit is contained in:
@@ -1,10 +1,20 @@
|
||||
import React from "react"
|
||||
import {Link} from "react-router-dom";
|
||||
import useAuthUser from "../hooks/AuthUser";
|
||||
import Rainfall from "./Rainfall";
|
||||
|
||||
const Home = () => {
|
||||
|
||||
return <div>Home <Link to="/connexion">Connexion</Link>
|
||||
<Link to="/sinscrire">S'inscrire</Link>
|
||||
const {authUser} = useAuthUser()
|
||||
|
||||
return <div>
|
||||
{authUser
|
||||
? <Rainfall />
|
||||
: <div className="pt-10 px-5">
|
||||
<h1 className="text-lg font-bold">Application pour enregistrer sa pluviométrie</h1>
|
||||
<p className="mt-5">Un compte est nécessaire mais les inscriptions ne sont pas ouvertes.</p>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user