-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from pathirny/develop
Develop
- Loading branch information
Showing
15 changed files
with
160 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,33 @@ | ||
"use client"; | ||
// importing dependency's | ||
// importing dependency's | ||
import Header from "@/components/Header"; | ||
import FullCalendar from "../../components/calendar.jsx"; | ||
import { Flex, Button } from "@chakra-ui/react"; | ||
import Link from "next/link.js"; | ||
import useCheckSignedIn from "@/components/hooks/useCheckSignedIn.js"; | ||
import BackButton from "@/components/BackButton"; | ||
|
||
// function to use the imported dependency's | ||
export default function Home() { | ||
// rendering the components | ||
|
||
const [signedIn] = useCheckSignedIn(); | ||
console.log(signedIn); | ||
const [signedIn] = useCheckSignedIn() | ||
console.log(signedIn) | ||
|
||
return ( | ||
<> | ||
<Header title="My Garden" /> | ||
{signedIn ? ( | ||
<> | ||
{" "} | ||
<div id="calendar-container"> | ||
<FullCalendar initialView="dayGridMonth" /> | ||
|
||
{/* <Flex | ||
width="100vw" | ||
justifyContent="center" | ||
position="fixed" | ||
bottom="-10px" | ||
> | ||
</Flex> */} | ||
</div> | ||
</> | ||
) : ( | ||
<> | ||
<div className="calendar-event-background "></div> | ||
<div className="calendar-event-container"> | ||
<h3 style={{ margin: "0" }}> | ||
You need to have an account to use this feature. | ||
</h3>{" "} | ||
<br></br> <br></br>{" "} | ||
<Link href="./login"> | ||
{" "} | ||
<button style={{ margin: "0" }}> | ||
Click to log in or sign up | ||
</button> | ||
</Link> | ||
</div> | ||
</> | ||
)} | ||
<div id="myGarden-introduction"> | ||
<h3>Click on days to track what you've planted and when to harvest!</h3> | ||
<div style={{display: "flex", flexDirection: "row", justifyContent: "center", alignItems: "center", gap: "2vw"}}> | ||
<p>Plant: </p><div className="key-color" style={{backgroundColor: "var(--white-cream-color)"}}></div><p> Harvest:</p><div className="key-color" ></div></div> | ||
</div> | ||
{signedIn ? | ||
<> <div id="calendar-container"> | ||
<FullCalendar initialView="dayGridMonth" /> | ||
</div> | ||
<Link href="/"> | ||
<Button className="addButton">Back</Button> | ||
</Link></> : <><div className="calendar-event-background "></div><div className="calendar-event-container" ><h3 style={{margin: "0"}}>You need to have an account to use this feature.</h3> <br></br> <br></br> <Link href="./login" > <button style={{margin: "0"}}>Click to log in or sign up</button></Link></div></>} | ||
</> | ||
); | ||
} |
Oops, something went wrong.