update
This commit is contained in:
@@ -1,25 +1,50 @@
|
||||
<html>
|
||||
<body>
|
||||
<head>
|
||||
<!-- <link rel="stylesheet" type="text/css" href="main.css" /> -->
|
||||
<style>
|
||||
|
||||
.container {
|
||||
display: grid;
|
||||
grid-template-columns: auto auto auto;
|
||||
padding: 10px;
|
||||
}
|
||||
.grid-item {
|
||||
/* background-color: rgba(255, 255, 255, 0.8); */
|
||||
border: 1px solid #ff8d1a;
|
||||
padding: 20px;
|
||||
/* font-size: 30px; */
|
||||
text-align: center;
|
||||
/* grid-column-start: 1;
|
||||
grid-column-end: 3; */
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<body style="background-color: black; color: white">
|
||||
<h1 style='text-align: center; color: #ff8d1a'>{{ nrist }} </h1>
|
||||
|
||||
<!-- <form id="usernameForm">
|
||||
<input type="text" id="prodottiAggiunti" placeholder="Enter your username" />
|
||||
<button type="button" onclick="addUser()">Add User</button> -->
|
||||
</form>
|
||||
<button type="button" onclick="addUser()">Add User</button>
|
||||
</form> -->
|
||||
</head>
|
||||
<br><br>
|
||||
|
||||
<ul>
|
||||
<div class="container">
|
||||
{% for index in range(nome|length) %}
|
||||
<div class="grid-item">
|
||||
<h2 style='text-align: center;'>{{ nome[index] }}</h2>
|
||||
<p style='text-align: center;'>{{ desc[index] }}</p>
|
||||
|
||||
<div class="spazio">
|
||||
<p style='text-align: center;'>{{ desc[index] }}</p>
|
||||
</div>
|
||||
|
||||
<p style='text-align: center;'>Npezzi: {{ npezzi[index] }}</p>
|
||||
<p style='text-align: center;'>{{ prezzoN[index] }}€</p>
|
||||
<div style='text-align: center;'><button style='font-size: 1.2em;' onclick="aggiungiProdotto('{{ nome[index] }}', '{{ prezzoN[index] }}')">+1</button></div>
|
||||
<br><br>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<br><hr><h2>Prodotti aggiunti</h2>
|
||||
<div id="prodottiAggiunti"></div>
|
||||
|
||||
Reference in New Issue
Block a user