update App.js and src/components/ProductSalesAmount/Design2/index.js

master
mahdi 3 years ago
parent 5b2f8bcf38
commit 3aaf0bd042
  1. BIN
      public/images/logo192.png
  2. 58
      src/App.js
  3. 44
      src/components/ProductSalesAmount/Design2/index.js

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

@ -105,11 +105,8 @@ function App() {
{/* <VodProductDesign /> */} {/* <VodProductDesign /> */}
{/* <VodProduct /> */} {/* <VodProduct /> */}
{/* <VodProductNew /> */} {/* <VodProductNew /> */}
{/* <BookDesign /> */} {/* <BookDesign /> */}
{/* <HeaderDesign1 /> */} {/* <HeaderDesign1 /> */}
{/* <Blogs /> */} {/* <Blogs /> */}
{/* ----------------------------$$$ start---------------------------- */} {/* ----------------------------$$$ start---------------------------- */}
{/* <BlogDesign1 /> {/* <BlogDesign1 />
@ -118,56 +115,37 @@ function App() {
<BlogDesign4 /> <BlogDesign4 />
<BlogDesign5 /> <BlogDesign5 />
<BlogDesign6 /> */} <BlogDesign6 /> */}
{/* <Button /> */} {/* <Button /> */}
{/* <ButtonDivTag /> */} {/* <ButtonDivTag /> */}
{/* ---------------------------- not usable ---------------------------- */} {/* ---------------------------- not usable ---------------------------- */}
{/* <ButtonDesign /> */} {/* <ButtonDesign /> */}
{/* ---------------------------- not usable ---------------------------- */} {/* ---------------------------- not usable ---------------------------- */}
{/* <ButtonNewDesign /> */} {/* <ButtonNewDesign /> */}
{/* ---------------------------- not usable ---------------------------- */} {/* ---------------------------- not usable ---------------------------- */}
{/* <ProductTags /> */} {/* <ProductTags /> */}
{/* <NewTagDesign /> */} {/* <NewTagDesign /> */}
{/* <CounterDesign /> */} {/* <CounterDesign /> */}
{/* <AnimatedProgressBar /> */} {/* <AnimatedProgressBar /> */}
{/* ----------------------------$$$ end---------------------------- */} {/* ----------------------------$$$ end---------------------------- */}
{/* <ContactInfoSection /> */} {/* <ContactInfoSection /> */}
{/* <Testttt /> */} {/* <Testttt /> */}
{/* <Design2D /> */} {/* <Design2D /> */}
{/* <Features /> */} {/* <Features /> */}
{/* <Feedback /> */} {/* <Feedback /> */}
{/* <Alert /> */} {/* <Alert /> */}
{/* <Toast /> */} {/* <Toast /> */}
{/* <ProductSuggestion /> */} {/* <ProductSuggestion /> */}
{/* <ProductImage /> */} {/* <ProductImage /> */}
{/* <ProductTab /> */} {/* <ProductTab /> */}
{/* <ProductStatusCard /> */} {/* <ProductStatusCard /> */}
{/* <AdvertisementDesign1 /> */} {/* <AdvertisementDesign1 /> */}
{/* <AdvertisementDesign2 /> */} {/* <AdvertisementDesign2 /> */}
{/* <AdvertisementDesign3 /> */} {/* <AdvertisementDesign3 /> */}
{/* <CourseChapter /> */} {/* <CourseChapter /> */}
{/* <Design1 /> */} {/* <Design1 /> */}
{/* <Design2 /> */} <Design2 />
<SidebarMenu />
{/* <SidebarMenu /> */}
{/* <SidebarDesign2 /> */} {/* <SidebarDesign2 /> */}
{/* <SidebarDesign2 className="w-1/5" /> */} {/* <SidebarDesign2 className="w-1/5" /> */}
{/* <TableDesign1 /> */} {/* <TableDesign1 /> */}
{/* <div className="flex"> {/* <div className="flex">
@ -177,20 +155,16 @@ function App() {
<FooterDesign1 /> <FooterDesign1 />
</span> </span>
</div> */} </div> */}
{/* <ReactTable2 /> */} {/* <ReactTable2 /> */}
{/* <ReactTable3 /> */} {/* <ReactTable3 /> */}
{/* ----------------------------$$$ start---------------------------- */} {/* ----------------------------$$$ start---------------------------- */}
{/* <BreadCrumb /> */} {/* <BreadCrumb /> */}
{/* <SearchBox /> */} {/* <SearchBox /> */}
{/* <TitleSubtitle /> */} {/* <TitleSubtitle /> */}
{/* <FolderTree /> */} {/* <FolderTree /> */}
{/* ----------------------------$$$ end---------------------------- */} {/* ----------------------------$$$ end---------------------------- */}
{/* <ReactTable4 /> */} {/* <ReactTable4 /> */}
{/* <ReactTable5 /> */} <ReactTable5 />
{/* ----------------------------$$$ start---------------------------- */} {/* ----------------------------$$$ start---------------------------- */}
{/* <Playlist /> */} {/* <Playlist /> */}
{/* <Folderlists /> */} {/* <Folderlists /> */}
@ -201,76 +175,52 @@ function App() {
{/* <BarChartApex /> */} {/* <BarChartApex /> */}
{/* <SemiDonut /> */} {/* <SemiDonut /> */}
{/* ----------------------------$$$ end---------------------------- */} {/* ----------------------------$$$ end---------------------------- */}
{/* ----------------------------$$$ start---------------------------- */} {/* ----------------------------$$$ start---------------------------- */}
{/* <OutlineInput /> */} {/* <OutlineInput /> */}
{/* <OutlineTextarea /> */} {/* <OutlineTextarea /> */}
{/* <CancleIcon /> */} {/* <CancleIcon /> */}
{/* <ProfilePicNextToEachOther /> */} {/* <ProfilePicNextToEachOther /> */}
{/* ----------------------------$$$ end---------------------------- */} {/* ----------------------------$$$ end---------------------------- */}
{/* <FileManager /> */} {/* <FileManager /> */}
{/* <GridListTable /> */} {/* <GridListTable /> */}
{/* <PopupCard /> */} {/* <PopupCard /> */}
{/* ----------------------------$$$ start---------------------------- */} {/* ----------------------------$$$ start---------------------------- */}
{/* <CircleInCircle /> */} {/* <CircleInCircle /> */}
{/* <TimeLine /> */} {/* <TimeLine /> */}
{/* <SelectYear /> */} {/* <SelectYear /> */}
{/* ----------------------------$$$ end---------------------------- */} {/* ----------------------------$$$ end---------------------------- */}
{/* <TimeLineComponent /> */} {/* <TimeLineComponent /> */}
{/* <CardTrelloDesign /> */} {/* <CardTrelloDesign /> */}
{/* <ReligiousTimes /> */} {/* <ReligiousTimes /> */}
{/* <DistributedData /> */} {/* <DistributedData /> */}
{/* ----------------------------$$$ start---------------------------- */} {/* ----------------------------$$$ start---------------------------- */}
{/* <IconText /> */} {/* <IconText /> */}
{/* <CustomToast /> */} {/* <CustomToast /> */}
{/* ----------------------------$$$ end---------------------------- */} {/* ----------------------------$$$ end---------------------------- */}
{/* <CardDesign1 /> */} {/* <CardDesign1 /> */}
{/* ----------------------------$$$ start---------------------------- */} {/* ----------------------------$$$ start---------------------------- */}
{/* <IndianaDragScroll /> */} {/* <IndianaDragScroll /> */}
{/* ----------------------------$$$ end---------------------------- */} {/* ----------------------------$$$ end---------------------------- */}
{/* <CardDesign2 /> */} {/* <CardDesign2 /> */}
{/* ----------------------------$$$ start---------------------------- */} {/* ----------------------------$$$ start---------------------------- */}
{/* <CustomToast2 /> */} {/* <CustomToast2 /> */}
{/* ----------------------------$$$ end---------------------------- */} {/* ----------------------------$$$ end---------------------------- */}
{/* <CardDesign3 /> */} {/* <CardDesign3 /> */}
{/* ----------------------------$$$ start---------------------------- */} {/* ----------------------------$$$ start---------------------------- */}
{/* <DateTime /> */} {/* <DateTime /> */}
{/* <CurrentTime /> */} {/* <CurrentTime /> */}
{/* <CurrentDateShamsi /> */} {/* <CurrentDateShamsi /> */}
{/* <ProfileInfo /> */} {/* <ProfileInfo /> */}
{/* ----------------------------$$$ end---------------------------- */} {/* ----------------------------$$$ end---------------------------- */}
{/* <UserProfileInfo /> */} {/* <UserProfileInfo /> */}
{/* <BoxNextToEachOther /> */} {/* <BoxNextToEachOther /> */}
{/* <ContactUsInfoCard /> */} {/* <ContactUsInfoCard /> */}
{/* <RoomCardInfo /> */} {/* <RoomCardInfo /> */}
{/* ----------------------------$$$ start---------------------------- */} {/* ----------------------------$$$ start---------------------------- */}
{/* <DateRangePicker /> */} {/* <DateRangePicker /> */}
{/* ----------------------------$$$ end---------------------------- */} {/* ----------------------------$$$ end---------------------------- */}
<FormInput /> <FormInput />
{/* <LeafletMap /> */} {/* <LeafletMap /> */}
{/* <Digikala /> */} {/* <Digikala /> */}
{/* <TestComponentNew /> */} {/* <TestComponentNew /> */}
</div> </div>

@ -13,8 +13,12 @@ const Design2 = ({ incomes }) => {
{incomes.map((income, index) => ( {incomes.map((income, index) => (
<div key={index} className="flex flex-row items-center mt-4"> <div key={index} className="flex flex-row items-center mt-4">
<img src={income.image} alt="" className="w-14 rounded-full" /> <img src={income.image} alt="" className="w-14 rounded-full" />
{income.progressBar} <AnimatedProgressBar
<p>{income.percentNumb}</p> rangeWidth={`${Math.min(100, income.percent)}%`}
parentBg={"bg-[#E3E3E3] mx-2"}
childBg={"bg-[#06BACE]"}
/>
<p>{income.percent}%</p>
</div> </div>
))} ))}
</div> </div>
@ -29,53 +33,25 @@ Design2.defaultProps = {
image: ellipse, image: ellipse,
bgColor: "#26E58C", bgColor: "#26E58C",
width: "96%", width: "96%",
percentNumb: "110", percent: "110",
progressBar: (
<AnimatedProgressBar
rangeWidth={"10%"}
parentBg={"bg-[#E3E3E3] mx-2"}
childBg={"bg-[#06BACE]"}
/>
),
}, },
{ {
image: ellipse, image: ellipse,
bgColor: "#FFEE00", bgColor: "#FFEE00",
width: "44%", width: "44%",
percentNumb: "72", percent: "72",
progressBar: (
<AnimatedProgressBar
rangeWidth={"26%"}
parentBg={"bg-[#E3E3E3] mx-2"}
childBg={"bg-[#06BACE]"}
/>
),
}, },
{ {
image: ellipse, image: ellipse,
bgColor: "#EC4C19", bgColor: "#EC4C19",
width: "2%", width: "2%",
percentNumb: "20", percent: "20",
progressBar: (
<AnimatedProgressBar
rangeWidth={"90%"}
parentBg={"bg-[#E3E3E3] mx-2"}
childBg={"bg-[#06BACE]"}
/>
),
}, },
{ {
image: ellipse, image: ellipse,
bgColor: "#0077FF", bgColor: "#0077FF",
width: "33%", width: "33%",
percentNumb: "80", percent: "80",
progressBar: (
<AnimatedProgressBar
rangeWidth={"99%"}
parentBg={"bg-[#E3E3E3] mx-2"}
childBg={"bg-[#06BACE]"}
/>
),
}, },
], ],
}; };

Loading…
Cancel
Save