Reconfigure page layout
This commit is contained in:
parent
6aab61ba3e
commit
4bc445407d
|
@ -1,5 +1,13 @@
|
|||
<template>
|
||||
<div class="overflow-x-auto px-12">
|
||||
<!-- Two-column layout (on large screen sizes) -->
|
||||
<div class="grid grid-cols-1 xl:grid-cols-2 gap-4">
|
||||
<!-- Left column -->
|
||||
<div>
|
||||
<h1 class="text-2xl font-bold text-gray-600 mb-8">
|
||||
Dynamic Parimutuel Market Simulator
|
||||
</h1>
|
||||
|
||||
<label>Simulation step: {{ steps }} </label>
|
||||
<input
|
||||
class="range"
|
||||
|
@ -8,14 +16,9 @@
|
|||
min="1"
|
||||
:max="bids.length"
|
||||
/>
|
||||
<!-- Two-column layout (on large screen sizes) -->
|
||||
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<canvas id="simChart" width="400" height="400"></canvas>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
<!-- Table to enter a new bid -->
|
||||
<table class="table table-compact my-8">
|
||||
<table class="table table-compact my-8 w-full">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Order #</th>
|
||||
|
@ -71,7 +74,7 @@
|
|||
</table>
|
||||
|
||||
<!-- List of historical bids -->
|
||||
<table class="table table-compact">
|
||||
<table class="table table-compact w-full">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Order #</th>
|
||||
|
@ -114,6 +117,15 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- Right column -->
|
||||
<div>
|
||||
<h1 class="text-2xl font-bold text-gray-600 mb-8">
|
||||
Probability of
|
||||
<div class="badge badge-success text-2xl h-8 w-18">YES</div>
|
||||
</h1>
|
||||
<canvas id="simChart" width="400" height="400"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -161,6 +173,13 @@ function initChart() {
|
|||
},
|
||||
],
|
||||
},
|
||||
options: {
|
||||
plugins: {
|
||||
legend: {
|
||||
display: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user