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>Futuristic Production Calculator</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap">
<style>
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: #f0f0f0;
font-family: 'Roboto', sans-serif;
}
.container {
background-color: #ffffff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
max-width: 600px;
width: 100%;
}
.header {
text-align: center;
margin-bottom: 20px;
font-size: 24px;
font-weight: bold;
}
.input-group {
margin-bottom: 15px;
}
.input-group label {
display: block;
margin-bottom: 5px;
}
.input-group input {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
table th, table td {
padding: 10px;
border: 1px solid #ccc;
text-align: center;
}
table th {
background-color: #f9f9f9;
}
.total-row {
font-weight: bold;
background-color: #f0f0f0;
}
</style>
</head>
<body>
<div class="container">
<div class="header">Production Calculator</div>
<div class="input-group">
<label for="inpCycleTime">Cycle Time (sec):</label>
<input type="number" id="inpCycleTime" placeholder="Enter cycle time">
</div>
...