Spaces:
Sleeping
Sleeping
[FIX] welcome: update intro text for target audience, style 'Let's get started...' with gradient, add page bottom padding globally
Browse files- app.py +1 -1
- assets/styles.css +20 -3
- tabs/tab0_welcome.py +5 -4
app.py
CHANGED
|
@@ -58,7 +58,7 @@ def load_css(file_path):
|
|
| 58 |
css_path = pathlib.Path("assets/styles.css")
|
| 59 |
load_css(css_path)
|
| 60 |
|
| 61 |
-
st.markdown('<h1 class="custom-title">CRRA <span class="crra-hl">Toolkit</span>: CDR Portfolio Optimization</h1>', unsafe_allow_html=True)
|
| 62 |
|
| 63 |
with st.sidebar:
|
| 64 |
selected = option_menu(
|
|
|
|
| 58 |
css_path = pathlib.Path("assets/styles.css")
|
| 59 |
load_css(css_path)
|
| 60 |
|
| 61 |
+
st.markdown('<h1 class="custom-title">CRRA <span class="crra-hl-toolkit">Toolkit</span>: CDR Portfolio Optimization</h1>', unsafe_allow_html=True)
|
| 62 |
|
| 63 |
with st.sidebar:
|
| 64 |
selected = option_menu(
|
assets/styles.css
CHANGED
|
@@ -38,7 +38,12 @@ input, textarea, select,
|
|
| 38 |
font-family: var(--font) !important;
|
| 39 |
}
|
| 40 |
|
| 41 |
-
/* ββ 3.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
.stSidebar {
|
| 43 |
background: var(--off-white) !important;
|
| 44 |
}
|
|
@@ -77,12 +82,18 @@ h1.custom-title {
|
|
| 77 |
font-style: italic;
|
| 78 |
line-height: 0.95em;
|
| 79 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
.crra-hl {
|
| 82 |
-
background: linear-gradient(90deg, var(--yellow) 0%, var(--green-light)
|
| 83 |
-webkit-text-fill-color: transparent;
|
| 84 |
background-clip: text;
|
| 85 |
-
|
| 86 |
}
|
| 87 |
|
| 88 |
.crra-heading {
|
|
@@ -624,6 +635,12 @@ h3.wt-2 { color: var(--green-dark) !important; border-left-color: var(--green-da
|
|
| 624 |
h3.wt-3 { color: var(--green) !important; border-left-color: var(--green); }
|
| 625 |
h3.wt-4 { color: var(--green-light) !important; border-left-color: var(--green-light); }
|
| 626 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 627 |
/* ββ 19. Tabs ββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 628 |
[data-baseweb="tab-list"] {
|
| 629 |
gap: 4px;
|
|
|
|
| 38 |
font-family: var(--font) !important;
|
| 39 |
}
|
| 40 |
|
| 41 |
+
/* ββ 3. Page bottom padding (avoids "stuck" feel on Hugging Face) ββ */
|
| 42 |
+
.block-container {
|
| 43 |
+
padding-bottom: 6rem !important;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
/* ββ 3b. Sidebar βββββββββββββββββββββββββββββββββββββββββββββ */
|
| 47 |
.stSidebar {
|
| 48 |
background: var(--off-white) !important;
|
| 49 |
}
|
|
|
|
| 82 |
font-style: italic;
|
| 83 |
line-height: 0.95em;
|
| 84 |
}
|
| 85 |
+
.crra-hl-toolkit{
|
| 86 |
+
background: linear-gradient(90deg, var(--yellow) 0%, var(--green-light) 99%);
|
| 87 |
+
-webkit-text-fill-color: transparent;
|
| 88 |
+
padding-right: 6px;
|
| 89 |
+
background-clip: text;
|
| 90 |
+
}
|
| 91 |
|
| 92 |
.crra-hl {
|
| 93 |
+
background: linear-gradient(90deg, var(--yellow) 0%, var(--green-light) 100%);
|
| 94 |
-webkit-text-fill-color: transparent;
|
| 95 |
background-clip: text;
|
| 96 |
+
font-size: 2.0vw !important;
|
| 97 |
}
|
| 98 |
|
| 99 |
.crra-heading {
|
|
|
|
| 635 |
h3.wt-3 { color: var(--green) !important; border-left-color: var(--green); }
|
| 636 |
h3.wt-4 { color: var(--green-light) !important; border-left-color: var(--green-light); }
|
| 637 |
|
| 638 |
+
p.wt-cta {
|
| 639 |
+
font-weight: 600 !important;
|
| 640 |
+
margin-top: 28px !important;
|
| 641 |
+
font-style: italic !important;
|
| 642 |
+
}
|
| 643 |
+
|
| 644 |
/* ββ 19. Tabs ββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 645 |
[data-baseweb="tab-list"] {
|
| 646 |
gap: 4px;
|
tabs/tab0_welcome.py
CHANGED
|
@@ -13,10 +13,10 @@ def render_tab():
|
|
| 13 |
|
| 14 |
st.markdown("""
|
| 15 |
<div class='custom-corps'>
|
| 16 |
-
This tool helps
|
| 17 |
</div>
|
| 18 |
-
<br>
|
| 19 |
-
""", unsafe_allow_html=True)
|
| 20 |
|
| 21 |
st.warning("""
|
| 22 |
While the tool offers multiple customization parameters and allows you to iterate on the results, it can never capture the full nuance and specificity of the resources and their availability in every single country.\n
|
|
@@ -49,6 +49,7 @@ def render_tab():
|
|
| 49 |
<li><b>Scenario comparison</b>: compare different scenarios based on the optimization results.</li>
|
| 50 |
</ol>
|
| 51 |
|
| 52 |
-
Letβs get started! Use the side tabs to navigate through the sections.
|
| 53 |
</div>
|
|
|
|
| 54 |
""", unsafe_allow_html=True)
|
|
|
|
| 13 |
|
| 14 |
st.markdown("""
|
| 15 |
<div class='custom-corps'>
|
| 16 |
+
This tool helps project teams working on a CRRA and the CDR-curious explore how to optimize carbon dioxide removal portfolios by adjusting resource usage and constraints.
|
| 17 |
</div>
|
| 18 |
+
<br>
|
| 19 |
+
""", unsafe_allow_html=True)
|
| 20 |
|
| 21 |
st.warning("""
|
| 22 |
While the tool offers multiple customization parameters and allows you to iterate on the results, it can never capture the full nuance and specificity of the resources and their availability in every single country.\n
|
|
|
|
| 49 |
<li><b>Scenario comparison</b>: compare different scenarios based on the optimization results.</li>
|
| 50 |
</ol>
|
| 51 |
|
| 52 |
+
<p class="wt-cta"><span class="crra-hl">Letβs get started!</span> Use the side tabs to navigate through the sections.</p>
|
| 53 |
</div>
|
| 54 |
+
<div style="height: 4rem;"></div>
|
| 55 |
""", unsafe_allow_html=True)
|