1
1
import React from 'react'
2
+ import classNames from 'classnames'
2
3
3
4
import {
4
5
CAvatar ,
@@ -90,12 +91,12 @@ const Dashboard = () => {
90
91
user : {
91
92
name : 'Yiorgos Avraamu' ,
92
93
new : true ,
93
- registered : 'Jan 1, 2021 ' ,
94
+ registered : 'Jan 1, 2023 ' ,
94
95
} ,
95
96
country : { name : 'USA' , flag : cifUs } ,
96
97
usage : {
97
98
value : 50 ,
98
- period : 'Jun 11, 2021 - Jul 10, 2021 ' ,
99
+ period : 'Jun 11, 2023 - Jul 10, 2023 ' ,
99
100
color : 'success' ,
100
101
} ,
101
102
payment : { name : 'Mastercard' , icon : cibCcMastercard } ,
@@ -106,36 +107,36 @@ const Dashboard = () => {
106
107
user : {
107
108
name : 'Avram Tarasios' ,
108
109
new : false ,
109
- registered : 'Jan 1, 2021 ' ,
110
+ registered : 'Jan 1, 2023 ' ,
110
111
} ,
111
112
country : { name : 'Brazil' , flag : cifBr } ,
112
113
usage : {
113
114
value : 22 ,
114
- period : 'Jun 11, 2021 - Jul 10, 2021 ' ,
115
+ period : 'Jun 11, 2023 - Jul 10, 2023 ' ,
115
116
color : 'info' ,
116
117
} ,
117
118
payment : { name : 'Visa' , icon : cibCcVisa } ,
118
119
activity : '5 minutes ago' ,
119
120
} ,
120
121
{
121
122
avatar : { src : avatar3 , status : 'warning' } ,
122
- user : { name : 'Quintin Ed' , new : true , registered : 'Jan 1, 2021 ' } ,
123
+ user : { name : 'Quintin Ed' , new : true , registered : 'Jan 1, 2023 ' } ,
123
124
country : { name : 'India' , flag : cifIn } ,
124
125
usage : {
125
126
value : 74 ,
126
- period : 'Jun 11, 2021 - Jul 10, 2021 ' ,
127
+ period : 'Jun 11, 2023 - Jul 10, 2023 ' ,
127
128
color : 'warning' ,
128
129
} ,
129
130
payment : { name : 'Stripe' , icon : cibCcStripe } ,
130
131
activity : '1 hour ago' ,
131
132
} ,
132
133
{
133
134
avatar : { src : avatar4 , status : 'secondary' } ,
134
- user : { name : 'Enéas Kwadwo' , new : true , registered : 'Jan 1, 2021 ' } ,
135
+ user : { name : 'Enéas Kwadwo' , new : true , registered : 'Jan 1, 2023 ' } ,
135
136
country : { name : 'France' , flag : cifFr } ,
136
137
usage : {
137
138
value : 98 ,
138
- period : 'Jun 11, 2021 - Jul 10, 2021 ' ,
139
+ period : 'Jun 11, 2023 - Jul 10, 2023 ' ,
139
140
color : 'danger' ,
140
141
} ,
141
142
payment : { name : 'PayPal' , icon : cibCcPaypal } ,
@@ -146,12 +147,12 @@ const Dashboard = () => {
146
147
user : {
147
148
name : 'Agapetus Tadeáš' ,
148
149
new : true ,
149
- registered : 'Jan 1, 2021 ' ,
150
+ registered : 'Jan 1, 2023 ' ,
150
151
} ,
151
152
country : { name : 'Spain' , flag : cifEs } ,
152
153
usage : {
153
154
value : 22 ,
154
- period : 'Jun 11, 2021 - Jul 10, 2021 ' ,
155
+ period : 'Jun 11, 2023 - Jul 10, 2023 ' ,
155
156
color : 'primary' ,
156
157
} ,
157
158
payment : { name : 'Google Wallet' , icon : cibCcApplePay } ,
@@ -162,12 +163,12 @@ const Dashboard = () => {
162
163
user : {
163
164
name : 'Friderik Dávid' ,
164
165
new : true ,
165
- registered : 'Jan 1, 2021 ' ,
166
+ registered : 'Jan 1, 2023 ' ,
166
167
} ,
167
168
country : { name : 'Poland' , flag : cifPl } ,
168
169
usage : {
169
170
value : 43 ,
170
- period : 'Jun 11, 2021 - Jul 10, 2021 ' ,
171
+ period : 'Jun 11, 2023 - Jul 10, 2023 ' ,
171
172
color : 'success' ,
172
173
} ,
173
174
payment : { name : 'Amex' , icon : cibCcAmex } ,
@@ -177,15 +178,15 @@ const Dashboard = () => {
177
178
178
179
return (
179
180
< >
180
- < WidgetsDropdown />
181
+ < WidgetsDropdown className = "mb-4" />
181
182
< CCard className = "mb-4" >
182
183
< CCardBody >
183
184
< CRow >
184
185
< CCol sm = { 5 } >
185
186
< h4 id = "traffic" className = "card-title mb-0" >
186
187
Traffic
187
188
</ h4 >
188
- < div className = "small text-body-secondary" > January - July 2021 </ div >
189
+ < div className = "small text-body-secondary" > January - July 2023 </ div >
189
190
</ CCol >
190
191
< CCol sm = { 7 } className = "d-none d-md-block" >
191
192
< CButton color = "primary" className = "float-end" >
@@ -208,22 +209,31 @@ const Dashboard = () => {
208
209
< MainChart />
209
210
</ CCardBody >
210
211
< CCardFooter >
211
- < CRow xs = { { cols : 1 } } md = { { cols : 5 } } className = "text-center" >
212
- { progressExample . map ( ( item , index ) => (
213
- < CCol className = "mb-sm-2 mb-0" key = { index } >
212
+ < CRow
213
+ xs = { { cols : 1 , gutter : 4 } }
214
+ sm = { { cols : 2 } }
215
+ lg = { { cols : 4 } }
216
+ xl = { { cols : 5 } }
217
+ className = "mb-2 text-center"
218
+ >
219
+ { progressExample . map ( ( item , index , items ) => (
220
+ < CCol
221
+ className = { classNames ( {
222
+ 'd-none d-xl-block' : index + 1 === items . length ,
223
+ } ) }
224
+ key = { index }
225
+ >
214
226
< div className = "text-body-secondary" > { item . title } </ div >
215
- < strong >
227
+ < div className = "fw-semibold text-truncate" >
216
228
{ item . value } ({ item . percent } %)
217
- </ strong >
229
+ </ div >
218
230
< CProgress thin className = "mt-2" color = { item . color } value = { item . percent } />
219
231
</ CCol >
220
232
) ) }
221
233
</ CRow >
222
234
</ CCardFooter >
223
235
</ CCard >
224
-
225
- < WidgetsBrand withCharts />
226
-
236
+ < WidgetsBrand className = "mb-4" withCharts />
227
237
< CRow >
228
238
< CCol xs >
229
239
< CCard className = "mb-4" >
@@ -232,20 +242,21 @@ const Dashboard = () => {
232
242
< CRow >
233
243
< CCol xs = { 12 } md = { 6 } xl = { 6 } >
234
244
< CRow >
235
- < CCol sm = { 6 } >
245
+ < CCol xs = { 6 } >
236
246
< div className = "border-start border-start-4 border-start-info py-1 px-3" >
237
- < div className = "text-body-secondary small " > New Clients</ div >
247
+ < div className = "text-body-secondary text-truncate xsall " > New Clients</ div >
238
248
< div className = "fs-5 fw-semibold" > 9,123</ div >
239
249
</ div >
240
250
</ CCol >
241
- < CCol sm = { 6 } >
251
+ < CCol xs = { 6 } >
242
252
< div className = "border-start border-start-4 border-start-danger py-1 px-3 mb-3" >
243
- < div className = "text-body-secondary small" > Recurring Clients</ div >
253
+ < div className = "text-body-secondary text-truncate small" >
254
+ Recurring Clients
255
+ </ div >
244
256
< div className = "fs-5 fw-semibold" > 22,643</ div >
245
257
</ div >
246
258
</ CCol >
247
259
</ CRow >
248
-
249
260
< hr className = "mt-0" />
250
261
{ progressGroupExample1 . map ( ( item , index ) => (
251
262
< div className = "progress-group mb-4" key = { index } >
@@ -259,18 +270,17 @@ const Dashboard = () => {
259
270
</ div >
260
271
) ) }
261
272
</ CCol >
262
-
263
273
< CCol xs = { 12 } md = { 6 } xl = { 6 } >
264
274
< CRow >
265
- < CCol sm = { 6 } >
275
+ < CCol xs = { 6 } >
266
276
< div className = "border-start border-start-4 border-start-warning py-1 px-3 mb-3" >
267
- < div className = "text-body-secondary small" > Pageviews</ div >
277
+ < div className = "text-body-secondary text-truncate small" > Pageviews</ div >
268
278
< div className = "fs-5 fw-semibold" > 78,623</ div >
269
279
</ div >
270
280
</ CCol >
271
- < CCol sm = { 6 } >
281
+ < CCol xs = { 6 } >
272
282
< div className = "border-start border-start-4 border-start-success py-1 px-3 mb-3" >
273
- < div className = "text-body-secondary small" > Organic</ div >
283
+ < div className = "text-body-secondary text-truncate small" > Organic</ div >
274
284
< div className = "fs-5 fw-semibold" > 49,123</ div >
275
285
</ div >
276
286
</ CCol >
@@ -314,7 +324,7 @@ const Dashboard = () => {
314
324
< br />
315
325
316
326
< CTable align = "middle" className = "mb-0 border" hover responsive >
317
- < CTableHead >
327
+ < CTableHead className = "text-nowrap" >
318
328
< CTableRow >
319
329
< CTableHeaderCell className = "bg-body-tertiary text-center" >
320
330
< CIcon icon = { cilPeople } />
0 commit comments