master
mahdi 3 years ago
parent ffb4b11634
commit 7a02eae7ed
  1. 8
      src/components/Feedback/index.js

@ -16,7 +16,7 @@ const Feedback = ({ feedbacks }) => {
return ( return (
<section <section
className="w-1/3 bg-white rounded shadow-sm border border-gray-500 mx-auto my-20 flex-col items-center justify-center relative" className="w-full lg:w-1/3 bg-white rounded shadow-sm border border-gray-500 mx-auto my-20 flex-col items-center justify-center relative"
style={{ display: closeModal ? "none" : "flex" }} style={{ display: closeModal ? "none" : "flex" }}
> >
<div <div
@ -28,7 +28,7 @@ const Feedback = ({ feedbacks }) => {
<h2 className="mt-10 text-productPrice"> <h2 className="mt-10 text-productPrice">
نظر شما نسبت به رابط کاربری سایت جدیدمون چیه؟ نظر شما نسبت به رابط کاربری سایت جدیدمون چیه؟
</h2> </h2>
<div className="flex flex-row w-full justify-between"> <div className="flex flex-row justify-between">
{feedbacks.map((item, index) => ( {feedbacks.map((item, index) => (
<div <div
className="flex flex-col items-center mt-7 w-full px-4 pb-8 relative cursor-pointer" className="flex flex-col items-center mt-7 w-full px-4 pb-8 relative cursor-pointer"
@ -38,11 +38,11 @@ const Feedback = ({ feedbacks }) => {
<img <img
src={item.icon} src={item.icon}
alt="" alt=""
className="transition duration-300 transform hover:-translate-y-1" className="transition duration-300 transform hover:-translate-y-1 w-14 h-14"
/> />
{activeFeedback === item && ( {activeFeedback === item && (
<> <>
<p>{item.name}</p> <p className="text-sm mt-3">{item.name}</p>
<img <img
src={upwardArrow} src={upwardArrow}
alt="" alt=""

Loading…
Cancel
Save