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. 0
      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

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

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

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

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

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

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

Loading…
Cancel
Save