디자인 다크 모드 수정
This commit is contained in:
@@ -8,533 +8,279 @@ const char serial2_terminal_html[] PROGMEM = R"rawliteral(
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Serial2 Terminal - CAN Logger</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
:root {
|
||||
--bg: #0e1117;
|
||||
--panel: #161b24;
|
||||
--card: #1c2230;
|
||||
--border: #2d3748;
|
||||
--accent: #43cea2;
|
||||
--green: #3fb950;
|
||||
--blue: #58a6ff;
|
||||
--red: #f85149;
|
||||
--yellow: #e3b341;
|
||||
--purple: #bc8cff;
|
||||
--text: #e6edf3;
|
||||
--muted: #8b949e;
|
||||
--r: 8px;
|
||||
}
|
||||
|
||||
* { margin:0; padding:0; box-sizing:border-box; }
|
||||
html, body { min-height:100%; }
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
min-height: 100vh;
|
||||
padding: 20px;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
background: var(--bg); color: var(--text);
|
||||
overflow-x: hidden; font-size: 14px;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
border-radius: 15px;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
/* Header */
|
||||
.header {
|
||||
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||
color: white;
|
||||
padding: 20px 30px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
|
||||
background: linear-gradient(135deg,#1a2744 0%,#1e1a3a 100%);
|
||||
padding: 11px 16px; border-bottom: 1px solid var(--border);
|
||||
display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 1.8em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-size: 1.0em; font-weight: 700; color: var(--accent);
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
}
|
||||
|
||||
.header p { font-size: 0.78em; color: var(--muted); margin:0; }
|
||||
.badge {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
padding: 5px 12px;
|
||||
border-radius: 20px;
|
||||
font-size: 0.5em;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* ========== 통일된 네비게이션 ========== */
|
||||
.nav {
|
||||
background: #f8f9fa;
|
||||
padding: 0;
|
||||
border-bottom: 2px solid #e0e0e0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.nav a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 15px 20px;
|
||||
text-decoration: none;
|
||||
color: #666;
|
||||
font-weight: 500;
|
||||
font-size: 0.95em;
|
||||
border-bottom: 3px solid transparent;
|
||||
transition: all 0.3s;
|
||||
background: rgba(67,206,162,.15); color: var(--accent);
|
||||
padding: 2px 8px; border-radius: 12px; font-size: 0.65em;
|
||||
font-weight: 600; border: 1px solid rgba(67,206,162,.3);
|
||||
white-space: nowrap;
|
||||
min-width: 120px;
|
||||
}
|
||||
|
||||
.nav a:hover {
|
||||
background: #e9ecef;
|
||||
color: #667eea;
|
||||
transform: translateY(-2px);
|
||||
.header-spacer { flex:1; }
|
||||
|
||||
/* Nav */
|
||||
.nav {
|
||||
background: var(--panel); border-bottom: 1px solid var(--border);
|
||||
display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.nav a.active {
|
||||
color: #764ba2;
|
||||
border-bottom-color: #764ba2;
|
||||
background: white;
|
||||
font-weight: 600;
|
||||
.nav::-webkit-scrollbar { display:none; }
|
||||
.nav a {
|
||||
display: inline-flex; align-items: center;
|
||||
padding: 10px 13px; text-decoration: none; color: var(--muted);
|
||||
font-size: 0.78em; font-weight: 500;
|
||||
border-bottom: 2px solid transparent; white-space: nowrap;
|
||||
transition: color .2s, border-color .2s;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 30px;
|
||||
.nav a:hover { color: var(--text); }
|
||||
.nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
|
||||
|
||||
/* Content */
|
||||
.content { padding: 12px; }
|
||||
|
||||
/* Headings */
|
||||
h2 {
|
||||
color: var(--accent); margin: 14px 0 10px;
|
||||
font-size: 0.82em; font-weight: 700; text-transform: uppercase;
|
||||
letter-spacing: .5px; padding-bottom: 6px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.control-panel {
|
||||
background: #f8f9fa;
|
||||
padding: 20px;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 20px;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 20px;
|
||||
h3 {
|
||||
color: var(--text); font-size: 0.85em; font-weight: 600;
|
||||
margin-bottom: 10px; padding-bottom: 6px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.control-group {
|
||||
background: white;
|
||||
padding: 15px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #e0e0e0;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 20px;
|
||||
|
||||
/* Buttons */
|
||||
.btn, button {
|
||||
padding: 6px 13px; border: 1px solid var(--border);
|
||||
border-radius: var(--r); background: var(--bg); color: var(--muted);
|
||||
font-size: 0.8em; font-weight: 600; cursor: pointer;
|
||||
font-family: inherit; transition: all .15s; white-space: nowrap;
|
||||
-webkit-tap-highlight-color: transparent; touch-action: manipulation;
|
||||
}
|
||||
|
||||
.control-group.full-width {
|
||||
grid-template-columns: 1fr;
|
||||
.btn:hover, button:hover { border-color: var(--accent); color: var(--accent); }
|
||||
.btn:active, button:active { transform: scale(.97); }
|
||||
.btn-primary { border-color:var(--blue); color:var(--blue); }
|
||||
.btn-success { border-color:var(--accent); color:var(--accent); }
|
||||
.btn-danger { border-color:var(--red); color:var(--red); }
|
||||
.btn-warning { border-color:var(--yellow); color:var(--yellow); }
|
||||
.btn-secondary{ border-color:var(--muted); color:var(--muted); }
|
||||
.btn-primary:hover { background:rgba(88,166,255,.10); }
|
||||
.btn-success:hover { background:rgba(67,206,162,.10); }
|
||||
.btn-danger:hover { background:rgba(248,81,73,.10); }
|
||||
.btn-warning:hover { background:rgba(227,179,65,.10); }
|
||||
.btn-secondary:hover{ background:rgba(139,148,158,.10); }
|
||||
.btn-small { padding:4px 9px; font-size:.75em; }
|
||||
.button-group, .btn-group { display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
|
||||
|
||||
/* Forms */
|
||||
label {
|
||||
display:block; font-weight:600; color:var(--muted);
|
||||
margin-bottom:4px; font-size:.78em;
|
||||
text-transform:uppercase; letter-spacing:.3px;
|
||||
}
|
||||
|
||||
.control-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
input[type="text"], input[type="password"], input[type="number"],
|
||||
select, textarea {
|
||||
width:100%; padding:7px 10px;
|
||||
border:1px solid var(--border); border-radius:var(--r);
|
||||
font-size:.85em; font-family:inherit;
|
||||
background:var(--bg); color:var(--text);
|
||||
transition:border-color .2s;
|
||||
}
|
||||
|
||||
.control-group h3 {
|
||||
color: #333;
|
||||
margin-bottom: 15px;
|
||||
font-size: 1.1em;
|
||||
border-bottom: 2px solid #667eea;
|
||||
padding-bottom: 8px;
|
||||
input:focus, select:focus, textarea:focus {
|
||||
outline:none; border-color:var(--accent);
|
||||
box-shadow:0 0 0 2px rgba(67,206,162,.10);
|
||||
}
|
||||
|
||||
input[type="checkbox"], input[type="radio"] {
|
||||
width:15px; height:15px; cursor:pointer; accent-color:var(--accent);
|
||||
}
|
||||
select option { background:var(--panel); color:var(--text); }
|
||||
|
||||
/* Panels */
|
||||
.section, .settings-section, .send-panel, .stats,
|
||||
.control-panel, .auto-trigger-section {
|
||||
background:var(--panel); border:1px solid var(--border);
|
||||
border-radius:var(--r); padding:13px; margin-bottom:10px;
|
||||
}
|
||||
.form-group { margin-bottom:12px; }
|
||||
.form-group:last-child { margin-bottom:0; }
|
||||
.help-text { font-size:.76em; color:var(--muted); margin-top:4px; line-height:1.4; }
|
||||
.form-row {
|
||||
display: grid;
|
||||
grid-template-columns: 120px 1fr;
|
||||
gap: 10px;
|
||||
margin-bottom: 12px;
|
||||
align-items: center;
|
||||
display:grid;
|
||||
grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));
|
||||
gap:10px; margin-bottom:10px;
|
||||
}
|
||||
|
||||
.form-row label {
|
||||
color: #555;
|
||||
font-weight: 500;
|
||||
.form-row label { text-transform:none; font-size:.78em; }
|
||||
.checkbox-group, .checkbox-row {
|
||||
display:flex; align-items:center; gap:8px;
|
||||
margin-bottom:8px; padding:7px 10px;
|
||||
background:var(--card); border-radius:6px; border:1px solid var(--border);
|
||||
}
|
||||
|
||||
.checkbox-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-top: 12px;
|
||||
padding: 10px;
|
||||
background: #f8f9fa;
|
||||
border-radius: 5px;
|
||||
.checkbox-group label, .checkbox-row label {
|
||||
text-transform:none; cursor:pointer; margin-bottom:0;
|
||||
color:var(--text); font-size:.85em; letter-spacing:0;
|
||||
}
|
||||
|
||||
.checkbox-row input[type="checkbox"] {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
cursor: pointer;
|
||||
|
||||
/* Alerts */
|
||||
.alert {
|
||||
padding:9px 13px; border-radius:var(--r);
|
||||
margin-bottom:10px; display:none;
|
||||
align-items:center; gap:9px;
|
||||
font-size:.83em; font-weight:600;
|
||||
border:1px solid var(--border); background:var(--panel); color:var(--text);
|
||||
}
|
||||
|
||||
.checkbox-row label {
|
||||
color: #555;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
.alert.show { display:flex; }
|
||||
.alert-success { border-color:rgba(67,206,162,.4); color:var(--accent); background:rgba(67,206,162,.07); }
|
||||
.alert-info { border-color:rgba(88,166,255,.4); color:var(--blue); background:rgba(88,166,255,.07); }
|
||||
.alert-warning { border-color:rgba(227,179,65,.4); color:var(--yellow); background:rgba(227,179,65,.07); }
|
||||
.alert-icon { font-size:1.15em; }
|
||||
.alert-text { flex:1; }
|
||||
@keyframes slideDown { from{opacity:0;transform:translateY(-6px);}to{opacity:1;transform:translateY(0);} }
|
||||
|
||||
/* Connection status */
|
||||
.connection-status {
|
||||
position:fixed; top:10px; right:10px;
|
||||
padding:4px 11px; border-radius:20px;
|
||||
font-size:.75em; font-weight:600; z-index:1000;
|
||||
border:1px solid var(--border); background:var(--panel); color:var(--muted);
|
||||
}
|
||||
|
||||
select, input[type="text"], input[type="number"] {
|
||||
padding: 8px 12px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
font-size: 14px;
|
||||
width: 100%;
|
||||
.connection-status.connected { border-color:rgba(67,206,162,.5); color:var(--accent); background:rgba(67,206,162,.08); }
|
||||
.connection-status.disconnected { border-color:rgba(248,81,73,.5); color:var(--red); background:rgba(248,81,73,.08); }
|
||||
|
||||
@media (max-width:480px) { .content{padding:8px;} h2{font-size:.78em;} }
|
||||
|
||||
/* serial terminal specific */
|
||||
.control-panel {
|
||||
background:var(--panel); border:1px solid var(--border);
|
||||
border-radius:var(--r); padding:13px; margin-bottom:10px;
|
||||
}
|
||||
|
||||
select:focus, input:focus {
|
||||
outline: none;
|
||||
border-color: #667eea;
|
||||
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
||||
.control-group {
|
||||
background:var(--card); border:1px solid var(--border);
|
||||
border-radius:var(--r); padding:12px;
|
||||
display:grid; grid-template-columns:1fr 1fr; gap:16px;
|
||||
}
|
||||
|
||||
.btn-group {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
flex: 1;
|
||||
padding: 12px;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
background: linear-gradient(135deg, #11998e, #38ef7d);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background: linear-gradient(135deg, #eb3349, #f45c43);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: #6c757d;
|
||||
color: white;
|
||||
}
|
||||
|
||||
@media(max-width:600px){ .control-group{ grid-template-columns:1fr; } }
|
||||
.control-group.full-width { grid-template-columns:1fr; }
|
||||
.control-group h3 { grid-column:1/-1; color:var(--accent); font-size:.85em; border-color:var(--border); }
|
||||
.control-section { display:flex; flex-direction:column; }
|
||||
.form-row { grid-template-columns:110px 1fr; align-items:center; gap:8px; }
|
||||
.form-row label { text-transform:none; color:var(--muted); font-size:.80em; margin-bottom:0; }
|
||||
/* Terminal */
|
||||
.terminal-container {
|
||||
background: #1e1e1e;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 5px 20px rgba(0,0,0,0.3);
|
||||
background:#090d13; border:1px solid var(--border); border-radius:var(--r); overflow:hidden;
|
||||
}
|
||||
|
||||
.terminal-header {
|
||||
background: #2d2d2d;
|
||||
padding: 10px 15px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #444;
|
||||
background:var(--panel); padding:8px 12px;
|
||||
display:flex; justify-content:space-between; align-items:center;
|
||||
border-bottom:1px solid var(--border);
|
||||
}
|
||||
|
||||
.terminal-title {
|
||||
color: #ccc;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.terminal-controls {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.terminal-title { color:var(--muted); font-size:.78em; font-weight:500; }
|
||||
.terminal-controls { display:flex; gap:6px; }
|
||||
.terminal-btn {
|
||||
padding: 4px 12px;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
background: #444;
|
||||
color: #ccc;
|
||||
transition: all 0.2s;
|
||||
padding:3px 10px; border:1px solid var(--border); border-radius:4px;
|
||||
font-size:.75em; cursor:pointer; background:var(--bg); color:var(--muted);
|
||||
transition:all .15s; font-family:inherit;
|
||||
}
|
||||
|
||||
.terminal-btn:hover {
|
||||
background: #555;
|
||||
}
|
||||
|
||||
.terminal-btn:hover { border-color:var(--accent); color:var(--accent); }
|
||||
.terminal {
|
||||
height: 400px;
|
||||
overflow-y: auto;
|
||||
padding: 15px;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
color: #f0f0f0;
|
||||
height:380px; overflow-y:auto; padding:12px;
|
||||
font-family:'SF Mono','Fira Code','Courier New',monospace;
|
||||
font-size:12px; line-height:1.55; color:#c9d1d9; background:#090d13;
|
||||
}
|
||||
|
||||
.terminal.teraterm-mode {
|
||||
height: 350px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.terminal.teraterm-mode { height:330px; }
|
||||
.terminal::-webkit-scrollbar { width:5px; }
|
||||
.terminal::-webkit-scrollbar-track { background:#0d1117; }
|
||||
.terminal::-webkit-scrollbar-thumb { background:#30363d; border-radius:3px; }
|
||||
.terminal::-webkit-scrollbar-thumb:hover { background:#484f58; }
|
||||
.terminal-input-area {
|
||||
display: none;
|
||||
background: #2d2d2d;
|
||||
padding: 10px 15px;
|
||||
border-top: 1px solid #444;
|
||||
display:none; background:var(--panel); padding:8px 12px;
|
||||
border-top:1px solid var(--border);
|
||||
}
|
||||
|
||||
.terminal-input-area.active {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.terminal-input-area .prompt {
|
||||
color: #4fc3f7;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.terminal-input-area.active { display:flex; align-items:center; gap:8px; }
|
||||
.terminal-input-area .prompt { color:var(--accent); font-family:monospace; font-size:.82em; }
|
||||
.terminal-input-area input {
|
||||
flex: 1;
|
||||
background: #1e1e1e;
|
||||
border: 1px solid #444;
|
||||
color: #f0f0f0;
|
||||
padding: 6px 10px;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 13px;
|
||||
border-radius: 3px;
|
||||
flex:1; background:var(--bg); border:1px solid var(--border);
|
||||
color:var(--text); padding:5px 8px;
|
||||
font-family:monospace; font-size:.82em; border-radius:4px;
|
||||
}
|
||||
|
||||
.terminal-input-area input:focus {
|
||||
outline: none;
|
||||
border-color: #667eea;
|
||||
box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
|
||||
}
|
||||
|
||||
.terminal::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
.terminal::-webkit-scrollbar-track {
|
||||
background: #2d2d2d;
|
||||
}
|
||||
|
||||
.terminal::-webkit-scrollbar-thumb {
|
||||
background: #555;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.terminal::-webkit-scrollbar-thumb:hover {
|
||||
background: #666;
|
||||
}
|
||||
|
||||
.line {
|
||||
margin-bottom: 5px;
|
||||
font-family: 'Courier New', monospace;
|
||||
}
|
||||
|
||||
.timestamp {
|
||||
color: #888;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.rx {
|
||||
color: #4fc3f7;
|
||||
}
|
||||
|
||||
.tx {
|
||||
color: #81c784;
|
||||
}
|
||||
|
||||
/* Modbus 파싱 스타일 */
|
||||
.terminal-input-area input:focus { outline:none; border-color:var(--accent); }
|
||||
/* Log line colors */
|
||||
.line { margin-bottom:3px; font-family:monospace; }
|
||||
.timestamp { color:#484f58; margin-right:8px; }
|
||||
.rx { color:#79c0ff; }
|
||||
.tx { color:#7ee787; }
|
||||
/* Modbus */
|
||||
.modbus-frame {
|
||||
display: inline-block;
|
||||
padding: 5px 10px;
|
||||
margin: 5px 0;
|
||||
background: #2a2a2a;
|
||||
border-radius: 5px;
|
||||
border-left: 3px solid #667eea;
|
||||
display:inline-block; padding:4px 8px; margin:3px 0;
|
||||
background:var(--card); border-radius:4px; border-left:2px solid var(--blue);
|
||||
}
|
||||
|
||||
.modbus-addr {
|
||||
color: #ffd54f;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.modbus-func {
|
||||
color: #81c784;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.modbus-data {
|
||||
color: #4fc3f7;
|
||||
}
|
||||
|
||||
.modbus-crc {
|
||||
color: #ff8a65;
|
||||
}
|
||||
|
||||
.modbus-label {
|
||||
color: #aaa;
|
||||
font-size: 11px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.modbus-error {
|
||||
color: #f44336;
|
||||
}
|
||||
|
||||
.send-panel {
|
||||
background: white;
|
||||
padding: 15px;
|
||||
border-radius: 8px;
|
||||
margin-top: 20px;
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
.send-panel h3 {
|
||||
color: #333;
|
||||
margin-bottom: 15px;
|
||||
font-size: 1.1em;
|
||||
border-bottom: 2px solid #667eea;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.send-controls {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.send-controls input {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.stats {
|
||||
background: white;
|
||||
padding: 15px;
|
||||
border-radius: 8px;
|
||||
margin-top: 20px;
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
.stats h3 {
|
||||
color: #333;
|
||||
margin-bottom: 15px;
|
||||
font-size: 1.1em;
|
||||
border-bottom: 2px solid #667eea;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.modbus-addr { color:var(--yellow); font-weight:bold; }
|
||||
.modbus-func { color:var(--accent); font-weight:bold; }
|
||||
.modbus-data { color:#79c0ff; }
|
||||
.modbus-crc { color:#ffa657; }
|
||||
.modbus-label { color:var(--muted); font-size:.85em; margin-left:4px; }
|
||||
.modbus-error { color:var(--red); }
|
||||
/* Send / Stats */
|
||||
.send-panel { margin-top:10px; }
|
||||
.send-panel h3, .stats h3 { color:var(--accent); border-color:var(--border); }
|
||||
.send-controls { display:flex; gap:8px; align-items:center; }
|
||||
.send-controls input { flex:1; }
|
||||
.stats { margin-top:10px; }
|
||||
.stat-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
||||
gap: 15px;
|
||||
display:grid;
|
||||
grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr));
|
||||
gap:8px;
|
||||
}
|
||||
|
||||
.stat-item {
|
||||
text-align: center;
|
||||
padding: 15px;
|
||||
background: #f8f9fa;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
color: #667eea;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ========== 반응형 디자인 ========== */
|
||||
@media (max-width: 768px) {
|
||||
body {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.container {
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.header {
|
||||
padding: 15px;
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 1.4em;
|
||||
}
|
||||
|
||||
.nav {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.nav a {
|
||||
padding: 12px 15px;
|
||||
font-size: 0.85em;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
padding: 10px 20px;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 769px) and (max-width: 1024px) {
|
||||
.header h1 {
|
||||
font-size: 1.6em;
|
||||
}
|
||||
|
||||
.nav a {
|
||||
padding: 13px 18px;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 25px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1025px) {
|
||||
.content {
|
||||
padding: 30px;
|
||||
}
|
||||
text-align:center; padding:11px; background:var(--card);
|
||||
border-radius:var(--r); border:1px solid var(--border);
|
||||
}
|
||||
.stat-value { font-size:1.4em; font-weight:bold; color:var(--accent); margin-bottom:3px; font-family:monospace; }
|
||||
.stat-label { font-size:.70em; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<div class="header">
|
||||
<h1>
|
||||
📟 Serial2 Terminal
|
||||
<span class="badge">GPIO 6/7</span>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<div class="nav">
|
||||
<div class="nav">
|
||||
<a href="/">📊 Monitor</a>
|
||||
<a href="/transmit">📤 Transmit</a>
|
||||
<a href="/graph">📈 Graph</a>
|
||||
@@ -544,7 +290,7 @@ const char serial2_terminal_html[] PROGMEM = R"rawliteral(
|
||||
<a href="/serial2" class="active">📟 Serial2</a>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<div class="content">
|
||||
<div class="control-panel">
|
||||
<div class="control-group">
|
||||
<div class="control-section">
|
||||
|
||||
Reference in New Issue
Block a user