update App.js, src/components/Button/index.js, src/components/Features/index.js and src/components/ProductStatusCard/index.js

master
mahdi 3 years ago
parent 6234ecb25b
commit 70b611bb62
  1. 6
      src/App.js
  2. 2
      src/components/Button/index.js
  3. 4
      src/components/ProductStatusCard/index.js

@ -128,7 +128,7 @@ function App() {
{/* ---------------------------- not usable ---------------------------- */} {/* ---------------------------- not usable ---------------------------- */}
{/* <ProductTags /> */} {/* <ProductTags /> */}
<NewTagDesign /> {/* <NewTagDesign /> */}
{/* <CounterDesign /> */} {/* <CounterDesign /> */}
@ -153,7 +153,7 @@ function App() {
{/* <ProductTab /> */} {/* <ProductTab /> */}
{/* <ProductStatusCard /> */} <ProductStatusCard />
{/* <AdvertisementDesign1 /> */} {/* <AdvertisementDesign1 /> */}
{/* <AdvertisementDesign2 /> */} {/* <AdvertisementDesign2 /> */}
@ -221,7 +221,7 @@ function App() {
{/* <TimeLineComponent /> */} {/* <TimeLineComponent /> */}
<CardTrelloDesign /> {/* <CardTrelloDesign /> */}
{/* <ReligiousTimes /> */} {/* <ReligiousTimes /> */}

@ -3,7 +3,7 @@ const Button = ({ className, iconClassName, icon, text, onClick }) => {
return ( return (
<button <button
onClick={onClick} onClick={onClick}
className={`flex items-center justify-center transiton duration-200 hover:bg-opacity-70 ${className}`} className={`flex items-center justify-center transiton ease-linear duration-200 hover:bg-opacity-70 ${className}`}
> >
{text} {text}
{icon && ( {icon && (

@ -13,7 +13,7 @@ const ProductStatusCard = ({ items, productPrice, discountPrice }) => {
console.log(items.alertIcon); console.log(items.alertIcon);
return ( return (
<section className="bg-white m-10 w-full sm:w-8/12 md:w-5/12 lg:w-3/12 p-5"> <section className="bg-white p-4 w-fit">
<div className="bg-gray-200 rounded px-4 py-2"> <div className="bg-gray-200 rounded px-4 py-2">
{items.map((item, index) => ( {items.map((item, index) => (
<div> <div>
@ -56,8 +56,8 @@ const ProductStatusCard = ({ items, productPrice, discountPrice }) => {
</div> </div>
<div className="w-full flex flex-col items-center"> <div className="w-full flex flex-col items-center">
<Button <Button
className={`w-6/12 mt-5 mb-2 rounded bg-blue-400 text-white px-2 py-2 text-sm hover:bg-blue-600 hover:bg-opacity-90 transtition ease-linear duration-300`}
text={"افزودن به سبد خرید"} text={"افزودن به سبد خرید"}
className="my-4 text-white rounded-sm text-sm p-2 bg-blue-400 hover:bg-blue-600 hover:bg-opacity-90"
/> />
</div> </div>
</div> </div>

Loading…
Cancel
Save