Skip to content

Commit

Permalink
Added Plant Card component skeleton design
Browse files Browse the repository at this point in the history
Added Home Page skeleton design
  • Loading branch information
ravi-p-k-1 committed Feb 17, 2025
1 parent 61d3ab7 commit 5605f92
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
12 changes: 12 additions & 0 deletions frontend/web-app/src/Components/PlantCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'
import '../Styles/custom/plantCard.css'

function PlantCard() {
return (
<div className='plantCard'>

</div>
)
}

export default PlantCard
9 changes: 8 additions & 1 deletion frontend/web-app/src/Pages/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React, { useEffect } from 'react'
import authController from '../Controller/AuthController'
import '../Styles/custom/homePage.css'
import PlantCard from '../Components/PlantCard'

function HomePage() {
// example of using APIs
Expand All @@ -17,7 +19,12 @@ function HomePage() {
}, [])

return (
<div>HomePage</div>
<div className='homePage'>
<div className='nameBar'>Vy's Plants</div>
<div className='plantViewer'>
<PlantCard />
</div>
</div>
)
}

Expand Down
18 changes: 18 additions & 0 deletions frontend/web-app/src/Styles/custom/homePage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* Home Page CSS */

.homePage{
display: flex;
flex-direction: column;
padding: 44px 82px 0px 82px;
}

.nameBar{
font-family: "Poppins", serif;
font-size: 42px;
font-weight: 800;
color: #4C5740;
}

.plantViewer{
padding-top: 31px;
}
8 changes: 8 additions & 0 deletions frontend/web-app/src/Styles/custom/plantCard.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* Plant Card CSS */

.plantCard{
height: 532px;
width: 356px;
background-color: #E6F2D7;
border-radius: 18px;
}

0 comments on commit 5605f92

Please sign in to comment.