Skip to content

Commit

Permalink
Updated UI
Browse files Browse the repository at this point in the history
  • Loading branch information
manitbaser committed May 8, 2021
1 parent 8111368 commit 53baaf7
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 12 deletions.
70 changes: 58 additions & 12 deletions template/login.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,59 @@
<!DOCTYPE html>
<html>
<body>
<form action = "http://localhost:5000/login" method = "post">
<p>User ID</p>
<p><input type = "text" name = "nm" /></p>
<p>Product:</p>
<p><input type = "text" name = "pr" /></p>
<p>Quantity:</p>
<p><input type = "text" name = "qty" /></p>
<p><input type = "submit" value = "submit" /></p>
</form>
</body>
</html>
<head>
<title>
UnScript
</title>
<link rel="stylesheet" href="./static/index.css">
<link rel="stylesheet" href="https://unpkg.com/mvp.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
box-sizing: border-box;
}

.column {
float: left;
width: 50%;
padding: 10px;
}

.row:after {
content: "";
display: table;
clear: both;
}
</style>
</head>
<body>
<br>
<img class="center_logo" style="border-radius: 20px; border: 100px black;" height="200vh" alt="Robot logo" src="./static/images/Maverick.png"></img>
<br><br>
<div class="row">
<div class="column">
<div class="center">
<form class="center" action = "http://localhost:5000/login" method = "post">
<p>User ID</p>
<p><input type = "text" name = "nm" /></p>
<p>Product ID:</p>
<p><input type = "text" name = "pr" /></p>
<p>Quantity (in HL):</p>
<p><input type = "text" name = "qty" /></p>
<p><input type = "submit" value = "submit" /></p>
</form>
</div>
</div>
<div class="column">
<div class="center">
<div>New recommendations based on users using similar product: {{res[0]}}</div>
<div>New recommendations based on users in similar location and groupements: {{res[1]}}</div>
<div>New recommendations based on similar products: {{res[2]}}</div>
<div>Previously ordered products recommendations based on users using similar product: {{res[3]}}</div>
<div>Previously ordered products recommendations based on users in similar location and groupements: {{res[4]}}</div>
<div>Previously ordered products recommendations based on similar products: {{res[5]}}</div>
</div>
</div>
</div>

</body>
</html>
Binary file added template/static/images/AbinBev.webp
Binary file not shown.
Binary file added template/static/images/Maverick.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions template/static/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: 80%;
}

.center_logo {
display: block;
margin-left: auto;
margin-right: auto;
}

0 comments on commit 53baaf7

Please sign in to comment.