Spaces:
Sleeping
Sleeping
Aryanshh commited on
Commit ·
04438ae
1
Parent(s): 8c27c8f
fix: Restore Command Console logic and finalize side-by-side layout
Browse files- dashboard/index.html +54 -21
dashboard/index.html
CHANGED
|
@@ -67,35 +67,68 @@
|
|
| 67 |
|
| 68 |
<section class="control-panel card">
|
| 69 |
<h3><span class="i-icon">ℹ️</span> Command Console</h3>
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
<
|
| 73 |
-
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
</div>
|
| 76 |
</div>
|
| 77 |
-
<p class="limit">Limit: <span id="carbon-limit">1000</span>kg</p>
|
| 78 |
-
</div>
|
| 79 |
|
| 80 |
-
|
| 81 |
-
<h3>Capital Balance</h3>
|
| 82 |
-
<div class="value-large">$<span id="cash-value">0</span></div>
|
| 83 |
-
<div class="trend" id="cash-trend">Fulfillment: <span id="orders-done">0</span></div>
|
| 84 |
-
</div>
|
| 85 |
|
| 86 |
-
|
| 87 |
-
<
|
| 88 |
-
|
| 89 |
-
<div class="
|
| 90 |
-
<
|
| 91 |
-
|
|
|
|
|
|
|
|
|
|
| 92 |
</div>
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
</div>
|
| 97 |
</div>
|
| 98 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
</section>
|
| 100 |
|
| 101 |
<section class="details-section">
|
|
|
|
| 67 |
|
| 68 |
<section class="control-panel card">
|
| 69 |
<h3><span class="i-icon">ℹ️</span> Command Console</h3>
|
| 70 |
+
|
| 71 |
+
<div class="operation-sections">
|
| 72 |
+
<!-- Section 1: Logistics -->
|
| 73 |
+
<div id="section-order" class="op-section">
|
| 74 |
+
<h4>📦 Supply Logistics</h4>
|
| 75 |
+
<div class="op-row">
|
| 76 |
+
<select id="part-select">
|
| 77 |
+
<option value="chips">Order Microchips</option>
|
| 78 |
+
<option value="sensors">Order Sensors</option>
|
| 79 |
+
</select>
|
| 80 |
+
<select id="mode-select">
|
| 81 |
+
<option value="sea">SEA ($50, 10d, 0.5kg)</option>
|
| 82 |
+
<option value="rail">RAIL ($125, 5d, 2.5kg)</option>
|
| 83 |
+
<option value="air">AIR ($250, 2d, 10kg)</option>
|
| 84 |
+
</select>
|
| 85 |
+
<button onclick="execute('order_parts')" class="btn btn-primary small">Order</button>
|
| 86 |
</div>
|
| 87 |
</div>
|
|
|
|
|
|
|
| 88 |
|
| 89 |
+
<hr class="divider">
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
+
<!-- Section 2: Manufacturing -->
|
| 92 |
+
<div id="section-produce" class="op-section">
|
| 93 |
+
<h4>🏭 Manufacturing</h4>
|
| 94 |
+
<div class="op-row">
|
| 95 |
+
<select id="product-select">
|
| 96 |
+
<option value="EcoPhone">Produce EcoPhone</option>
|
| 97 |
+
<option value="GreenTab">Produce GreenTab</option>
|
| 98 |
+
</select>
|
| 99 |
+
<button onclick="execute('produce')" class="btn btn-primary small">Start Run</button>
|
| 100 |
</div>
|
| 101 |
+
</div>
|
| 102 |
+
|
| 103 |
+
<hr class="divider">
|
| 104 |
+
|
| 105 |
+
<!-- Section 3: ESG / Offsetting -->
|
| 106 |
+
<div id="section-offset" class="op-section">
|
| 107 |
+
<h4>🌳 ESG Strategy</h4>
|
| 108 |
+
<div class="op-row">
|
| 109 |
+
<span class="op-text">Carbon Offset Purchase (100 units)</span>
|
| 110 |
+
<button onclick="execute('offset')" class="btn btn-primary small">Buy Offset</button>
|
| 111 |
</div>
|
| 112 |
</div>
|
| 113 |
</div>
|
| 114 |
+
|
| 115 |
+
<div id="impact-preview" class="impact-preview">
|
| 116 |
+
<span class="preview-label">Live Estimate:</span>
|
| 117 |
+
<span id="preview-cost" class="val">$0</span>
|
| 118 |
+
<span class="sep">|</span>
|
| 119 |
+
<span id="preview-carbon" class="val">0kg CO2</span>
|
| 120 |
+
</div>
|
| 121 |
+
|
| 122 |
+
<div class="time-controls">
|
| 123 |
+
<button id="skip-btn" class="btn btn-secondary">Next Day</button>
|
| 124 |
+
<button id="trigger-btn" class="btn btn-danger">Suez Jam</button>
|
| 125 |
+
<button id="reset-btn" class="btn btn-outline">Reset</button>
|
| 126 |
+
</div>
|
| 127 |
+
|
| 128 |
+
<div id="news-alert" class="news-alert hidden">
|
| 129 |
+
<span class="warning-icon">⚠️</span>
|
| 130 |
+
<span id="news-text"></span>
|
| 131 |
+
</div>
|
| 132 |
</section>
|
| 133 |
|
| 134 |
<section class="details-section">
|