|
|
@ -1,11 +1,5 @@ |
|
|
|
import React from "react"; |
|
|
|
import React from "react"; |
|
|
|
|
|
|
|
|
|
|
|
// ? images
|
|
|
|
|
|
|
|
import document from "./images/document.svg"; |
|
|
|
|
|
|
|
import gallery from "./images/gallery.svg"; |
|
|
|
|
|
|
|
import musicSquare from "./images/music-square.svg"; |
|
|
|
|
|
|
|
import videoPlay from "./images/video-play.svg"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Playlist = ({ items }) => { |
|
|
|
const Playlist = ({ items }) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<section className="flex flex-row flex-wrap items-center gap-4 mt-7"> |
|
|
|
<section className="flex flex-row flex-wrap items-center gap-4 mt-7"> |
|
|
@ -25,15 +19,11 @@ const Playlist = ({ items }) => { |
|
|
|
<div className="flex flex-col items-center mr-3"> |
|
|
|
<div className="flex flex-col items-center mr-3"> |
|
|
|
<p className="font-sansbold text-xs text-[#132F52]"> |
|
|
|
<p className="font-sansbold text-xs text-[#132F52]"> |
|
|
|
{item.memory} |
|
|
|
{item.memory} |
|
|
|
<span className="font-light" style={{ fontSize: "10px" }}> |
|
|
|
<span className="text-[10px]">گیگابایت</span> |
|
|
|
گیگابایت |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</p> |
|
|
|
</p> |
|
|
|
<p className="font-sansbold text-xs mt-2 text-[#132F52]"> |
|
|
|
<p className="font-sansbold text-xs mt-2 text-[#132F52]"> |
|
|
|
{item.fileNum} |
|
|
|
{item.fileNum} |
|
|
|
<span className="font-light" style={{ fontSize: "10px" }}> |
|
|
|
<span className="text-[10px]">فایل</span> |
|
|
|
فایل |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -47,28 +37,28 @@ export default Playlist; |
|
|
|
Playlist.defaultProps = { |
|
|
|
Playlist.defaultProps = { |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
icon: document, |
|
|
|
icon: "images/Playlistdocument.svg", |
|
|
|
title: "عکسها", |
|
|
|
title: "عکسها", |
|
|
|
percent: "27 درصد استفاده شده", |
|
|
|
percent: "27 درصد استفاده شده", |
|
|
|
memory: 44, |
|
|
|
memory: 44, |
|
|
|
fileNum: 344, |
|
|
|
fileNum: 344, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
icon: musicSquare, |
|
|
|
icon: "images/Playlistmusic-square.svg", |
|
|
|
title: "صوتی", |
|
|
|
title: "صوتی", |
|
|
|
percent: "27 درصد استفاده شده", |
|
|
|
percent: "27 درصد استفاده شده", |
|
|
|
memory: 44, |
|
|
|
memory: 44, |
|
|
|
fileNum: 444, |
|
|
|
fileNum: 444, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
icon: videoPlay, |
|
|
|
icon: "images/Playlistvideo-play.svg", |
|
|
|
title: "ویدئو", |
|
|
|
title: "ویدئو", |
|
|
|
percent: "27 درصد استفاده شده", |
|
|
|
percent: "27 درصد استفاده شده", |
|
|
|
memory: 96, |
|
|
|
memory: 96, |
|
|
|
fileNum: 75, |
|
|
|
fileNum: 75, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
icon: gallery, |
|
|
|
icon: "images/Playlistgallery.svg", |
|
|
|
title: "فایلهای مختلف", |
|
|
|
title: "فایلهای مختلف", |
|
|
|
percent: "27 درصد استفاده شده", |
|
|
|
percent: "27 درصد استفاده شده", |
|
|
|
memory: 92, |
|
|
|
memory: 92, |
|
|
|