Reconfigure page layout

This commit is contained in:
Austin Chen 2021-12-01 20:17:54 -06:00
parent 6aab61ba3e
commit 4bc445407d

View File

@ -1,21 +1,24 @@
<template>
<div class="overflow-x-auto px-12">
<label>Simulation step: {{ steps }} </label>
<input
class="range"
type="range"
v-model.number="steps"
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 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"
type="range"
v-model.number="steps"
min="1"
:max="bids.length"
/>
<!-- 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,
},
},
},
})
}