-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
5848216
commit 866ad37
Showing
4 changed files
with
55 additions
and
5 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 smile from '../icons/smile.svg'; | ||
import sad from '../icons/sad.svg'; | ||
|
||
const Card = ({ image, waga, godzina }) => { | ||
return ( <> | ||
|
||
<div className="bg-white rounded-lg p-4 mb-4 shadow-md items-center" style={{ width: '350px', height: '150px' }}> | ||
<div> | ||
<p className="text-black">10.05.2024</p> | ||
</div> | ||
<div className="w-full h-full flex"> | ||
{/* Left side: Image */} | ||
<div className="w-1/3 h-full"> | ||
{/* <img | ||
src={`data:image/png;base64,${image.buffer}`} | ||
alt="Card Image" | ||
className="w-full max-h-full object-cover rounded-md" | ||
style={{ objectFit: 'cover' }} | ||
/> */} | ||
<svg | ||
src="../icons/smile.svg" | ||
alt="Card Image" | ||
className="w-full max-h-full object-cover rounded-md" | ||
style={{ objectFit: 'cover' }} | ||
/> | ||
</div> | ||
|
||
{/* Right side: Text fields */} | ||
<div className="w-2/3 h-full pl-4 flex flex-col justify-center"> | ||
<p className="text-black">Waga: {waga} g</p> | ||
<p className="text-black">Godzina: {godzina}</p> | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default Card; | ||
|
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.