JSFiddle - React, Tailwind, and code Playground
by velo_ninja
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Durchsatzmessung</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.4.0/jspdf.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf-autotable/3.5.16/jspdf.plugin.autotable.min.js"></script>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
color: #333;
margin: 20px;
}
h1 {
text-align: center;
font-size: 2em;
color: #0066cc;
margin-bottom: 20px;
}
label, .btn {
font-size: 1em;
background: white;
}
.table-container {
display: flex;
flex-direction: column;
background: lightgrey;
border-radius: 8px;
padding: 10px;
margin-bottom: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
animation: fadeIn 0.5s ease;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 5px;
}
th, td {
height: 2.5vh;
text-align: center;
}
th {
background-color: #007bff;
color: white;
}
input[type="number"],
input[type="text"] {
width: calc(100% - 10px);
padding: 8px;
margin-bottom: 15px;
border-radius: 4px;
border: 1px solid #ccc;
text-align: center;
}
.btn {
padding: 5px 15px;
cursor: pointer;
margin: 1px;
border: none;
border-radius: 40px;
color: white;
}
.remove-btn { background-color: #dc3545; }
#generateTables { background-color: #28a745; }
...