Repository navigation
Expand file tree
/
Copy pathTable.js
More file actions
158 lines (152 loc) · 5.63 KB
/
Copy pathTable.js
File metadata and controls
158 lines (152 loc) · 5.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
import bitcoin from "../mainAssets/bitcoin.png";
import chart from "../mainAssets/chart.png";
import eth from "../mainAssets/eth.png";
import bitcoinCash from "../mainAssets/bitcoin-cash.png";
import lite from "../mainAssets/lite.png";
const Row = () => {
return (
<tr>
<td className='py-5'>2</td>
<td className='py-5'>
<div className='flex items-center space-x-4 ml-10'>
<div className='flex-shrink-0'>
<img src={bitcoin} className='h-10 w-10' />
</div>
<div>
<p className='text-lg'>Bitcoin</p>
</div>
<div>
<p className='text-lg'>BTC</p>
</div>
</div>
</td>
<td className='py-5'>GHS 1000.00 </td>
<td className='py-5'> <p className='text-coinbase_green'>+10%</p></td>
<td className='py-5'>
<img src={chart} />
</td>
<td className='py-5'>
<button className='bg-coinbase_green px-4 py-3 text-white rounded-md'>
Buy
</button>
</td>
</tr>
)
};
const Row2 = () => {
return (
<tr>
<td className='py-5'>2</td>
<td className='py-5'>
<div className='flex items-center space-x-4 ml-10'>
<div className='flex-shrink-0'>
<img src={eth} className='h-10 w-10' />
</div>
<div>
<p className='text-lg'>Ethereum</p>
</div>
<div>
<p className='text-lg'>ETH</p>
</div>
</div>
</td>
<td className='py-5'>GHS 13,390.06 </td>
<td className='py-5'> <p className='text-coinbase_green'>+10%</p></td>
<td className='py-5'>
<img src={chart} />
</td>
<td className='py-5'>
<button className='bg-coinbase_green px-4 py-3 text-white rounded-md'>
Buy
</button>
</td>
</tr>
)
};
const Row3 = () => {
return (
<tr>
<td className='py-5'>3</td>
<td className='py-5'>
<div className='flex items-center space-x-4 ml-10'>
<div className='flex-shrink-0'>
<img src={bitcoinCash} className='h-10 w-10' />
</div>
<div>
<p className='text-lg'>Bitcoin Cash</p>
</div>
<div>
<p className='text-lg'>BCH</p>
</div>
</div>
</td>
<td className='py-5'>GHS 3,779.00 </td>
<td className='py-5'> <p className='text-coinbase_green'>+10%</p></td>
<td className='py-5'>
<img src={chart} />
</td>
<td className='py-5'>
<button className='bg-coinbase_green px-4 py-3 text-white rounded-md'>
Buy
</button>
</td>
</tr>
)
};
const Row4 = () => {
return (
<tr>
<td className='py-5'>4</td>
<td className='py-5'>
<div className='flex items-center space-x-4 ml-10'>
<div className='flex-shrink-0'>
<img src={lite} className='h-10 w-10' />
</div>
<div>
<p className='text-lg'>Litecoin</p>
</div>
<div>
<p className='text-lg'>LTC</p>
</div>
</div>
</td>
<td className='py-5'>GHS 998.46 </td>
<td className='py-5'> <p className='text-coinbase_green'>-3.93%</p></td>
<td className='py-5'>
<img src={chart} />
</td>
<td className='py-5'>
<button className='bg-coinbase_green px-4 py-3 text-white rounded-md'>
Buy
</button>
</td>
</tr>
)
};
const Table = () => {
return (
<div className="max-w-6xl flex flex-col mx-auto w-full">
<div className='border border-gray-200 px-10'>
<table className='divide-y divide-gray-200 w-full'>
<thead>
<tr>
<th className='py-4 font-normal text-gray-400 text-left'>#</th>
<th className='py-4 pl-10 font-normal text-gray-400 text-left'>Name</th>
<th className='py-4 font-normal text-gray-400 text-left'>Price</th>
<th className='py-4 font-normal text-gray-400 text-left'>Change</th>
<th className='py-4 font-normal text-gray-400 text-left'>Chart</th>
<th className='py-4 font-normal text-gray-400 text-left'>Trade</th>
</tr>
</thead>
<tbody className="divide-y divide-gray-200">
<Row />
<Row2 />
<Row3 />
<Row4 />
</tbody>
</table>
</div>
</div>
)
}
export default Table;