update App.js and ProductDesign.js

master
Your Name 3 years ago
parent e1911626b6
commit 6a3315859d
  1. 4
      src/App.js
  2. 8
      src/components/productDesign/ProductDesign.js

@ -91,7 +91,7 @@ function App() {
return ( return (
<Provider store={store}> <Provider store={store}>
<div className="App"> <div className="App">
<ProductDesign /> {/* <ProductDesign /> */}
{/* <VodProductDesign /> */} {/* <VodProductDesign /> */}
{/* <VodProduct /> */} {/* <VodProduct /> */}
{/* <VodProductNew /> */} {/* <VodProductNew /> */}
@ -137,7 +137,7 @@ function App() {
{/* <ReligiousTimes /> */} {/* <ReligiousTimes /> */}
{/* <DistributedData /> */} {/* <DistributedData /> */}
{/* <CardDesign1 /> */} {/* <CardDesign1 /> */}
{/* <CardDesign2 /> */} <CardDesign2 />
{/* *************************************************** mini components *************************************************** */} {/* *************************************************** mini components *************************************************** */}
<Button /> <Button />
{/* <ButtonDesign /> */} {/* <ButtonDesign /> */}

@ -15,6 +15,7 @@ import YellowDotIcon from "../../assets/icons/yellowDotIcon.svg";
import RedDotIcon from "../../assets/icons/redDotIcon.svg"; import RedDotIcon from "../../assets/icons/redDotIcon.svg";
import PurpleDotIcon from "../../assets/icons/purpleDotIcon.svg"; import PurpleDotIcon from "../../assets/icons/purpleDotIcon.svg";
import LightBlueDotIcon from "../../assets/icons/lightBlueDotIcon.svg"; import LightBlueDotIcon from "../../assets/icons/lightBlueDotIcon.svg";
import Button from "../Button";
const ProductDesign = ({ const ProductDesign = ({
colors, colors,
@ -260,9 +261,10 @@ const ProductDesign = ({
</div> </div>
{/* dark hover effect */} {/* dark hover effect */}
<div className="absolute right-0 bottom-0 h-full w-full group-hover:bg-blackBg group-hover:rounded group-hover:border transition duration-300 opacity-50"></div> <div className="absolute right-0 bottom-0 h-full w-full group-hover:bg-blackBg group-hover:rounded group-hover:border transition duration-300 opacity-50"></div>
<button className="group-hover:opacity-100 bg-blueBgColor text-white rounded p-2 text-xs absolute left-1/2 bottom-1/2 transform -translate-x-1/2 -translate-y-1/2 opacity-0 transition duration-300"> <Button
افزودن به سبد خرید className={`group-hover:opacity-100 bg-blueBgColor text-white rounded p-2 text-xs opacity-0 absolute left-1/2 bottom-1/2 transform -translate-x-1/2 -translate-y-1/2`}
</button> text={"افزودن به سبد خرید"}
/>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save