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>Blowmolding Machine Tool</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
overflow: hidden;
}
.container {
position: relative;
width: 600px;
height: 600px;
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="600" viewBox="0 0 600 600"><rect width="100%" height="100%" fill="#cccccc"/><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="sans-serif" font-size="20" fill="#666666">Placeholder Image</text></svg>') no-repeat center center;
background-size: cover;
border: 1px solid #ccc;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
border-radius: 8px;
}
.circle-wrapper {
position: absolute;
top: 50%;
left: 50%;
width: 424px;
height: 424px;
transform: translate(-50%, -50%);
}
.circle {
width: 100%;
height: 100%;
border: 2px dashed #000;
border-radius: 50%;
background-image: url('https://t4.ftcdn.net/jpg/07/91/22/59/360_F_791225927_caRPPH99D6D1iFonkCRmCGzkJPf36QDw.jpg');
background-color: red;
background-size: cover;
background-position: center;
background-blend-mode: normal;
background-repeat: no-repeat;
}
.input-field {
height: 25px;
...