style: Update color variables in CSS and improve scenario prompts in templates
This commit is contained in:
@@ -1,17 +1,17 @@
|
|||||||
:root {
|
:root {
|
||||||
--color-background: #f4f5f7;
|
--color-background: #f4f5f7;
|
||||||
--color-surface: #ffffff;
|
--color-surface: #ffffff;
|
||||||
--color-text-primary: #1f2933;
|
--color-text-primary: #2a1f33;
|
||||||
--color-text-secondary: #475569;
|
--color-text-secondary: #624769;
|
||||||
--color-text-muted: #64748b;
|
--color-text-muted: #64748b;
|
||||||
--color-text-subtle: #94a3b8;
|
--color-text-subtle: #94a3b8;
|
||||||
--color-text-invert: #ffffff;
|
--color-text-invert: #ffffff;
|
||||||
--color-text-dark: #0f172a;
|
--color-text-dark: #0f172a;
|
||||||
--color-text-strong: #111827;
|
--color-text-strong: #111827;
|
||||||
--color-primary: #0b3d91;
|
--color-primary: #5f320d;
|
||||||
--color-primary-strong: #2563eb;
|
--color-primary-strong: #7e4c13;
|
||||||
--color-primary-stronger: #1d4ed8;
|
--color-primary-stronger: #837c15;
|
||||||
--color-accent: #38bdf8;
|
--color-accent: #bff838;
|
||||||
--color-border: #e2e8f0;
|
--color-border: #e2e8f0;
|
||||||
--color-border-strong: #cbd5e1;
|
--color-border-strong: #cbd5e1;
|
||||||
--color-highlight: #eef2ff;
|
--color-highlight: #eef2ff;
|
||||||
@@ -83,7 +83,7 @@ body {
|
|||||||
height: 44px;
|
height: 44px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
135deg,
|
0deg,
|
||||||
var(--color-primary-stronger),
|
var(--color-primary-stronger),
|
||||||
var(--color-accent)
|
var(--color-accent)
|
||||||
);
|
);
|
||||||
@@ -143,6 +143,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.app-main {
|
.app-main {
|
||||||
|
background-color: var(--color-background);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|||||||
@@ -38,7 +38,8 @@ endblock %} {% block content %}
|
|||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="empty-state">
|
<p class="empty-state">
|
||||||
No scenarios available. Create a scenario before adding parameters.
|
No scenarios available. Create a <a href="scenarios">scenario</a> before
|
||||||
|
adding parameters.
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -30,11 +30,7 @@ title %}Consumption · CalMiner{% endblock %} {% block content %}
|
|||||||
scenario", placeholder_disabled=True ) }}
|
scenario", placeholder_disabled=True ) }}
|
||||||
<label for="consumption-form-unit">
|
<label for="consumption-form-unit">
|
||||||
Unit
|
Unit
|
||||||
<select
|
<select id="consumption-form-unit" name="unit_name" required>
|
||||||
id="consumption-form-unit"
|
|
||||||
name="unit_name"
|
|
||||||
required
|
|
||||||
>
|
|
||||||
<option value="" disabled selected>Select unit</option>
|
<option value="" disabled selected>Select unit</option>
|
||||||
{% for unit in unit_options %}
|
{% for unit in unit_options %}
|
||||||
<option value="{{ unit.name }}" data-symbol="{{ unit.symbol }}">
|
<option value="{{ unit.name }}" data-symbol="{{ unit.symbol }}">
|
||||||
@@ -43,11 +39,7 @@ title %}Consumption · CalMiner{% endblock %} {% block content %}
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input id="consumption-form-unit-symbol" type="hidden" name="unit_symbol" />
|
||||||
id="consumption-form-unit-symbol"
|
|
||||||
type="hidden"
|
|
||||||
name="unit_symbol"
|
|
||||||
/>
|
|
||||||
<label for="consumption-form-amount">
|
<label for="consumption-form-amount">
|
||||||
Amount
|
Amount
|
||||||
<input
|
<input
|
||||||
@@ -71,7 +63,7 @@ title %}Consumption · CalMiner{% endblock %} {% block content %}
|
|||||||
</form>
|
</form>
|
||||||
{{ feedback("consumption-feedback") }} {% else %}
|
{{ feedback("consumption-feedback") }} {% else %}
|
||||||
<p class="empty-state">
|
<p class="empty-state">
|
||||||
Create a scenario before adding consumption records.
|
Create a <a href="scenarios">scenario</a> before adding consumption records.
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -56,18 +56,10 @@ title %}Costs · CalMiner{% endblock %} {% block content %}
|
|||||||
<form id="capex-form" class="form-grid">
|
<form id="capex-form" class="form-grid">
|
||||||
{{ select_field( "Scenario", "capex-form-scenario", name="scenario_id",
|
{{ select_field( "Scenario", "capex-form-scenario", name="scenario_id",
|
||||||
options=scenarios, required=True, placeholder="Select a scenario",
|
options=scenarios, required=True, placeholder="Select a scenario",
|
||||||
placeholder_disabled=True ) }}
|
placeholder_disabled=True ) }} {{ select_field( "Currency",
|
||||||
{{ select_field(
|
"capex-form-currency", name="currency_code", options=currency_options,
|
||||||
"Currency",
|
required=True, placeholder="Select currency", placeholder_disabled=True,
|
||||||
"capex-form-currency",
|
value_attr="id", label_attr="name" ) }}
|
||||||
name="currency_code",
|
|
||||||
options=currency_options,
|
|
||||||
required=True,
|
|
||||||
placeholder="Select currency",
|
|
||||||
placeholder_disabled=True,
|
|
||||||
value_attr="id",
|
|
||||||
label_attr="name"
|
|
||||||
) }}
|
|
||||||
<label for="capex-form-amount">
|
<label for="capex-form-amount">
|
||||||
Amount
|
Amount
|
||||||
<input
|
<input
|
||||||
@@ -100,18 +92,10 @@ title %}Costs · CalMiner{% endblock %} {% block content %}
|
|||||||
<form id="opex-form" class="form-grid">
|
<form id="opex-form" class="form-grid">
|
||||||
{{ select_field( "Scenario", "opex-form-scenario", name="scenario_id",
|
{{ select_field( "Scenario", "opex-form-scenario", name="scenario_id",
|
||||||
options=scenarios, required=True, placeholder="Select a scenario",
|
options=scenarios, required=True, placeholder="Select a scenario",
|
||||||
placeholder_disabled=True ) }}
|
placeholder_disabled=True ) }} {{ select_field( "Currency",
|
||||||
{{ select_field(
|
"opex-form-currency", name="currency_code", options=currency_options,
|
||||||
"Currency",
|
required=True, placeholder="Select currency", placeholder_disabled=True,
|
||||||
"opex-form-currency",
|
value_attr="id", label_attr="name" ) }}
|
||||||
name="currency_code",
|
|
||||||
options=currency_options,
|
|
||||||
required=True,
|
|
||||||
placeholder="Select currency",
|
|
||||||
placeholder_disabled=True,
|
|
||||||
value_attr="id",
|
|
||||||
label_attr="name"
|
|
||||||
) }}
|
|
||||||
<label for="opex-form-amount">
|
<label for="opex-form-amount">
|
||||||
Amount
|
Amount
|
||||||
<input
|
<input
|
||||||
|
|||||||
@@ -15,7 +15,9 @@ block content %}
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="empty-state">Create a scenario to view equipment inventory.</p>
|
<p class="empty-state">
|
||||||
|
Create a <a href="scenarios">scenario</a> to view equipment inventory.
|
||||||
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div id="equipment-empty" class="empty-state">
|
<div id="equipment-empty" class="empty-state">
|
||||||
Choose a scenario to review the equipment list.
|
Choose a scenario to review the equipment list.
|
||||||
@@ -62,7 +64,9 @@ block content %}
|
|||||||
</form>
|
</form>
|
||||||
<p id="equipment-feedback" class="feedback hidden" role="status"></p>
|
<p id="equipment-feedback" class="feedback hidden" role="status"></p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="empty-state">Create a scenario before managing equipment.</p>
|
<p class="empty-state">
|
||||||
|
Create a <a href="scenarios">scenario</a> before managing equipment.
|
||||||
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,9 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="empty-state">Create a scenario to view maintenance entries.</p>
|
<p class="empty-state">
|
||||||
|
Create a <a href="scenarios">scenario</a> to view maintenance entries.
|
||||||
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div id="maintenance-empty" class="empty-state">
|
<div id="maintenance-empty" class="empty-state">
|
||||||
Choose a scenario to review upcoming or completed maintenance.
|
Choose a scenario to review upcoming or completed maintenance.
|
||||||
@@ -95,7 +97,8 @@
|
|||||||
<p id="maintenance-feedback" class="feedback hidden" role="status"></p>
|
<p id="maintenance-feedback" class="feedback hidden" role="status"></p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="empty-state">
|
<p class="empty-state">
|
||||||
Create a scenario before managing maintenance entries.
|
Create a <a href="scenarios">scenario</a> before managing maintenance
|
||||||
|
entries.
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -15,7 +15,9 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="empty-state">Create a scenario to view production output data.</p>
|
<p class="empty-state">
|
||||||
|
Create a <a href="scenarios">scenario</a> to view production output data.
|
||||||
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div id="production-empty" class="empty-state">
|
<div id="production-empty" class="empty-state">
|
||||||
Choose a scenario to review its production output.
|
Choose a scenario to review its production output.
|
||||||
@@ -81,7 +83,9 @@
|
|||||||
</form>
|
</form>
|
||||||
<p id="production-feedback" class="feedback hidden" role="status"></p>
|
<p id="production-feedback" class="feedback hidden" role="status"></p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="empty-state">Create a scenario before adding production output.</p>
|
<p class="empty-state">
|
||||||
|
Create a <a href="scenarios">scenario</a> before adding production output.
|
||||||
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="empty-state">Create a scenario before running simulations.</p>
|
<p class="empty-state">Create a <a href="scenarios">scenario</a> before running simulations.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user