Skip to content

Commit

Permalink
layouting
Browse files Browse the repository at this point in the history
  • Loading branch information
incalescence committed Aug 26, 2023
1 parent d6eb21e commit 664597c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/components/SuggestCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { motion } from 'framer-motion';

const SuggestCard = ({ name, imageUrl }) => {
return (
<div>
<div className='mx-1'>
<p className='py-4'>{name}</p>
<img
className='object-cover hover:scale-110 transition duration-500 cursor-pointer py-5'
Expand All @@ -16,7 +16,7 @@ const SuggestCard = ({ name, imageUrl }) => {
whileTap={{ scale: 0.9 }}
className='btn btn-accent hover:shadow-lg'
>
Add to my garden
Add to garden
</motion.button>
</Link>
</div>
Expand Down
26 changes: 14 additions & 12 deletions src/pages/SuggestPlant.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,20 @@ const SuggestPlant = () => {
<h3 className='font-bold text-lg'>
The best matches for you are
</h3>
<SuggestCard
name={suggestion[0].name}
imageUrl='https://t4.ftcdn.net/jpg/02/32/98/31/360_F_232983161_9lmUyHKnWbLW0vQPvWCrp5R5DSpexhbx.jpg'
/>
<SuggestCard
name={suggestion[1].name}
imageUrl='https://t4.ftcdn.net/jpg/02/32/98/31/360_F_232983161_9lmUyHKnWbLW0vQPvWCrp5R5DSpexhbx.jpg'
/>
<SuggestCard
name={suggestion[2].name}
imageUrl='https://t4.ftcdn.net/jpg/02/32/98/31/360_F_232983161_9lmUyHKnWbLW0vQPvWCrp5R5DSpexhbx.jpg'
/>
<div className='flex flex-row'>
<SuggestCard
name={suggestion[0].name}
imageUrl='https://t4.ftcdn.net/jpg/02/32/98/31/360_F_232983161_9lmUyHKnWbLW0vQPvWCrp5R5DSpexhbx.jpg'
/>
<SuggestCard
name={suggestion[1].name}
imageUrl='https://t4.ftcdn.net/jpg/02/32/98/31/360_F_232983161_9lmUyHKnWbLW0vQPvWCrp5R5DSpexhbx.jpg'
/>
<SuggestCard
name={suggestion[2].name}
imageUrl='https://t4.ftcdn.net/jpg/02/32/98/31/360_F_232983161_9lmUyHKnWbLW0vQPvWCrp5R5DSpexhbx.jpg'
/>
</div>
</>
)}
</form>
Expand Down

0 comments on commit 664597c

Please sign in to comment.