Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,8 +8,8 @@ BASE_DIR = Path(__file__).parent # -> Landing_Page/
|
|
| 8 |
ASSETS = BASE_DIR / "assets" # -> Landing_Page/assets/
|
| 9 |
|
| 10 |
# ---------- CONTROLS (tweak these) ----------
|
| 11 |
-
HERO_LOGO_SIZE =
|
| 12 |
-
CARD_THUMB_HEIGHT =
|
| 13 |
OPEN_IN_NEW_TAB = False # set True if you want links to open in a new tab
|
| 14 |
|
| 15 |
# ---------- CONFIG ----------
|
|
@@ -140,10 +140,12 @@ def app_card(app: dict) -> str:
|
|
| 140 |
{img_or_placeholder(app['thumb_path'], app['title'])}
|
| 141 |
<h3>{escape(app['title'])}</h3>
|
| 142 |
<p>{escape(app['blurb'])}</p>
|
| 143 |
-
<
|
|
|
|
|
|
|
| 144 |
</div>
|
| 145 |
"""
|
| 146 |
-
|
| 147 |
html_grid = f"<div class='grid'>{app_card(APP1)}{app_card(APP2)}</div>"
|
| 148 |
st.markdown(html_grid, unsafe_allow_html=True)
|
| 149 |
|
|
|
|
| 8 |
ASSETS = BASE_DIR / "assets" # -> Landing_Page/assets/
|
| 9 |
|
| 10 |
# ---------- CONTROLS (tweak these) ----------
|
| 11 |
+
HERO_LOGO_SIZE = 100 # px (company logo size in the hero)
|
| 12 |
+
CARD_THUMB_HEIGHT = 160 # px (height of each app image)
|
| 13 |
OPEN_IN_NEW_TAB = False # set True if you want links to open in a new tab
|
| 14 |
|
| 15 |
# ---------- CONFIG ----------
|
|
|
|
| 140 |
{img_or_placeholder(app['thumb_path'], app['title'])}
|
| 141 |
<h3>{escape(app['title'])}</h3>
|
| 142 |
<p>{escape(app['blurb'])}</p>
|
| 143 |
+
<div class="cta">Click to Run APP:
|
| 144 |
+
<a class="btn" href="{escape(app['url'])}" target="{target}">Open {escape(app['title'])}</a>
|
| 145 |
+
</div>
|
| 146 |
</div>
|
| 147 |
"""
|
| 148 |
+
|
| 149 |
html_grid = f"<div class='grid'>{app_card(APP1)}{app_card(APP2)}</div>"
|
| 150 |
st.markdown(html_grid, unsafe_allow_html=True)
|
| 151 |
|