Skip to content

Commit

Permalink
Merge pull request #26 from csci5117s24/demoPrep
Browse files Browse the repository at this point in the history
bug fixes
  • Loading branch information
TCKnickerbocker authored May 6, 2024
2 parents b725b78 + 70824fc commit 772e827
Showing 11 changed files with 36 additions and 28 deletions.
14 changes: 8 additions & 6 deletions src/components/FoodItem.jsx
Original file line number Diff line number Diff line change
@@ -219,12 +219,14 @@ export default function FoodItem({ food }) {
</ListGroup.Item>

<ListGroup.Item className={`${Layout.text} list-group-flush`}>
<div className={`${(isExpired) ? Layout.redText : ''} ${Layout.row}`}>
Expiration Date: {expirationDate ? expirationDate : "N/A"}
{isExpired?
<span className={`${(isExpired) ? Layout.redText : ''}`}>
Expired
</span> :<></>}
<div>
<div className={`${(isExpired) ? Layout.redText : ''} ${Layout.row}`}>
Expiration Date: {expirationDate ? expirationDate : "N/A"}
</div>
{isExpired ?
<div className={`${(isExpired) ? Layout.redText : ''}`}>
Expired
</div> :<></>}
</div>
</ListGroup.Item>
</ListGroup>
2 changes: 1 addition & 1 deletion src/components/QueueItemPopup.jsx
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ function IngredientFoodItem({ ingredient }) {


return <ListGroup.Item style={
comparisonStatus < 0 ? {color: "red"}
comparisonStatus <= 0 ? {color: "red"}
: (comparisonStatus > 0 ? {color: "green"} : {}) }>
<Row>
<Col>{ ingredient ? ingredient.name + ingrAmountUnit(ingredient) : ''}</Col>
2 changes: 1 addition & 1 deletion src/css/Buttons.module.css
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
}
.addButton:hover{

background-color: #35b148;
background-color: #4cba68;
}
.editButton{
color: #0d2714;
1 change: 1 addition & 0 deletions src/css/ItemHeader.module.css
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
display:flex;
justify-content: center;
align-items: flex-start;
margin: 1em;
}

.image {
9 changes: 7 additions & 2 deletions src/css/ItemPageLayout.module.css
Original file line number Diff line number Diff line change
@@ -108,10 +108,15 @@
/* box-shadow: 10px 0px 10px 1px #e7e8c9; */
}

/* For the expired */
/* For expired foods */
.redText{
color: #b85144;
margin-right: 1em;;
margin-right: 1em;
display:inline-block;
}
.inlineBlockWithRightMargin{
margin-right: 1em;
display:inline-block;
}

.subtitle{
6 changes: 3 additions & 3 deletions src/css/Queue.module.css
Original file line number Diff line number Diff line change
@@ -97,7 +97,7 @@
}
.addButton{
color: #0d2714;
background-color: #58b16e;
background-color: #54c370;
padding: 0.5em;
margin: 0.5em;
width: 2.5em;
@@ -139,7 +139,7 @@
}
.viewButton{
color: #0d2714;
background-color: #58b16e;
background-color: #54c370;
padding: 0.5em;
margin: 0.5em;
border-radius: 5px;
@@ -160,7 +160,7 @@
}
.enqueueButton{
color: #0d2714;
background-color: #58b16e;
background-color: #54c370;
padding: 0.5em;
border-radius: 5px;
border: none;
10 changes: 5 additions & 5 deletions src/css/QueueItem.module.css
Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@

.deleteButton{
color: #0d2714;
background-color: rgb(238, 163, 163);
background-color:#e37e5f;
padding: 0.5em;
margin: 0.5em;
border-radius: 5px;
@@ -88,12 +88,12 @@

}
.deleteButton:hover{
background-color: #cf7e7e;
background-color: #d96a56;
}

.addButton{
color: #0d2714;
background-color: #58b16e;
background-color: #54c370;
padding: 0.5em;
margin: 0.5em;
width: 2.5em;
@@ -135,7 +135,7 @@
}
.viewButton{
color: #0d2714;
background-color: #58b16e;
background-color: #54c370;
padding: 0.5em;
margin: 0.5em;
border-radius: 5px;
@@ -156,7 +156,7 @@
}
.enqueueButton{
color: #0d2714;
background-color: #58b16e;
background-color: #54c370;
padding: 0.5em;
border-radius: 5px;
border: none;
8 changes: 4 additions & 4 deletions src/css/Search.module.css
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
align-items: center;
}
.searchIconContainer{
outline: 1px solid #58b16e;
outline: 1px solid #54c370;
background-color: #00000000;
display: flex;
flex-direction: row;
@@ -125,9 +125,9 @@
}
.searchbutton{
color: #0d2714;
background-color: #58b16e;
border: 5px solid #58b16e;
box-shadow: 0px 0px 0px 0px #58b16e;
background-color: #54c370;
border: 5px solid #54c370;
box-shadow: 0px 0px 0px 0px #54c370;
height: 30px;
padding: 5px;
padding: 1em;
8 changes: 4 additions & 4 deletions src/pages/Login.js
Original file line number Diff line number Diff line change
@@ -26,11 +26,11 @@ export default function Login() {
<h2 className= { styles.h2}>A Virtual Pantry Manager & Recipe Tracker!</h2>
<h3 className= { styles.h3}>Login/Signup</h3>
<div id={styles.buttons}>
<button className={styles.button+' '+styles.apple} onClick={loginOnClick('apple')}>Apple</button>
<button className={styles.button+' '+styles.google} onClick={loginOnClick('google')}>Google</button>
{/* <button className={styles.button+' '+styles.apple} onClick={loginOnClick('apple')}>Apple</button> */}
{/* <button className={styles.button+' '+styles.google} onClick={loginOnClick('google')}>Google</button> */}
<button className={styles.button+' '+styles.microsoft} onClick={loginOnClick('aad')}>Microsoft</button>
<button className={styles.button+' '+styles.twitter} onClick={loginOnClick('twitter')}>Twitter / X</button>
<button className={styles.button+' '+styles.facebook} onClick={loginOnClick('facebook')}>Facebook</button>
{/* <button className={styles.button+' '+styles.twitter} onClick={loginOnClick('twitter')}>Twitter / X</button> */}
{/* <button className={styles.button+' '+styles.facebook} onClick={loginOnClick('facebook')}>Facebook</button> */}
<button className={styles.button+' '+styles.github} onClick={loginOnClick('github')}>Github</button>
</div>
</Stack>
2 changes: 1 addition & 1 deletion src/pages/food/CreateFood.js
Original file line number Diff line number Diff line change
@@ -96,7 +96,7 @@ export default function CreateFood() {
) :
hasSearched && results.length === 0 && (
<Alert key="danger" variant="danger" className={searchStyle.centerContents + " " + searchStyle.alertBar}>
No search results for query {food}
No results for "{food}"
</Alert>
)
}
2 changes: 1 addition & 1 deletion src/pages/recipe/EditRecipe.js
Original file line number Diff line number Diff line change
@@ -131,7 +131,7 @@ export default function EditRecipe() {
<div>
<div className={Layout.row+" "+Layout.ajustright}>
</div>
<div className={Layout.row}>
<div className={Layout.centerrow}>
<RemoveButton onClick={removeRecipe}/>
<SaveButton onClick={editRecipe}/>
</div>

0 comments on commit 772e827

Please sign in to comment.