updated frontend

This commit is contained in:
Giulio De Pasquale 2020-12-08 15:46:26 +00:00
parent f88befa687
commit 1603f2593f
2 changed files with 79 additions and 28 deletions

View File

@ -1,4 +0,0 @@
html,
body {
height: 100%;
}

View File

@ -1,6 +1,8 @@
<!doctype html>
<html class="h-100">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}">
<script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
@ -8,10 +10,11 @@
<title>Hello world!</title>
<body>
<div class="container my-2 border">
<div class="row" id="statistics">
<div class="card mb-3 bg-light my-auto mx-auto" style="max-width: 25rem;">
<body class="h-100 d-flex flex-column">
<main class="container my-2 border h-100">
<div class="row row-cols-auto justify-content-center my-2" id="statistics">
<div class="card bg-light mx-auto" style="max-width: 25rem;">
<div class="row g-0">
<div class="col-md-7 my-2">
<h3 class="my-auto border-end text-center">Current price:</h3>
@ -26,31 +29,83 @@
</p>
</div>
</div>
<div class="card mb-3 bg-light my-auto mx-auto" style="max-width: 25rem;">
<div class="row g-0">
<div class="col-md-7 my-2">
<h3 class="my-auto border-end text-center">Profit / Loss:</h3>
</div>
<div class="col-md-5">
<div class="row border-top my-2">
<div class="col">
<div class="card my-2">
<div class="card-header text-center">
<h3>Open positions:</h3>
</div>
<div class="card-body">
<p class="card-text text-center text-decoration-underline"> 0.00 %</p>
<table class="table table-striped table-hover table-sm">
<thead>
<tr>
<th>ID</th>
<th>Date</th>
<th>Amount</th>
<th>P/L</th>
</tr>
</thead>
<tbody>
<tr>
<th>1</th>
<th>01/01/2020</th>
<th>BTC +1.0000</th>
<th>1.00 %</th>
</tr>
</tbody>
</table>
</div>
</div>
<p class="card-text text-center border-top my-auto">
<small class="text-muted">Last updated 3 mins ago</small>
</p>
</div>
</div>
<div class="row">
<div class="col">
<div class="card my-2">
<div class="card-header text-center">
<h3>Open orders:</h3>
</div>
<div class="card-body">
<table class="table table-striped table-hover table-sm">
<thead>
<tr>
<th>ID</th>
<th>Date</th>
<th>Amount</th>
<th>P/L</th>
</tr>
</thead>
<tbody>
<tr>
<th>1</th>
<th>01/01/2020</th>
<th>BTC +1.0000</th>
<th>1.00 %</th>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row align-content-center">
<div class="col-9 border">
<h3 class="border-bottom">Price chart:</h1>
<p> Price graph here</p>
</div>
<div class="col-3 border">
<p> Buttons and stuff here</p>
</div>
</div>
</main>
<footer class="footer mt-auto py-3 bg-light border-top">
<div class="container text-center">
<span class="text-muted">Made with love by the Pepe</span>
</div>
</div>
</footer>
</body>
</html>