-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deleted addNewPlantCard CSS and merged it with plantCard.css.
Removed good and dry background color CSS from plantCard CSS and put it into the global CSS file. Created Design for PlantDetailPage and added Plant Detail Card Component. Added Information section of the Plant Detail Card alongwith CSS.
- Loading branch information
1 parent
07632ec
commit bdd8d96
Showing
7 changed files
with
173 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import React from 'react' | ||
import '../Styles/custom/addNewPlantCard.css' | ||
|
||
function AddNewPlantCard() { | ||
return ( | ||
|
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,38 @@ | ||
import React from 'react' | ||
import dummyImage from '../Images/rose.png' | ||
|
||
function PlantDetailCard({status}: {status: string}) { | ||
return ( | ||
<div className={`plant-detail-card font-poppins ${status}`}> | ||
<div className='plant-detail-card-information'> | ||
<div className='detail-and-image-container'> | ||
<img className='plant-detail-card-image' src={dummyImage} alt='error img'/> | ||
<div className='plant-detail-card-details'> | ||
<div> | ||
Name: <b>Red Rose</b> | ||
</div> | ||
<div> | ||
Status: <b>Good</b> | ||
</div> | ||
<div> | ||
Last Watered: <b>3:15pm</b> on <b>2/6/2025</b> | ||
</div> | ||
<div> | ||
Note: <b>Place this plant near the window</b> | ||
</div> | ||
</div> | ||
</div> | ||
<div className='plant-detail-card-button-container'> | ||
<img className='plant-detail-card-close-button' src='' alt='error img'/> | ||
<button className='plant-detail-card-edit-button'>Edit</button> | ||
<button className='plant-detail-card-delete-button'>Delete</button> | ||
</div> | ||
</div> | ||
<div className='plant-detail-card-history'> | ||
|
||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default PlantDetailCard |
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 was deleted.
Oops, something went wrong.
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,95 @@ | ||
/* Plant Detail Page CSS */ | ||
|
||
.plant-detail-page{ | ||
display: flex; | ||
flex-direction: column; | ||
padding: 41px 82px 34px 82px; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.plant-detail-card{ | ||
width: 100%; | ||
height: 800px; | ||
border-radius: 37px; | ||
} | ||
|
||
.plant-detail-card-information{ | ||
display: flex; | ||
flex-direction: row; | ||
padding: 27px 100px 27px 100px; | ||
justify-content: space-between; | ||
} | ||
|
||
.plant-detail-card-information > .detail-and-image-container{ | ||
display: flex; | ||
flex-direction: row; | ||
} | ||
|
||
.plant-detail-card-details{ | ||
display: flex; | ||
flex-direction: column; | ||
margin-left: 41px; | ||
font-weight: 400; | ||
font-size: 25px; | ||
line-height: 37px; | ||
justify-content: space-between; | ||
} | ||
|
||
.plant-detail-card-details b{ | ||
font-weight: 700; | ||
} | ||
|
||
.plant-detail-card-image{ | ||
width: 196px; | ||
height: 196px; | ||
} | ||
|
||
.plant-detail-card-button-container{ | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.plant-detail-card-close-button{ | ||
margin-bottom: 31px; | ||
width: 29px; | ||
height: 29px; | ||
align-self: flex-end; | ||
} | ||
|
||
.plant-detail-card-edit-button{ | ||
all: unset; | ||
margin-bottom: 20px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 123px; | ||
height: 47px; | ||
background-color: #AFD582; | ||
border-radius: 15px; | ||
font-weight: 700; | ||
font-size: 25px; | ||
transition: 0.4s; | ||
} | ||
|
||
.plant-detail-card-edit-button:hover{ | ||
background-color: #77B42D; | ||
} | ||
|
||
.plant-detail-card-delete-button{ | ||
all: unset; | ||
width: 123px; | ||
height: 47px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: #EDAC9A; | ||
border-radius: 15px; | ||
font-weight: 700; | ||
font-size: 25px; | ||
transition: 0.4s; | ||
} | ||
|
||
.plant-detail-card-delete-button:hover{ | ||
background-color: red; | ||
} |
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 |
---|---|---|
|
@@ -13,3 +13,11 @@ body{ | |
.text-white{ | ||
color: #FFFFFF; | ||
} | ||
|
||
.good{ | ||
background-color: #E6F2D7; | ||
} | ||
|
||
.dry{ | ||
background-color: #F2DDD7; | ||
} |