-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63664c3
commit 2843d7d
Showing
3 changed files
with
130 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import useUser from "../../../hooks/useUser"; | ||
import { Navigate, useNavigate } from "react-router-dom"; | ||
|
||
const Thanks = () => { | ||
const user = useUser(); | ||
const navigate = useNavigate(); | ||
|
||
if (!user) { | ||
return ( | ||
<Navigate | ||
to={{ | ||
pathname: "/log-in", | ||
search: `?next=${encodeURIComponent("/buy/pro")}`, | ||
}} | ||
/> | ||
); | ||
} | ||
return ( | ||
<div className="flex flex-col gap-24"> | ||
<div className="flex justify-center"> | ||
<h2 className="text-center font-bold font-tall text-5xl sm:text-7xl"> | ||
Thanks for purchasing Tree of Science Pro! | ||
</h2> | ||
</div> | ||
<div className="flex flex-col gap-4 items-center"> | ||
<p className="text-center text-lg"> | ||
You now have access to all the pro features of Tree of Science. | ||
</p> | ||
<p className="text-center text-lg"> | ||
Your subscription will be billed monthly/yearly. | ||
</p> | ||
</div> | ||
<div className="flex flex-row items-center justify-center gap-4"> | ||
<button | ||
className="rounded-sm bg-leaf px-4 py-2 text-center font-tall font-bold uppercase text-slate-50" | ||
onClick={() => navigate("/tos")} | ||
> | ||
Grow your Pro Tree now! | ||
</button> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Thanks; |