Compare commits
4 Commits
a579f2e995
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| be744fb8c4 | |||
| 4512c077ec | |||
| 1a88eb52e2 | |||
| b7846c31d7 |
@@ -2,7 +2,6 @@
|
||||
<html lang="it">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>PizzaExpress Web</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<script src="script.js"></script>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const apiUrl = "https://localhost:7297"; // Inserire qui l'URL del web server Kestrel
|
||||
const apiUrl = "http://localhost:5000"; // Inserire qui l'URL del web server Kestrel
|
||||
|
||||
function listPizze(){
|
||||
let reply;
|
||||
@@ -14,7 +14,7 @@ function listPizze(){
|
||||
let table = '<table><tr><th>ID</th><th>Nome</th><th>Prezzo</th><th>Note</th><th>Azioni</th></tr>';
|
||||
|
||||
// Aggiungiamo ogni pizza come riga della tabella
|
||||
pizze.pizze.forEach(pizza => {
|
||||
pizze.forEach(pizza => {
|
||||
table += `<tr>
|
||||
<td>${pizza.id}</td>
|
||||
<td>${pizza.nome}</td>
|
||||
|
||||
82
style.css
82
style.css
@@ -1,5 +1,12 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body{
|
||||
background-color: gainsboro;
|
||||
background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
body, button{
|
||||
@@ -8,26 +15,65 @@ body, button{
|
||||
|
||||
header{
|
||||
text-align: center;
|
||||
background-color: red;
|
||||
background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
|
||||
color: white;
|
||||
padding: 10px;
|
||||
margin-bottom: 15px;
|
||||
padding: 20px;
|
||||
margin-bottom: 30px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
table, td, th{
|
||||
border: 1px solid black;
|
||||
header h1 {
|
||||
font-size: 2.5em;
|
||||
font-weight: 700;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
table{
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
background-color: white;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
td, th{
|
||||
padding: 5px;
|
||||
padding: 12px 15px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
th{
|
||||
background-color: #f5f5f5;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
tr:hover {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
button{
|
||||
padding: 5px;
|
||||
background-color: black;
|
||||
padding: 10px 16px;
|
||||
background-color: #1976d2;
|
||||
color: white;
|
||||
border-radius: 5px;
|
||||
border-radius: 6px;
|
||||
border-style: none;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: #1565c0;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
button:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.pageControls{
|
||||
@@ -35,14 +81,24 @@ button{
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
gap: 20px;
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
.editBtn{
|
||||
background-color: aqua;
|
||||
color: black;
|
||||
background-color: #ff9800;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.editBtn:hover {
|
||||
background-color: #f57c00;
|
||||
}
|
||||
|
||||
.delBtn{
|
||||
background-color: red;
|
||||
background-color: #d32f2f;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.delBtn:hover {
|
||||
background-color: #b71c1c;
|
||||
}
|
||||
Reference in New Issue
Block a user