diff --git a/public/cat-item.webp b/public/cat-item.webp new file mode 100644 index 0000000..40280f1 Binary files /dev/null and b/public/cat-item.webp differ diff --git a/public/elephant-item.webp b/public/elephant-item.webp new file mode 100644 index 0000000..0df8410 Binary files /dev/null and b/public/elephant-item.webp differ diff --git a/public/gajah-item-empty.webp b/public/gajah-item-empty.webp new file mode 100644 index 0000000..5172917 Binary files /dev/null and b/public/gajah-item-empty.webp differ diff --git a/public/giraffe-item.webp b/public/giraffe-item.webp new file mode 100644 index 0000000..bbe07a1 Binary files /dev/null and b/public/giraffe-item.webp differ diff --git a/public/horse-item.webp b/public/horse-item.webp new file mode 100644 index 0000000..ae72a54 Binary files /dev/null and b/public/horse-item.webp differ diff --git a/public/lion-item.webp b/public/lion-item.webp new file mode 100644 index 0000000..b9def8e Binary files /dev/null and b/public/lion-item.webp differ diff --git a/public/parrot-item.webp b/public/parrot-item.webp new file mode 100644 index 0000000..ecb9023 Binary files /dev/null and b/public/parrot-item.webp differ diff --git a/public/tiger-item.webp b/public/tiger-item.webp new file mode 100644 index 0000000..5ef400a Binary files /dev/null and b/public/tiger-item.webp differ diff --git a/src/App.jsx b/src/App.jsx index 1806ea0..7a88bb8 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -6,6 +6,7 @@ import 'react-toastify/dist/ReactToastify.css'; // Import your components import AnimalFacts from './AnimalFacts'; import AnimalStory from './AnimalStory'; +import Marketplace from "./Marketplace.jsx"; const App = () => { const [isMenuOpen, setIsMenuOpen] = useState(false); @@ -71,6 +72,16 @@ const App = () => { }`}> Cerita Hewan + + Beli Mainan + + + Mulai Berlangganan + )} @@ -78,6 +89,7 @@ const App = () => { } /> } /> + } /> ); diff --git a/src/Marketplace.jsx b/src/Marketplace.jsx new file mode 100644 index 0000000..ac34491 --- /dev/null +++ b/src/Marketplace.jsx @@ -0,0 +1,88 @@ +import React from 'react'; + +const Marketplace = () => { + // Sample toy data + const toys = [ + { id: 1, name: 'Boneka Kucing', price: 'Rp. 50.000', rating: 4.8, image: '/cat-item.webp' }, + { id: 2, name: 'Boneka Gajah', price: 'Rp. 50.000', rating: 4.9, image: '/elephant-item.webp' }, + { id: 3, name: 'Boneka Jerapah', price: 'Rp. 50.000', rating: 4.7, image: '/giraffe-item.webp' }, + { id: 4, name: 'Boneka Kuda', price: 'Rp. 50.000', rating: 5.0, image: '/horse-item.webp' }, + ]; + + return ( +
+ {/* Header */} +
+

Toko

+
+ +
+
+ + {/* Search Section */} +
+ +
+ + {/* Categories */} +
+

Jenis Hewan

+
+ + + + +
+
+ + {/* Clearance Section */} +
+
+

Diskon Pembukaan!

+

Kupon Diskon hingga 50%!

+
+ Sale +
+ + {/* Toy Listings */} +
+ {toys.map((toy) => ( +
+ {toy.name} +

{toy.name}

+

{toy.price}

+
+ + {toy.rating} +
+
+ ))} +
+ + {/* Footer */} + +
+ ); +}; + +export default Marketplace;