import React from "react";
import "./Explore_our_fresh_produce_card.css";

function Explore_our_fresh_produce_card({ nameText, imgSrc }) {
  return (
    <>
      <section className="Explore_our_fresh_produce_card">
        <div className="img_holder">
          <img
            className="Product_img"
            src={process.env.PUBLIC_URL + imgSrc}
            alt={"Product_img"}
          />
        </div>
        <div className="text_holder">
          <p>{nameText}</p>
        </div>
      </section>
    </>
  );
}

export default Explore_our_fresh_produce_card;
