From cb72858779882efc81129e0e610be1ac9e909294 Mon Sep 17 00:00:00 2001 From: yasuaki-kumazaki Date: Mon, 1 Jul 2024 18:56:04 +0200 Subject: [PATCH] modified landing page button --- frontend/src/Components/LandingPage.tsx | 82 ++++++++++++++++------- frontend/src/Components/Navbar/Navbar.tsx | 2 +- 2 files changed, 60 insertions(+), 24 deletions(-) diff --git a/frontend/src/Components/LandingPage.tsx b/frontend/src/Components/LandingPage.tsx index 8c5c3b07..2e315d69 100644 --- a/frontend/src/Components/LandingPage.tsx +++ b/frontend/src/Components/LandingPage.tsx @@ -1,30 +1,66 @@ -import React from 'react'; -import 'bootstrap/dist/css/bootstrap.min.css'; -import backgroundImage from '../Misc/compute-ea4c57a4.png'; -import Navbar from './Navbar/Navbar'; +import React from "react"; +import "bootstrap/dist/css/bootstrap.min.css"; +import backgroundImage from "../Misc/compute-ea4c57a4.png"; +import Navbar from "./Navbar/Navbar"; +import { Link } from "react-router-dom"; +import { useAuth } from "react-oidc-context"; const LandingPage = () => { - React.useEffect(() => { - document.body.style.overflow = 'hidden'; - return () => { - document.body.style.overflow = 'auto'; - }; - }, []); + const auth = useAuth(); + React.useEffect(() => { + document.body.style.overflow = "hidden"; + return () => { + document.body.style.overflow = "auto"; + }; + }, []); - return ( -
-
-
-
-

TEAMAGOCHI

-

Teamagochi is more than just a toy, it's a pet.

Customize it the way you want it and complete fun challenges to earn rewards.
-
Take care of your pet and you will make it happy and thankful!

- -
-
-
+ return ( +
+
+
+
+

+ TEAMAGOCHI +

+

+ Teamagochi is more than just a toy, it's a pet.

Customize + it the way you want it and complete fun challenges to earn + rewards.

Take care of your pet and you will make it happy + and thankful! +

+ {/* */} + auth.signinRedirect()} + > + Get started! + +
- ); +
+
+ ); }; export default LandingPage; diff --git a/frontend/src/Components/Navbar/Navbar.tsx b/frontend/src/Components/Navbar/Navbar.tsx index 2ac2ae59..75e6e63d 100644 --- a/frontend/src/Components/Navbar/Navbar.tsx +++ b/frontend/src/Components/Navbar/Navbar.tsx @@ -58,7 +58,7 @@ const Navbar = () => { {auth.isAuthenticated ? ( <>