diff --git a/src/components/Digikala/Banners.js b/src/components/Digikala/Banners.js deleted file mode 100644 index 9804cc3..0000000 --- a/src/components/Digikala/Banners.js +++ /dev/null @@ -1,57 +0,0 @@ -import React from "react"; - -import pic2 from "./pic2.jpg"; -import danovin from "./danovin.jpg"; -import greeeeen from "./greeeeen.jpg"; - -const Banners = ({ mainBanner, leftBanner, midTopBanner, midBottomBanner }) => { - return ( -
-
- -
-
-
-
- -
-
- -
-
-
- -
-
-
- ); -}; - -export default Banners; diff --git a/src/components/Digikala/Categories.js b/src/components/Digikala/Categories.js deleted file mode 100644 index c893105..0000000 --- a/src/components/Digikala/Categories.js +++ /dev/null @@ -1,75 +0,0 @@ -import React from "react"; - -import jet from "./jet.png"; -import style from "./style.png"; -import pay from "./pay.png"; -import pindo from "./pindo.png"; -import mamoriat from "./mamoriat.png"; -import plus from "./plus.png"; -import club from "./club.png"; -import more from "./more2.svg"; - -const Categories = ({ items }) => { - return ( -
-
- {items.slice(0, 7).map((item, index) => ( -
- - {item.title} -
- ))} -
9 ? "bg-blue-600" : "bg-red-600"}`} - className="flex flex-col items-center justify-center " - > -
- -
- بیشتر{" "} -
-
-
- ); -}; - -export default Categories; - -Categories.defaultProps = { - items: [ - { - image: jet, - title: "دیجی کالا جت", - }, - { - image: style, - title: "دیجی استایل", - }, - { - image: pay, - title: "دیجی پی", - }, - { - image: pindo, - title: "پیندو", - }, - { - image: mamoriat, - title: "ماموریت ها", - }, - { - image: plus, - title: "دیجی پلاس", - }, - { - image: club, - title: "دیجی کلاب", - }, - ], -}; diff --git a/src/components/Digikala/General.png b/src/components/Digikala/General.png deleted file mode 100644 index 89d2da9..0000000 Binary files a/src/components/Digikala/General.png and /dev/null differ diff --git a/src/components/Digikala/ImageSlider.js b/src/components/Digikala/ImageSlider.js deleted file mode 100644 index 78013e2..0000000 --- a/src/components/Digikala/ImageSlider.js +++ /dev/null @@ -1,76 +0,0 @@ -import React, { useState } from "react"; - -import rightArrow from "./black-right-arrow.svg"; -import leftArrow from "./black-left-arrow.svg"; - -const ImageSlider = ({ slides }) => { - const [current, setCurrent] = useState(0); - const length = slides.length; - - const nextSlide = () => { - setCurrent(current === length - 1 ? 0 : current + 1); - }; - - const prevSlide = () => { - setCurrent(current === 0 ? length - 1 : current - 1); - }; - - console.log(current); - - if (!Array.isArray(slides) || slides.length <= 0) { - return null; - } - - return ( -
-
- {slides.map((slide, index) => { - return ( -
- {index === current && ( - mahdi - )} -
- ); - })} - -
-
- ); -}; - -export default ImageSlider; - -function Tabbar({ nextSlide, prevSlide }) { - const tabs = [ - { - icon: rightArrow, - click: nextSlide, - }, - { - icon: leftArrow, - click: prevSlide, - }, - ]; - return ( -
- {tabs.map((tab, index) => ( - - ))} -
- ); -} diff --git a/src/components/Digikala/Offer.js b/src/components/Digikala/Offer.js deleted file mode 100644 index 7fd5a59..0000000 --- a/src/components/Digikala/Offer.js +++ /dev/null @@ -1,212 +0,0 @@ -import React from "react"; -import { Swiper, SwiperSlide } from "swiper/react"; -// Import Swiper styles -import "swiper/css"; -import "swiper/css/navigation"; -import "swiper/css/pagination"; - - -import leftArrow from "./white-left-arrow.svg"; -import General from "./General.png"; - -import o2 from "./o2.jpg"; -import o3 from "./o3.jpg"; -import r1 from "./r1.jpg"; -import r2 from "./r2.jpg"; - -const Offer = ({ products }) => { - return ( -
-
- {/* right */} -
- - پیـــــشنهاد -
- شگــــفت -
- انـــگیز -
- - -
- {/* left */} -
- console.log("slide change")} - onSwiper={(swiper) => console.log(swiper)} - > - {/* */} - {products.map((product, index) => ( - -
- -
-

- {product.discount} - % -

-
-

{product.price}

-
- توما - - ن - -
-
-
-

- {product.discountPrice} -

-
-
-
-
-
- ))} -
-
-
-
- ); -}; - -export default Offer; - -Offer.defaultProps = { - products: [ - { - image: o2, - price: 20900000, - discount: 7, - rangeWidth: "33%", - discountPrice: 75000, - }, - { - image: o3, - price: 11000000, - discount: 2, - rangeWidth: "75%", - discountPrice: 75000, - }, - { - image: r1, - price: 3205000, - discount: 70, - rangeWidth: "72%", - discountPrice: 75000, - }, - { - image: r2, - price: 30000, - discount: 75, - rangeWidth: "44%", - discountPrice: 75000, - }, - { - image: o2, - price: 20900000, - discount: 7, - rangeWidth: "33%", - discountPrice: 75000, - }, - { - image: o3, - price: 11000000, - discount: 2, - rangeWidth: "75%", - discountPrice: 75000, - }, - { - image: r1, - price: 3205000, - discount: 70, - rangeWidth: "72%", - discountPrice: 75000, - }, - { - image: r2, - price: 30000, - discount: 75, - rangeWidth: "44%", - discountPrice: 75000, - }, - { - image: o2, - price: 20900000, - discount: 7, - rangeWidth: "33%", - discountPrice: 75000, - }, - { - image: o3, - price: 11000000, - discount: 2, - rangeWidth: "75%", - discountPrice: 75000, - }, - { - image: r1, - price: 3205000, - discount: 70, - rangeWidth: "72%", - discountPrice: 75000, - }, - { - image: r2, - price: 30000, - discount: 75, - rangeWidth: "44%", - discountPrice: 75000, - }, - { - image: o2, - price: 20900000, - discount: 7, - rangeWidth: "33%", - discountPrice: 75000, - }, - { - image: o3, - price: 11000000, - discount: 2, - rangeWidth: "75%", - discountPrice: 75000, - }, - { - image: r1, - price: 3205000, - discount: 70, - rangeWidth: "72%", - discountPrice: 75000, - }, - { - image: r2, - price: 30000, - discount: 75, - rangeWidth: "44%", - discountPrice: 75000, - }, - ], -}; diff --git a/src/components/Digikala/SliderData.js b/src/components/Digikala/SliderData.js deleted file mode 100644 index 7379581..0000000 --- a/src/components/Digikala/SliderData.js +++ /dev/null @@ -1,19 +0,0 @@ -import pic4 from "./pic4.jpg"; -import pic6 from "./pic6.jpg"; -import pic5 from "./pic5.jpg"; -import pic3 from "./pic3.jpg"; - -export const SliderData = [ - { - image: pic4, - }, - { - image: pic6, - }, - { - image: pic5, - }, - { - image: pic3, - }, -]; diff --git a/src/components/Digikala/belt-bag.jpg b/src/components/Digikala/belt-bag.jpg deleted file mode 100644 index f85a192..0000000 Binary files a/src/components/Digikala/belt-bag.jpg and /dev/null differ diff --git a/src/components/Digikala/black-left-arrow.svg b/src/components/Digikala/black-left-arrow.svg deleted file mode 100644 index bc9b3f6..0000000 --- a/src/components/Digikala/black-left-arrow.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/src/components/Digikala/black-right-arrow.svg b/src/components/Digikala/black-right-arrow.svg deleted file mode 100644 index c540675..0000000 --- a/src/components/Digikala/black-right-arrow.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/src/components/Digikala/camera.jpg b/src/components/Digikala/camera.jpg deleted file mode 100644 index 1bbe7ea..0000000 Binary files a/src/components/Digikala/camera.jpg and /dev/null differ diff --git a/src/components/Digikala/club.png b/src/components/Digikala/club.png deleted file mode 100644 index 7d95bb5..0000000 Binary files a/src/components/Digikala/club.png and /dev/null differ diff --git a/src/components/Digikala/danovin.jpg b/src/components/Digikala/danovin.jpg deleted file mode 100644 index 6eed29f..0000000 Binary files a/src/components/Digikala/danovin.jpg and /dev/null differ diff --git a/src/components/Digikala/greeeeen.jpg b/src/components/Digikala/greeeeen.jpg deleted file mode 100644 index e604ed1..0000000 Binary files a/src/components/Digikala/greeeeen.jpg and /dev/null differ diff --git a/src/components/Digikala/green.jpg b/src/components/Digikala/green.jpg deleted file mode 100644 index e604ed1..0000000 Binary files a/src/components/Digikala/green.jpg and /dev/null differ diff --git a/src/components/Digikala/index.js b/src/components/Digikala/index.js deleted file mode 100644 index 015697f..0000000 --- a/src/components/Digikala/index.js +++ /dev/null @@ -1,19 +0,0 @@ -import React from "react"; -import ImageSlider from "./ImageSlider"; -import { SliderData } from "./SliderData"; -import Categories from "./Categories"; -import Offer from "./Offer"; -import Banners from "./Banners"; - -const Digikala = () => { - return ( -
- - - - -
- ); -}; - -export default Digikala; diff --git a/src/components/Digikala/index.scss b/src/components/Digikala/index.scss deleted file mode 100644 index e69de29..0000000 diff --git a/src/components/Digikala/jet.png b/src/components/Digikala/jet.png deleted file mode 100644 index 282d66b..0000000 Binary files a/src/components/Digikala/jet.png and /dev/null differ diff --git a/src/components/Digikala/mamoriat.png b/src/components/Digikala/mamoriat.png deleted file mode 100644 index 852b5a6..0000000 Binary files a/src/components/Digikala/mamoriat.png and /dev/null differ diff --git a/src/components/Digikala/more2.svg b/src/components/Digikala/more2.svg deleted file mode 100644 index 3967400..0000000 --- a/src/components/Digikala/more2.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/src/components/Digikala/mouse.jpg b/src/components/Digikala/mouse.jpg deleted file mode 100644 index 594d615..0000000 Binary files a/src/components/Digikala/mouse.jpg and /dev/null differ diff --git a/src/components/Digikala/o2.jpg b/src/components/Digikala/o2.jpg deleted file mode 100644 index 714cd9b..0000000 Binary files a/src/components/Digikala/o2.jpg and /dev/null differ diff --git a/src/components/Digikala/o3.jpg b/src/components/Digikala/o3.jpg deleted file mode 100644 index ecdaa16..0000000 Binary files a/src/components/Digikala/o3.jpg and /dev/null differ diff --git a/src/components/Digikala/oloom4.jpg b/src/components/Digikala/oloom4.jpg deleted file mode 100644 index 821d171..0000000 Binary files a/src/components/Digikala/oloom4.jpg and /dev/null differ diff --git a/src/components/Digikala/pay.png b/src/components/Digikala/pay.png deleted file mode 100644 index 10ede61..0000000 Binary files a/src/components/Digikala/pay.png and /dev/null differ diff --git a/src/components/Digikala/pic1.jpg b/src/components/Digikala/pic1.jpg deleted file mode 100644 index 6eed29f..0000000 Binary files a/src/components/Digikala/pic1.jpg and /dev/null differ diff --git a/src/components/Digikala/pic2.jpg b/src/components/Digikala/pic2.jpg deleted file mode 100644 index cdca569..0000000 Binary files a/src/components/Digikala/pic2.jpg and /dev/null differ diff --git a/src/components/Digikala/pic3.jpg b/src/components/Digikala/pic3.jpg deleted file mode 100644 index 795c404..0000000 Binary files a/src/components/Digikala/pic3.jpg and /dev/null differ diff --git a/src/components/Digikala/pic4.jpg b/src/components/Digikala/pic4.jpg deleted file mode 100644 index addd534..0000000 Binary files a/src/components/Digikala/pic4.jpg and /dev/null differ diff --git a/src/components/Digikala/pic5.jpg b/src/components/Digikala/pic5.jpg deleted file mode 100644 index df115eb..0000000 Binary files a/src/components/Digikala/pic5.jpg and /dev/null differ diff --git a/src/components/Digikala/pic6.jpg b/src/components/Digikala/pic6.jpg deleted file mode 100644 index db3c715..0000000 Binary files a/src/components/Digikala/pic6.jpg and /dev/null differ diff --git a/src/components/Digikala/pindo.png b/src/components/Digikala/pindo.png deleted file mode 100644 index 03bc2c3..0000000 Binary files a/src/components/Digikala/pindo.png and /dev/null differ diff --git a/src/components/Digikala/plus.png b/src/components/Digikala/plus.png deleted file mode 100644 index de4da85..0000000 Binary files a/src/components/Digikala/plus.png and /dev/null differ diff --git a/src/components/Digikala/r1.jpg b/src/components/Digikala/r1.jpg deleted file mode 100644 index 66c0e99..0000000 Binary files a/src/components/Digikala/r1.jpg and /dev/null differ diff --git a/src/components/Digikala/r2.jpg b/src/components/Digikala/r2.jpg deleted file mode 100644 index 98c2459..0000000 Binary files a/src/components/Digikala/r2.jpg and /dev/null differ diff --git a/src/components/Digikala/radio.jpg b/src/components/Digikala/radio.jpg deleted file mode 100644 index 56b2f1c..0000000 Binary files a/src/components/Digikala/radio.jpg and /dev/null differ diff --git a/src/components/Digikala/shampoo.jpg b/src/components/Digikala/shampoo.jpg deleted file mode 100644 index 9712874..0000000 Binary files a/src/components/Digikala/shampoo.jpg and /dev/null differ diff --git a/src/components/Digikala/style.png b/src/components/Digikala/style.png deleted file mode 100644 index 6eb8947..0000000 Binary files a/src/components/Digikala/style.png and /dev/null differ diff --git a/src/components/Digikala/white-left-arrow.svg b/src/components/Digikala/white-left-arrow.svg deleted file mode 100644 index a97c3c7..0000000 --- a/src/components/Digikala/white-left-arrow.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/components/Digikala/white-right-arrow.svg b/src/components/Digikala/white-right-arrow.svg deleted file mode 100644 index b22a9ac..0000000 --- a/src/components/Digikala/white-right-arrow.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/src/components/DivideX/ReligiousTimes/index.js b/src/components/DivideX/ReligiousTimes/index.js index e673ad3..c3ddfa6 100644 --- a/src/components/DivideX/ReligiousTimes/index.js +++ b/src/components/DivideX/ReligiousTimes/index.js @@ -12,10 +12,7 @@ const ReligiousTimes = ({ hours }) => { {hour.time} {Number(index) !== hours.length - 1 && ( -
+
)} ))} diff --git a/src/components/FileManager/index.js b/src/components/FileManager/index.js index e7a6b78..94aa5c1 100644 --- a/src/components/FileManager/index.js +++ b/src/components/FileManager/index.js @@ -62,10 +62,7 @@ const FileManager = ({ buttons }) => { {/* folderLists */} {/* ? pageTitle */} -
+
{/* */}
diff --git a/src/components/FormFields/OutlineInput/index.js b/src/components/FormFields/OutlineInput/index.js index f2587d4..94a1108 100644 --- a/src/components/FormFields/OutlineInput/index.js +++ b/src/components/FormFields/OutlineInput/index.js @@ -15,17 +15,13 @@ const OutlineInput = ({ {outlineTitle} @@ -37,8 +33,8 @@ export default OutlineInput; OutlineInput.defaultProps = { divWidth: "w-full", - textClr: "text-red-600", - borderClr: "yellow", + textClr: "text-blue-600", + borderClr: "border-pink-400", outlineTitle: "مهدی عندلیب", - outlineTitleClr: "red", + outlineTitleClr: "text-red-400", }; diff --git a/src/components/MiniComponents/DropDown/index.js b/src/components/MiniComponents/DropDown/index.js index d3204bc..1481b58 100644 --- a/src/components/MiniComponents/DropDown/index.js +++ b/src/components/MiniComponents/DropDown/index.js @@ -17,7 +17,7 @@ export const DropDown = ({}) => {