file manager added and updated

master
mahdi andalib 3 years ago
parent c5c442fbc1
commit d6a57c1bb8
  1. 8
      src/components/FileManager/index.js
  2. 14
      src/components/Playlist/index.js

@ -6,12 +6,13 @@ import TitleSubtitle from "../TitleSubtitle";
import CardHolder from "../CardHolder"; import CardHolder from "../CardHolder";
import graySearchIcon from "./images/gray-search-icon.svg"; import graySearchIcon from "./images/gray-search-icon.svg";
import Playlist from "../Playlist";
const FileManager = () => { const FileManager = () => {
return ( return (
<div <div
style={{ backgroundColor: "#FBFBFB" }} style={{ backgroundColor: "#FBFBFB" }}
className="px-7 py-5 flex flex-row" className="flex flex-row px-7 py-5"
> >
{/* ? right Section */} {/* ? right Section */}
<div className="flex-1 "> <div className="flex-1 ">
@ -34,8 +35,11 @@ const FileManager = () => {
/> />
</div> </div>
</div> </div>
{/* cardHolder */}
<Playlist />
</div> </div>
{/* left Section */} <CardHolder /> {/* left Section */}
<CardHolder />
</div> </div>
); );
}; };

@ -8,10 +8,10 @@ import videoPlay from "./images/video-play.svg";
const Playlist = ({ items }) => { const Playlist = ({ items }) => {
return ( return (
<section className="flex flex-row items-center justify-around mt-5"> <section className="flex flex-row items-center justify-between mt-7">
{items.map((item, index) => ( {items.map((item, index) => (
<div <div
className="flex flex-row items-center bg-white border-2 rounded-lg p-4 " className="flex flex-row items-center bg-white border-2 rounded-lg px-2 py-4"
style={{ borderColor: "#EEEEEE" }} style={{ borderColor: "#EEEEEE" }}
key={index} key={index}
> >
@ -26,10 +26,16 @@ const Playlist = ({ items }) => {
</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-bold text-xs"> <p style={{ color: "#132F52" }} className="font-bold text-xs">
{item.memory} <span className="font-light">گیگابایت</span>{" "} {item.memory}{" "}
<span className="font-light" style={{ fontSize: "10px" }}>
گیگابایت
</span>
</p> </p>
<p style={{ color: "#132F52" }} className="font-bold text-xs mt-2"> <p style={{ color: "#132F52" }} className="font-bold text-xs mt-2">
{item.fileNum} <span className="font-light">فایل</span>{" "} {item.fileNum}{" "}
<span className="font-light" style={{ fontSize: "10px" }}>
فایل
</span>{" "}
</p> </p>
</div> </div>
</div> </div>

Loading…
Cancel
Save