from typing import Sequence import streamlit as st import streamlit.components.v1 as components with open("static/header.html", 'r', encoding='utf-8') as f: header_html = f.read() with open("static/header_style.css", 'r', encoding='utf-8') as f: embeds_style_css = f.read() with open("static/header_animate.js") as f: header_animate_js = f.read() with open("static/content_style.css", 'r', encoding='utf-8') as f: content_style_css = f.read() with open("static/meta.html", 'r', encoding='utf-8') as f: meta_html = f.read() with open("static/tabs.html", 'r', encoding='utf-8') as f: tabs_html = f.read() with open("static/footer.html", 'r', encoding='utf-8') as f: footer_html = f.read() def make_header(): components.html(f"{header_html}", height=260) st.markdown(meta_html, unsafe_allow_html=True) st.markdown(f"", unsafe_allow_html=True) # apply css to the rest of the document st.markdown( '', unsafe_allow_html=True, ) def make_tabs(): components.html(f"{tabs_html}", height=850, scrolling=True) def make_footer(): components.html(f"{footer_html}", height=110) def content_title(title: str, vspace_before: int = 0, vspace_after: int = 0): st.markdown(f'