|
7 | 7 | <div class="md:p-2 p-1 w-1/2">
|
8 | 8 | <%= make_plot(@info.daily_data, @bar_options, @selected_bar) %>
|
9 | 9 | </div>
|
10 |
| - <div class="md:p-2 p-1 w-2/4"> |
11 |
| - <%= make_red_plot(@test_data) %> |
| 10 | + <div class="flex flex-wrap md:p-2 p-1 w-3/4"> |
| 11 | + <div class="p-1 w-full"> |
| 12 | + <div class="mx-auto max-w-screen-xl px-4 py-8 sm:px-6 sm:py-12 lg:px-8"> |
| 13 | + <dl class="mt-6 grid grid-cols-1 gap-4 sm:mt-8 sm:grid-cols-1 lg:grid-cols-2"> |
| 14 | + <div class="flex flex-col rounded-lg bg-blue-50 px-4 py-8 text-center"> |
| 15 | + <dt class="order-last text-lg font-medium text-gray-500">Total Transactions</dt> |
| 16 | + <dd class="text-xl font-extrabold text-blue-600 md:text-3xl"> |
| 17 | + <%= @info.transactions_count %> |
| 18 | + </dd> |
| 19 | + </div> |
| 20 | + <div class="flex flex-col rounded-lg bg-blue-50 px-4 py-8 text-center"> |
| 21 | + <dt class="order-last text-lg font-medium text-gray-500">Total Sales</dt> |
| 22 | + |
| 23 | + <dd class="text-xl font-extrabold text-blue-600 md:text-2xl"> |
| 24 | + $ <%= @info.total_amount %> |
| 25 | + </dd> |
| 26 | + </div> |
| 27 | + </dl> |
| 28 | + </div> |
| 29 | + </div> |
| 30 | + <div class="md:p-2 p-1 w-full"> |
| 31 | + <.table id="devices" rows={@devices}> |
| 32 | + <:col :let={device} label="Identifier"><%= device.id %></:col> |
| 33 | + <:col :let={device} label="AVG speed">1 Mb</:col> |
| 34 | + <:col :let={device} label=""> |
| 35 | + <%= make_red_plot(@test_data) %> |
| 36 | + </:col> |
| 37 | + </.table> |
| 38 | + </div> |
12 | 39 | </div>
|
13 | 40 | <div class="md:p-2 p-1 w-1/4">
|
14 | 41 | <h2 class="font-medium title-font tracking-widest text-gray-900 mb-4 text-sm text-center sm:text-left">
|
|
32 | 59 | <%= customer %>
|
33 | 60 | </a>
|
34 | 61 | </nav>
|
35 |
| - </div> |
36 |
| - <div class="md:p-2 p-1 w-1/4"> |
37 |
| - <h2 class="font-medium title-font tracking-widest text-gray-900 mb-4 text-sm text-center sm:text-left"> |
| 62 | + <h2 class="font-medium title-font tracking-widest text-gray-900 mt-10 mb-4 text-sm text-center sm:text-left"> |
38 | 63 | LAST CUSTOMERS
|
39 | 64 | </h2>
|
40 | 65 | <nav class="flex flex-col sm:items-start sm:text-left text-center items-center -mb-1 space-y-2.5">
|
|
57 | 82 | </nav>
|
58 | 83 | </div>
|
59 | 84 | </div>
|
60 |
| - <pre> |
61 |
| - <%= inspect(@info.transactions_count) %> |
62 |
| - <%= inspect(@info.total_amount) %> |
| 85 | + <div class="items-center "> |
| 86 | + <pre class="text-gray-300 bg-gray-800 code p-4 rounded-md whitespace-pre overflow-x-auto"> |
| 87 | +<code> <%= inspect(@info.daily_data, pretty: true) %> |
| 88 | + </code> |
63 | 89 | </pre>
|
| 90 | + </div> |
64 | 91 | </div>
|
0 commit comments