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</title>
<style>
:root {
--primary: #2563eb;
--danger: #dc2626;
--bg: #1e293b;
--panel: #334155;
--text: #f8fafc;
}
body {
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
background-color: var(--bg);
color: var(--text);
display: flex;
flex-direction: column;
align-items: center;
margin: 0;
padding: 10px;
height: 100vh;
overflow: hidden;
user-select: none;
-webkit-user-select: none;
}
.toolbar {
background: var(--panel);
padding: 8px;
border-radius: 8px;
display: flex;
gap: 8px;
margin-bottom: 8px;
flex-wrap: wrap;
justify-content: center;
z-index: 100;
width: 100%;
max-width: 800px;
box-sizing: border-box;
}
/* Standardize buttons */
button, .file-btn {
background-color: #475569;
color: white;
border: 1px solid #64748b;
padding: 10px 14px; /* Larger touch target */
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
display: inline-flex;
align-items: center;
justify-content: center;
touch-action: manipulation;
}
button:active, .file-btn:active { background-color: #0f172a; transform: translateY(1px); }
button.primary { background-color: var(--primary);...