parent
31ceeaff95
commit
4b8ee738c3
3 changed files with 36 additions and 2 deletions
@ -0,0 +1,31 @@ |
|||||||
|
import React, {useState, useEffect} from "react"; |
||||||
|
|
||||||
|
const Metrics = () => { |
||||||
|
const inputs = [ |
||||||
|
'طول', |
||||||
|
'عرض', |
||||||
|
'ارتفاع', |
||||||
|
'وزن', |
||||||
|
] |
||||||
|
return( |
||||||
|
<div className="w-1/3 bg-white border mx-2 rounded-lg border-grayE0 flex flex-col py-6"> |
||||||
|
<h1 className="text-blue3A text-lg font-bold w-full text-right px-4 mb-6 border-r-4 border-blue65"> |
||||||
|
وزن و ابعاد محصول |
||||||
|
</h1> |
||||||
|
<div className="flex flex-wrap"> |
||||||
|
{ |
||||||
|
inputs.map( |
||||||
|
(item, index) => ( |
||||||
|
<div className="w-1/2 p-4 py-2"> |
||||||
|
<input type="number" placeholder={item} className="bg-white border border-grayE0 h-14 w-full outline-none px-2 rounded-md" /> |
||||||
|
</div> |
||||||
|
) |
||||||
|
) |
||||||
|
} |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
) |
||||||
|
} |
||||||
|
|
||||||
|
export default Metrics; |
Loading…
Reference in new issue