first commit

This commit is contained in:
Abdelrahman Abdallah
2026-04-01 21:51:49 +02:00
commit 27aff5611b
151 changed files with 10858 additions and 0 deletions
@@ -0,0 +1,21 @@
import React from 'react';
import { Link } from 'react-router-dom';
import './ProductCard.css';
const ProductCard = ({ product }) => {
return (
<div className="product-card">
<img src={product.image} alt={product.name} className="product-image" />
<div className="product-info">
<h3 className="product-name">{product.name}</h3>
<p className="product-description">{product.description}</p>
<div className="product-price">${product.price.toFixed(2)}</div>
<Link to={`/product/${product.id}`} className="view-details-btn">
View Details
</Link>
</div>
</div>
);
};
export default ProductCard;