generated from the-collab-lab/smart-shopping-list
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added an unauthenticated home context with way to navigate to a…
…bout page with button
- Loading branch information
Showing
4 changed files
with
69 additions
and
24 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
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,33 @@ | ||
import React from "react"; | ||
import { useNavigate } from "react-router-dom"; | ||
import { SignInButton } from "../../api"; | ||
|
||
export function NewUserHomeInfo() { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<> | ||
<h1>Welcome to APPLICATION NAME</h1> | ||
<p> | ||
The next best thing to having someone else do the shopping for you! | ||
Create and manage smart lists learn your habits to let you know exactly | ||
when you will need t | ||
</p> | ||
|
||
<article> | ||
<p>New to APPLICATION NAME?</p> | ||
<button | ||
onClick={() => navigate("/about")} | ||
aria-label="Navigate to the about application page." | ||
> | ||
Learn More | ||
</button> | ||
</article> | ||
|
||
<article> | ||
<p>Welcome Back:</p> | ||
<SignInButton /> | ||
</article> | ||
</> | ||
); | ||
} |