update 6 files and delete 13 files

master
mahdi 3 years ago
parent 6c98c9a74b
commit 8370a22fa1
  1. 0
      public/images/CustomToast2CustomToast2pen.svg
  2. 0
      public/images/CustomToast2profilePic1.svg
  3. 0
      public/images/CustomToast2profilePic2.svg
  4. 0
      public/images/CustomToast2profilePic3.svg
  5. 0
      public/images/CustomToast2profilePic4.svg
  6. 0
      public/images/CustomToast2profilePic5.svg
  7. 2
      public/images/CustomToastpen-icon.svg
  8. 2
      src/components/CardDesgin/CardDesign1/index.js
  9. 0
      src/components/CardDesgin/CustomToast/index.js
  10. 0
      src/components/CardDesgin/CustomToast2/index.js
  11. 37
      src/components/ContactUs/ContactInfoSectioin/index.js
  12. 0
      src/components/CurrentDateTime/CurrentDateShamsi/index.js
  13. 0
      src/components/CurrentDateTime/CurrentTime/index.js
  14. 28
      src/components/CurrentDateTime/index.js
  15. 12
      src/components/MiniComponents/BookDesign/index.js
  16. 0
      src/components/SelectBox/CustomSelectBox/index.js
  17. 2
      src/components/SelectBox/index.js
  18. 0
      src/components/SwitchDesign/CustomSwitch/index.js
  19. 2
      src/components/SwitchDesign/index.js
  20. 11
      src/redux/data.js

Before

Width:  |  Height:  |  Size: 931 B

After

Width:  |  Height:  |  Size: 931 B

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

@ -7,4 +7,4 @@
<path id="Vector-4" data-name="Vector" d="M0,0H24V24H0Z" fill="none" opacity="0"/>
</g>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

@ -1,5 +1,5 @@
import React from "react";
import CustomToast from "../../CustomToast";
import CustomToast from "../CustomToast";
import IconText from "../../IconText";
import TitleSubtitle from "../../MiniComponents/TitleSubtitle";

@ -2,41 +2,32 @@
import React from "react";
import customerSupport from "images/customer-support.png";
import lightGreenLine from "images/light-green-line.svg";
const ContactInfoSectioin = ({
contactInfoSectionBgColor,
className,
dayNumTextColor,
contentTextColor,
}) => {
return (
<section
className={`relative flex flex-col sm:flex-row items-center justify-center p-4 ${contactInfoSectionBgColor}`}
className={`relative flex flex-row items-center justify-center p-4 rounded ${className}`}
>
{/* line */}
<img
src="images/light-blue-line.svg"
alt=""
className="hidden sm:block absolute right-72"
/>
<img src="images/light-blue-line.svg" alt="" className="" />
{/* middle content */}
<img
src={customerSupport}
src="images/customer-support.png"
alt=""
className="w-14 cursor-pointer customer-support animate-bounce"
/>
<p
className={`mr-0 sm:mr-10 mt-5 sm:mt-0 text-sm leading-6 ${contentTextColor}`}
>
<span className={`${dayNumTextColor}`}>7 </span>
<p className={`mr10 mt-0 text-sm leading-6 mr-10 ${contentTextColor}`}>
<span className="text-[#196EC0]">7 </span>
روز هفته
<span className={`${dayNumTextColor}`}> 24 </span>
<span className="text-[#196EC0]"> 24 </span>
ساعته
<br />
منتظر شنیدن صدای گرمتان هستیم
</p>
<div className="flex flex-col mr-0 sm:mr-10 mt-5 sm:mt-0">
<div className="flex flex-col mr-10 mt-0">
<a href="tel:021654412" className={`text-sm ${contentTextColor}`}>
021654412
</a>
@ -48,11 +39,7 @@ const ContactInfoSectioin = ({
</a>
</div>
{/* line */}
<img
src={lightGreenLine}
alt=""
className="hidden sm:block absolute left-72"
/>
<img src="images/light-green-line.svg" alt="" className="" />
</section>
);
};
@ -60,7 +47,7 @@ const ContactInfoSectioin = ({
export default ContactInfoSectioin;
ContactInfoSectioin.defaultProps = {
contactInfoSectionBgColor: "bg-midGrayBgColor",
dayNumTextColor: "text-lightBlueTextColor2",
contentTextColor: "text-darkCrimsonTextColor",
className: "bg-[#DBDBDB]",
dayNumTextColor: "text-[#196EC0]",
contentTextColor: "text-[#05335F]",
};

@ -0,0 +1,28 @@
import React, { useState } from "react";
import CurrentDateShamsi from "./CurrentDateShamsi";
import CurrentTime from "./CurrentTime";
function CurrentDateTime() {
const list = {
1: <CurrentDateShamsi />,
2: <CurrentTime />,
};
const [type, setType] = useState(1);
return (
<div className="w-full flex flex-col items-center">
<select
className="w-20 bg-gray-200 mb-10"
onChange={(e) => setType(e.target.value)}
>
{Object.keys(list).map((option, index) => (
<option key={index}>{option}</option>
))}
</select>
{list[type]}
</div>
);
}
export default CurrentDateTime;

@ -1,8 +1,4 @@
import React from "react";
// import "./BookDesign.scss";
import book from "../../../assets/images/book.svg";
import bookCover from "../../../assets/images/book-white-cover.svg";
export const BookDesign = ({ bookBackCoverBg }) => {
return (
@ -26,11 +22,15 @@ export const BookDesign = ({ bookBackCoverBg }) => {
<section className="my-24 mx-24 flex flex-wrap justify-center">
<div className="flex relative">
<img
src={book}
src="images/book.svg"
alt=""
className="rounded-md z-40 transform -translate-x-4 w-full sm:w-72 h-full"
/>
<img src={bookCover} alt="" className="z-30 h-full" />
<img
src="images/book-white-cover.svg"
alt=""
className="z-30 h-full"
/>
<div
className={`bg-greenBookBg w-7 rounded-l-md transform translate-x-4 z-10 ${bookBackCoverBg} `}
></div>

@ -2,11 +2,13 @@ import React, { useState } from "react";
import SelectCheckbox from "./SelectCheckbox";
import SelectRadio from "./SelectRadio";
import CustomSelectBox from "./CustomSelectBox";
function Advertisements() {
const list = {
1: <SelectCheckbox />,
2: <SelectRadio />,
3: <CustomSelectBox />,
};
const [type, setType] = useState(1);
return (

@ -2,11 +2,13 @@ import React, { useState } from "react";
import Switch from "./Switch";
import Switch2 from "./Switch2";
import CustomSwitch from "./CustomSwitch";
function SwitchDesign() {
const list = {
1: <Switch />,
2: <Switch2 />,
3: <CustomSwitch />,
};
const [type, setType] = useState(1);
return (

@ -39,6 +39,7 @@ import UploadFile from "../components/UploadFile";
import AnimatedInput from "../components/AnimatedInput/Input";
import BoxNextToEachOther from "../components/BoxNextToEachOther";
import ContactUs from "../components/ContactUs";
import CurrentDateTime from "../components/CurrentDateTime";
// mini components
import MiniComponents from "../components/MiniComponents";
@ -742,6 +743,16 @@ const components = [
code: null,
},
},
{
name: "Current Date Time",
author: "Andalib",
props: [],
content: {
name: "Current Date Time",
component: <CurrentDateTime />,
code: null,
},
},
// mini components
{
name: "Mini Components",

Loading…
Cancel
Save