# app/ui_streamlit.py # Ensure project root is on sys.path when Streamlit runs this as a script import sys, pathlib ROOT = pathlib.Path(__file__).resolve().parents[1] if str(ROOT) not in sys.path: sys.path.insert(0, str(ROOT)) import os, json from pathlib import Path from datetime import date, datetime import streamlit as st from app.main import get_env, ensure_index_exists from app.search import search # ── Page config ─────────────────────────────────────────────────────────────── st.set_page_config(page_title="Grants Discovery App By Lupo", page_icon="🧭", layout="wide") # ── THEME / CSS — single, unified block (dark app; readable controls) ───────── st.markdown(""" """, unsafe_allow_html=True) # ── Hero ────────────────────────────────────────────────────────────────────── st.markdown("""
Find capacity-building grants fast.