JSFiddle - React, Tailwind, and code Playground
by velo_ninja
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>TempManager + Pattern Manager</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
min-height: 100vh;
padding: 20px;
}
.app-container {
max-width: 1600px;
margin: 0 auto;
}
.app-header {
background: white;
padding: 20px 30px;
border-radius: 12px 12px 0 0;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.app-header h1 {
font-size: 28px;
color: #1e293b;
font-weight: 700;
margin: 0;
}
.wrapperTop {
background: white;
padding: 25px 30px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.wrapperCenter {
background: white;
padding: 25px 30px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.wrapperBottom {
background: white;
padding: 25px 30px;
border-radius: 0 0 12px 12px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 20px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.control-section {
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
padding: 20px;
border-radius: 10px;
border: 2px solid #e2e8f0;
}
.control-section h3 {
font-size: 18px;
color: #1e293b;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 2px solid #7e22ce;
}
.components-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 12px;
margin-top: 15px;
}
.spinner-control {
display: flex;
align-items: center;
gap: 8px;
padding: 12px;
background: white;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
transition: transform 0.2s, box-shadow 0.2s;
}
.spinner-control:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(126, 34, 206,...
JavaScript
[
{ "component": "heads_0", "zone_0": 200, "zone_1": 201 },
{ "component": "heads_1", "zone_0": 199, "zone_1": 202 },
{ "component": "extruders_0", "zone_0": 210, "zone_1": 211 },
{ "component": "extruders_1", "zone_0": 212, "zone_1": 213 },
{ "component": "flanges_0", "zone_0": 50, "zone_1": 51 },
{ "component": "hotRunners_0", "zone_0": 100, "zone_1": 102 }
]
[
{"ID":1,"Name":"Item 1","Price":"23.45","InStock":"Yes","Category":"Cat 1","Rating":4},
{"ID":2,"Name":"Item 2","Price":"67.89","InStock":"No","Category":"Cat 2","Rating":2},
{"ID":3,"Name":"Item 3","Price":"12.34","InStock":"Yes","Category":"Cat 3","Rating":5}
]