JSFiddle - React, Tailwind, and code Playground
by JoshGough
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Eagle Playbook Fixed</title>
<style>
body {
background-color: #0f172a; /* Dark Blue/Grey */
color: white;
font-family: sans-serif;
margin: 0;
padding: 10px;
display: flex;
flex-direction: column;
align-items: center;
height: 100vh;
overflow: hidden;
touch-action: none; /* Prevents scrolling on mobile */
}
/* TOOLBAR STYLES */
.toolbar {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: center;
background: #1e293b;
padding: 10px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.5);
margin-bottom: 10px;
max-width: 800px;
width: 100%;
}
button, label.btn {
background: #334155;
border: 1px solid #475569;
color: white;
padding: 8px 12px;
border-radius: 4px;
font-weight: bold;
font-size: 14px;
cursor: pointer;
user-select: none;
display: inline-block;
}
button:active, label.btn:active { background: #000; }
.primary { background: #2563eb; border-color: #1d4ed8; }
.green { background: #16a34a; border-color: #15803d; }
.red { background: #dc2626; border-color: #b91c1c; }
input[type="file"] { display: none; }
/* CANVAS */
#canvas-container {
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
border: 2px...