generated from the-collab-lab/smart-shopping-list
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 #38 from the-collab-lab/dn-make-chippy-a-component
Make Chippy a component
- Loading branch information
Showing
6 changed files
with
77 additions
and
55 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Chippy3 from '/img/Chippy3.gif'; | ||
|
||
export function Chippy({ message }) { | ||
return ( | ||
<div id="chippyBox" className="grid grid-cols-3 pt-5"> | ||
<div className="chippy-suggestion chippy-suggestion-bottom-right col-span-2"> | ||
{message} | ||
</div> | ||
<img | ||
id="chippy" | ||
src={Chippy3} | ||
alt='Helpful potato chip gif named Chippy, à la "Clippy", who suggests that user adds an item to their shopping list ' | ||
></img> | ||
</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