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.
A way for an new user to understand how the app functions (#41)
* feat: adding sample list route & page * mod: change SampleList to about * mod: a text version/skeleton of the about page of the application * feat: added an unauthenticated home context with way to navigate to about page with button * feat: added unauthenticated nav bar for another option on getting to about page * feat: added links for app creators * fix: fixed a few typos and add name to the place holder * feat: created Authenticated/Unauthenticated home components * feat: update vite config to utilize the svgr plugin for the svg logo used on about * feat: making it so the sign in button can change the value in the label based on if needs to sign up or in * feat: added links to mentors and added link to the collab lab * fix: removed bullet point from the create list form label * fix: fixing some buttons and styling issues weird messed up in resolving merge conflicts * fix: fixing the new UnauthenticatedNavBar to use the correct bootstrap comp since didn't get them in conflict resolve * fix: if signing up or out from about page properly redirects to home page since it is not a protected route it was just staying on about * mod: added name to layout * fix: scroll bars on bottom of all pages because the page wasn't extend to the view fully and they were always showing
- Loading branch information
Showing
17 changed files
with
360 additions
and
69 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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
src/components/AuthenticatedNavBar.tsx → ...nts/authenticated/AuthenticatedNavBar.tsx
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,27 @@ | ||
import React from "react"; | ||
import { NavLink } from "react-router-dom"; | ||
import Navbar from "react-bootstrap/Navbar"; | ||
import Container from "react-bootstrap/Container"; | ||
import Nav from "react-bootstrap/Nav"; | ||
|
||
import "../NavBar.css"; | ||
|
||
export function UnauthenticatedNavBar() { | ||
return ( | ||
<Navbar expand="lg" fixed="bottom" className="Nav"> | ||
<Container className="d-flex justify-content-around Nav-container"> | ||
<Nav.Link as={NavLink} to="/" className="Nav-link" aria-label="Home"> | ||
Home | ||
</Nav.Link> | ||
<Nav.Link | ||
as={NavLink} | ||
to="/about" | ||
className="Nav-link" | ||
aria-label="About" | ||
> | ||
About | ||
</Nav.Link> | ||
</Container> | ||
</Navbar> | ||
); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
import React from "react"; | ||
import { SingleList, CreateList } from "../../components"; | ||
import { List, User } from "../../api"; | ||
|
||
interface Props { | ||
data: List[]; | ||
setListPath: (path: string) => void; | ||
user: User | null; | ||
} | ||
|
||
export function AuthenticatedHome({ data, setListPath, user }: Props) { | ||
return ( | ||
<> | ||
<p> | ||
Hello from the home (<code>/</code>) page! | ||
</p> | ||
{user && ( | ||
<> | ||
<ul> | ||
{data.map((list, index) => ( | ||
<SingleList | ||
key={index} | ||
name={list.name} | ||
path={list.path} | ||
setListPath={setListPath} | ||
/> | ||
))} | ||
</ul> | ||
<CreateList user={user} setListPath={setListPath} /> | ||
</> | ||
)} | ||
</> | ||
); | ||
} |
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
Oops, something went wrong.