Skip to content

Commit

Permalink
#2 homepage changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ktn-mariam committed Nov 23, 2023
1 parent c5dd548 commit 07863d0
Show file tree
Hide file tree
Showing 8 changed files with 482 additions and 158 deletions.
Binary file added client/public/cow-eatting-grass.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/farmer-main-page.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/strawberry.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/vegetables-field.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions client/src/components/CategoryNavbar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import React from 'react'
import { NavLink } from 'react-router-dom'

const CategoryNavbar = () => {
return (
<nav>
<ul className="grid grid-cols-4 md:grid-cols-8 gap-y-5 justify-between items-start font-roboto">
<NavLink to="/store/fruits">
<li className="flex flex-col items-center">
<img
className="md:h-28 h-14 rounded-full hover:shadow-lg hover:cursor-pointer"
src="/store-navbar/fruit.jpg"
alt="fruit"
/>
<p>Fruits</p>
</li>
</NavLink>
<NavLink to="/store/vegetables">
<li className="flex flex-col items-center">
<img
className="md:h-28 h-14 rounded-full hover:shadow-lg hover:cursor-pointer"
src="/store-navbar/vegetable.jpg"
alt="fruit"
/>
<p>Vegetables</p>
</li>
</NavLink>
<NavLink to="/store/coffee-&-tea">
<li className="flex flex-col items-center">
<img
className="md:h-28 h-14 rounded-full hover:shadow-lg hover:cursor-pointer"
src="/store-navbar/coffee.png"
alt="fruit"
/>
<p>Coffee & Tea</p>
</li>
</NavLink>
<NavLink to="/store/diary-&-eggs">
<li className="flex flex-col items-center">
<img
className="md:h-28 h-14 rounded-full hover:shadow-lg hover:cursor-pointer"
src="/store-navbar/milk.png"
alt="fruit"
/>
<p>Diary & eggs</p>
</li>
</NavLink>
<NavLink to="/store/meat">
<li className="flex flex-col items-center">
<img
className="md:h-28 h-14 rounded-full hover:shadow-lg hover:cursor-pointer"
src="/store-navbar/meat.png"
alt="fruit"
/>
<p>Meat</p>
</li>
</NavLink>
<NavLink to="/store/honey-&-bee-products">
<li className="flex flex-col items-center">
<img
className="md:h-28 h-14 rounded-full hover:shadow-lg hover:cursor-pointer"
src="/store-navbar/honey.png"
alt="fruit"
/>
<p className="text-center">Honey & Bee Products</p>
</li>
</NavLink>
<NavLink to="/store/flowers">
<li className="flex flex-col items-center">
<img
className="md:h-28 h-14 rounded-full hover:shadow-lg hover:cursor-pointer"
src="/store-navbar/flower.png"
alt="fruit"
/>
<p>Flowers</p>
</li>
</NavLink>
<NavLink to="/store/dried-fruits-&-nuts">
<li className="flex flex-col items-center">
<img
className="md:h-28 h-14 rounded-full hover:shadow-lg hover:cursor-pointer"
src="/store-navbar/dried-fruit.png"
alt="fruit"
/>
<p>Dried Fruits & Nuts</p>
</li>
</NavLink>
</ul>
</nav>
)
}

export default CategoryNavbar
Loading

0 comments on commit 07863d0

Please sign in to comment.