master
mahdi andalib 3 years ago
parent b0f046a1c8
commit d92222d4b5
  1. BIN
      build.zip
  2. 63
      src/components/CardHolder/index.js
  3. 12
      src/components/FileManager/index.js
  4. 2
      src/components/UploadFile/index.js

Binary file not shown.

@ -1,8 +1,11 @@
import React from "react"; import React from "react";
import dropbox from "./images/dropbox.svg"; import dropbox from "./images/dropbox.svg";
import googleDrive from "./images/google-drive.svg";
import blue from "./images/blue-icon.svg";
const CardHolder = ({ const CardHolder = ({
items,
cardImage, cardImage,
cardBackgroundColor, cardBackgroundColor,
cardBorder, cardBorder,
@ -10,22 +13,29 @@ const CardHolder = ({
cardBorderRadius, cardBorderRadius,
}) => { }) => {
return ( return (
<div <div className="">
className={`w-fit bg-white px-4 py-1 flex flex-row items-center ${cardBorder} ${cardBorderRadius}`} {items.map((item, index) => (
style={{ <div
backgroundColor: cardBackgroundColor, className={`w-full px-2 py-1 flex flex-row items-center mt-4 ${cardBorder} ${cardBorderRadius}
borderColor: cardBorderColor, ${item.active === true ? "bg-blue-100" : "bg-white"}
}} `}
> style={{
<img src={cardImage} className="w-20" /> // backgroundColor: cardBackgroundColor,
<div className="flex flex-col mr-2"> borderColor: item.active === true ? "#06BACE" : "#EEEEEE",
<p style={{ color: "#00253A" }} className="text-sm"> }}
فضای ذخیره سازی گوگل درایو key={index}
</p> >
<p className="text-xs text-gray-400 font-light mr-1 mt-2"> <img src={item.icon} className="w-14" />
فضای باقیمانده 40 گیگابایت از 1000 گیگابایت <div className="flex flex-col mr-2 flex-1">
</p> <p style={{ color: "#00253A" }} className="text-sm">
</div> {item.title}
</p>
<p className="text-xs text-gray-400 font-light mr-1 mt-2">
{item.des}{" "}
</p>
</div>
</div>
))}
</div> </div>
); );
}; };
@ -38,4 +48,25 @@ CardHolder.defaultProps = {
cardBorder: "border-4", cardBorder: "border-4",
cardBorderColor: "#EEEEEE", cardBorderColor: "#EEEEEE",
cardBorderRadius: "rounded-lg", cardBorderRadius: "rounded-lg",
items: [
{
icon: dropbox,
title: "فضای ذخیره سازی گوگل درایو",
des: "فضای باقیمانده 40 گیگابایت از 1000 گیگابایت",
active: false,
},
{
icon: blue,
title: "فضای ذخیره سازی گوگل درایو",
des: "فضای باقیمانده 40 گیگابایت از 1000 گیگابایت",
active: true,
},
{
icon: dropbox,
title: "فضای ذخیره سازی گوگل درایو",
des: "فضای باقیمانده 40 گیگابایت از 1000 گیگابایت",
active: false,
},
],
}; };

@ -9,6 +9,7 @@ import CardHolder from "../CardHolder";
import ButtonNewDesign from "../ButtonNewDesign"; import ButtonNewDesign from "../ButtonNewDesign";
import Playlist from "../Playlist"; import Playlist from "../Playlist";
import Folderlists from "../Folderlist"; import Folderlists from "../Folderlist";
import UploadFile from "../UploadFile";
import graySearchIcon from "./images/gray-search-icon.svg"; import graySearchIcon from "./images/gray-search-icon.svg";
import arrowLeft from "./images/arrow-left.svg"; import arrowLeft from "./images/arrow-left.svg";
@ -95,9 +96,18 @@ const FileManager = () => {
</div> </div>
</div> </div>
{/* left Section */} {/* left Section */}
<div className="w-3/12 py-5 "> <div className="w-3/12 py-5 flex flex-col">
<TitleSubtitle /> <TitleSubtitle />
<SemiDonut /> <SemiDonut />
<div className="px-4" style={{ marginTop: "-113px" }}>
<TitleSubtitle />
<div className="flex flex-col items-center justify-center">
{/* {[0, 1, 2].map((item, index) => (
<CardHolder />
))} */}
<CardHolder /> <UploadFile />
</div>
</div>
</div> </div>
</div> </div>
); );

@ -4,7 +4,7 @@ import file from "./images/file.svg";
const index = () => { const index = () => {
return ( return (
<div className="relative bg-white w-fit flex flex-col items-center p-10 rounded-lg border-2 border-dashed border-blue-300"> <div className="relative bg-white w-fit flex flex-col items-center p-10 rounded-lg border-2 border-dashed border-blue-300 mt-5">
<div className=" "> <div className=" ">
<img src={file} className="" /> <img src={file} className="" />
<input <input

Loading…
Cancel
Save