generated from csci5117s24/Project-2
-
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.
Merge pull request #10 from csci5117s24/backend
Holy Cannoli That's A-Lotta Changes
- Loading branch information
Showing
20 changed files
with
321 additions
and
96 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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import styles from '../css/Buttons.module.css'; | ||
export default function AddButton({...props}){ | ||
return( <div> | ||
<button className={styles.addButton} {...props}> Add </button> | ||
</div> | ||
) | ||
return <div> | ||
<button className={styles.addButton} {...props}> Add </button> | ||
</div> | ||
} |
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,7 +1,6 @@ | ||
import styles from '../css/Buttons.module.css'; | ||
export default function EditButton(props){ | ||
return ( <div> | ||
<button className={styles.editButton}> Edit </button> | ||
</div> | ||
) | ||
export default function EditButton({...props}){ | ||
return <div> | ||
<button className={styles.editButton} {...props}> Edit </button> | ||
</div> | ||
} |
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,12 +1,9 @@ | ||
import styles from '../css/ItemHeader.module.css'; | ||
export default function ItemHeader(props){ | ||
return( <div className={styles.headerContainer} > | ||
<div className={styles.imageContainer} > | ||
<h4 className={styles.title}>{props.title}</h4> | ||
<img className={styles.image} src={props.src} alt={props.alt} ></img> | ||
|
||
|
||
</div> | ||
</div> | ||
) | ||
export default function ItemHeader({ name, image, alt }){ | ||
return <div className={styles.headerContainer} > | ||
<div className={styles.imageContainer} > | ||
<h4 className={styles.title}>{name}</h4> | ||
<img className={styles.image} src={image} alt={alt} ></img> | ||
</div> | ||
</div> | ||
} |
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,17 +1,11 @@ | ||
import styles from '../css/ItemHeader.module.css'; | ||
|
||
export default function ItemHeaderEditable(props){ | ||
return( <div className={styles.headerContainer} > | ||
export default function ItemHeaderEditable({ name, image, alt, updateName }){ | ||
return <div className={styles.headerContainer} > | ||
<div className={styles.imageContainer} > | ||
<input className={styles.inputTitle} value={props.title}></input> | ||
|
||
|
||
<img className={styles.image} src={props.src} alt={props.alt} ></img> | ||
<input className={styles.inputTitle} value={name} onInput={(e)=>updateName(e.target.value)}/> | ||
<img className={styles.image} src={image} alt={alt} ></img> | ||
<button className={styles.editButton}>Edit</button> | ||
|
||
|
||
</div> | ||
</div> | ||
) | ||
|
||
} | ||
} |
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,22 @@ | ||
import Nav from 'react-bootstrap/Nav'; | ||
import Navbar from 'react-bootstrap/Navbar'; | ||
import { Link } from 'react-router-dom'; | ||
import 'bootstrap/dist/css/bootstrap.min.css'; | ||
import styles from "../css/NavBar.module.css" | ||
|
||
function NavBar() { | ||
return ( | ||
<div className={styles.nav}> | ||
<Navbar expand="lg" fixed="bottom" fluid="true"> | ||
<Nav justify variant="tabs" className={styles.meAuto}> | ||
<Nav.Link as={Link} to="/" className={styles.navbar}>Food</Nav.Link> | ||
<Nav.Link as={Link} to="/myform" className={styles.navbar}>Recipe</Nav.Link> | ||
<Nav.Link as={Link} to="/myform" className={styles.navbar}>Queue</Nav.Link> | ||
<Nav.Link as={Link} to="/myform" className={styles.navbar}>My Account</Nav.Link> | ||
</Nav> | ||
</Navbar> | ||
</div> | ||
); | ||
} | ||
|
||
export default NavBar; |
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,7 +1,5 @@ | ||
export default function Queue(props){ | ||
return( <div> | ||
return <div> | ||
|
||
|
||
</div> | ||
) | ||
</div> | ||
} |
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,8 +1,6 @@ | ||
import styles from '../css/Buttons.module.css'; | ||
export default function RemoveButton(props){ | ||
return( <div> | ||
|
||
return <div> | ||
<button className={styles.saveButton}> Remove </button> | ||
</div> | ||
) | ||
</div> | ||
} |
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,7 +1,6 @@ | ||
import styles from '../css/Buttons.module.css'; | ||
export default function SaveButton(props) { | ||
return ( <div> | ||
<button className={styles.saveButton}> Save </button> | ||
</div> | ||
) | ||
export default function SaveButton({...props}) { | ||
return <div> | ||
<button className={styles.saveButton} {...props}> Save </button> | ||
</div> | ||
} |
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,7 +1,5 @@ | ||
export default function SearchButton(props){ | ||
return( <div> | ||
return <div> | ||
|
||
|
||
</div> | ||
) | ||
</div> | ||
} |
Oops, something went wrong.