update 5 files

master
mahdi 3 years ago
parent f2ed2202e8
commit 9662586475
  1. 26
      src/App.js
  2. 2
      src/components/Button/index.js
  3. 60
      src/components/FileManager/index.js
  4. 21
      src/components/Playlist/index.js
  5. 1
      src/components/ReactTable5/BasicTable.js

@ -187,7 +187,7 @@ function App() {
{/* <FolderTree /> */} {/* <FolderTree /> */}
{/* ----------------------------$$$ end---------------------------- */} {/* ----------------------------$$$ end---------------------------- */}
<ReactTable4 /> {/* <ReactTable4 /> */}
{/* <ReactTable5 /> */} {/* <ReactTable5 /> */}
{/* ----------------------------$$$ start---------------------------- */} {/* ----------------------------$$$ start---------------------------- */}
@ -207,11 +207,11 @@ function App() {
{/* <ProfilePicNextToEachOther /> */} {/* <ProfilePicNextToEachOther /> */}
{/* ----------------------------$$$ end---------------------------- */} {/* ----------------------------$$$ end---------------------------- */}
{/* <FileManager /> */} <FileManager />
<GridListTable /> {/* <GridListTable /> */}
{/* <PopupCard /> */} <PopupCard />
{/* ----------------------------$$$ start---------------------------- */} {/* ----------------------------$$$ start---------------------------- */}
{/* <CircleInCircle /> */} {/* <CircleInCircle /> */}
@ -219,9 +219,9 @@ function App() {
{/* <SelectYear /> */} {/* <SelectYear /> */}
{/* ----------------------------$$$ end---------------------------- */} {/* ----------------------------$$$ end---------------------------- */}
{/* <TimeLineComponent /> */} <TimeLineComponent />
{/* <CardTrelloDesign /> */} <CardTrelloDesign />
{/* <ReligiousTimes /> */} {/* <ReligiousTimes /> */}
@ -232,19 +232,19 @@ function App() {
{/* <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 /> */}
@ -253,13 +253,13 @@ function App() {
{/* <ProfileInfo /> */} {/* <ProfileInfo /> */}
{/* ----------------------------$$$ end---------------------------- */} {/* ----------------------------$$$ end---------------------------- */}
{/* <UserProfileInfo /> */} <UserProfileInfo />
{/* <BoxNextToEachOther /> */} <BoxNextToEachOther />
{/* <ContactUsInfoCard /> */} <ContactUsInfoCard />
{/* <RoomCardInfo /> */} <RoomCardInfo />
{/* ----------------------------$$$ start---------------------------- */} {/* ----------------------------$$$ start---------------------------- */}
{/* <DateRangePicker /> */} {/* <DateRangePicker /> */}

@ -7,7 +7,7 @@ const Button = ({ className, iconClassName, icon, text, onClick }) => {
> >
{text} {text}
{icon && ( {icon && (
<span className={`rounded-full ${iconClassName}}`}> <span className={`${iconClassName}`}>
<img src={icon} alt="" className="w-full" /> <img src={icon} alt="" className="w-full" />
</span> </span>
)} )}

@ -13,15 +13,17 @@ 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";
import BasicTable from "../ReactTable4/index"; import BasicTable from "../ReactTable4/index";
import SemiDonut from "../SemiDonut"; import SemiDonut from "../SemiDonut";
import Button from "../Button";
const FileManager = () => { const FileManager = ({ buttons }) => {
return ( return (
<div style={{ backgroundColor: "#FBFBFB" }} className="flex flex-row"> <div className="flex flex-row bg-[#FBFBFB]">
{/* ? right Section */} {/* ? right Section */}
<div className="w-9/12"> <div className="w-9/12 flex flex-col">
<div className="px-7 py-5"> <div className=" p-4">
{/* ? breadCrumb */} {/* ? breadCrumb */}
<div className="mb-5"> <div className="mb-5">
<BreadCrumb /> <BreadCrumb />
@ -30,7 +32,6 @@ const FileManager = () => {
<div className="flex flex-row justify-between"> <div className="flex flex-row justify-between">
{/* ? pageTitle */} {/* ? pageTitle */}
<TitleSubtitle titleBorderClassName={""} /> <TitleSubtitle titleBorderClassName={""} />
{/* ? searchbox */} {/* ? searchbox */}
<div className="self-end"> <div className="self-end">
<SearchBox <SearchBox
@ -54,34 +55,14 @@ const FileManager = () => {
</div> </div>
{/* buttons */} {/* buttons */}
<div className="flex flex-row item-center justify-between self-center gap-2"> <div className="flex flex-row item-center justify-between self-center gap-2">
<ButtonNewDesign {buttons.map((btn) => (
bgColor={"bg-blue-500"} <Button
bgHoverColor={"hover:bg-blue-600"} className={`${btn.className} text-xs rounded p-2`}
iconBgColor={null} iconClassName={`bg-transparent mr-1`}
textColor={"text-white"} text={btn.name}
border={"border"} icon={arrowLeft}
borderColor={"border-blue-500"}
borderRadius={"rounded"}
fontSize={"text-xs"}
paddingX={"p-3"}
paddingY={"p-3"}
icon={true}
buttonIcon={arrowLeft}
/>
<ButtonNewDesign
bgColor={"bg-blue-100"}
bgHoverColor={"hover:bg-blue-600"}
iconBgColor={null}
textColor={"text-blue-900"}
border={"border"}
borderColor={"border-blue-500"}
borderRadius={"rounded"}
fontSize={"text-xs"}
paddingX={"p-3"}
paddingY={"p-3"}
icon={true}
buttonIcon={arrowLeft}
/> />
))}
</div> </div>
</div> </div>
{/* folderLists */} {/* folderLists */}
@ -100,7 +81,6 @@ const FileManager = () => {
{/* left Section */} {/* left Section */}
<div className="w-3/12 py-5 flex flex-col"> <div className="w-3/12 py-5 flex flex-col">
<TitleSubtitle subTitle={false} titleBorderClassName={""} /> <TitleSubtitle subTitle={false} titleBorderClassName={""} />
<SemiDonut /> <SemiDonut />
<div className="px-4" style={{ marginTop: "-113px" }}> <div className="px-4" style={{ marginTop: "-113px" }}>
<TitleSubtitle subTitle={false} titleBorderClassName={""} /> <TitleSubtitle subTitle={false} titleBorderClassName={""} />
@ -117,3 +97,17 @@ const FileManager = () => {
}; };
export default FileManager; export default FileManager;
FileManager.defaultProps = {
buttons: [
{
name: "رابط کاربری",
className: "bg-[#4E85E5] text-white",
},
{
name: "فرانت اند",
className:
"bg-transparent border border-[#4E85E5] text-[#4E85E5] font-sansbold",
},
],
};

@ -15,30 +15,25 @@ const Playlist = ({ items }) => {
style={{ borderColor: "#EEEEEE" }} style={{ borderColor: "#EEEEEE" }}
key={index} key={index}
> >
<img src={item.icon} className="w-14 " /> <img src={item.icon} className="w-14" alt="" />
<div className="flex flex-col mr-1"> <div className="flex flex-col mr-1">
<p style={{ color: "#00253A" }} className="text-sm"> <p className="text-sm text-[#00253A]">{item.title}</p>
{item.title} <span className="text-xs mt-2 text-[#81818177]">
</p>
<span style={{ color: "#81818177" }} className="text-xs mt-2">
{item.percent} {item.percent}
</span> </span>
</div> </div>
<div className="flex flex-col items-center mr-3"> <div className="flex flex-col items-center mr-3">
<p style={{ color: "#132F52" }} className="font-sansbold text-xs"> <p className="font-sansbold text-xs text-[#132F52]">
{item.memory}{" "} {item.memory}
<span className="font-light" style={{ fontSize: "10px" }}> <span className="font-light" style={{ fontSize: "10px" }}>
گیگابایت گیگابایت
</span> </span>
</p> </p>
<p <p className="font-sansbold text-xs mt-2 text-[#132F52]">
style={{ color: "#132F52" }} {item.fileNum}
className="font-sansbold text-xs mt-2"
>
{item.fileNum}{" "}
<span className="font-light" style={{ fontSize: "10px" }}> <span className="font-light" style={{ fontSize: "10px" }}>
فایل فایل
</span>{" "} </span>
</p> </p>
</div> </div>
</div> </div>

@ -297,7 +297,6 @@ const BasicTable = ({ addTab, activeTab }) => {
<span className="text-xs text-left text-gray-500"> <span className="text-xs text-left text-gray-500">
{row.original.fileSize} {row.original.fileSize}
</span> </span>
<ViewEdit />
</div> </div>
); );
})} })}

Loading…
Cancel
Save