-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
47 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from 'react' | ||
|
||
const ImagePlaceholder = ({ cssHandle }) => ( | ||
<div className="relative"> | ||
<div className={`${cssHandle} absolute w-100 h-100 contain bg-center`} /> | ||
<svg | ||
width="100%" | ||
height="100%" | ||
viewBox="0 0 512 512" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
data-testid="image-placeholder" | ||
> | ||
<rect width="512" height="512" fill="#F2F2F2" /> | ||
<rect | ||
x="183.857" | ||
y="180.2" | ||
width="144.286" | ||
height="150.474" | ||
stroke="#CACBCC" | ||
strokeWidth="2" | ||
/> | ||
<path d="M183.78 303.688H328.214" stroke="#CACBCC" strokeWidth="2" /> | ||
<path | ||
d="M205.082 279.563L223.599 240.507L242.116 260.035L269.892 220.979L306.926 279.563H205.082Z" | ||
stroke="#CACBCC" | ||
strokeWidth="2" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
<path | ||
d="M252.225 213.939C252.225 219.822 247.66 224.52 242.114 224.52C236.569 224.52 232.004 219.822 232.004 213.939C232.004 208.057 236.569 203.359 242.114 203.359C247.66 203.359 252.225 208.057 252.225 213.939Z" | ||
stroke="#CACBCC" | ||
strokeWidth="2" | ||
/> | ||
</svg> | ||
</div> | ||
) | ||
|
||
export default ImagePlaceholder |
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