|
import streamlit as st |
|
|
|
|
|
st.set_page_config(page_title="Hybrid Solution", layout="wide") |
|
|
|
|
|
nav_html = """ |
|
<div style="position:fixed; top:0; left:0; width:100%; background-color:#262730; color:white; padding:10px; z-index:9999; text-align:center;"> |
|
<h3 style="display:inline-block; margin:0 20px;">My App Navigation</h3> |
|
<a href="#section1" style="color:white; margin:0 10px;">Section 1</a> |
|
<a href="#section2" style="color:white; margin:0 10px;">Section 2</a> |
|
<a href="#section3" style="color:white; margin:0 10px;">Section 3</a> |
|
</div> |
|
<div style="height:50px;"></div> |
|
""" |
|
|
|
|
|
st.components.v1.html(nav_html, height=50) |
|
|
|
|
|
st.title("My Application") |
|
|
|
st.header("Section 1", anchor="section1") |
|
st.write("This is section 1 content") |
|
for i in range(5): |
|
st.write(f"Content line {i}") |
|
|
|
st.header("Section 2", anchor="section2") |
|
st.write("This is section 2 content") |
|
for i in range(5): |
|
st.write(f"Content line {i}") |
|
|
|
st.header("Section 3", anchor="section3") |
|
st.write("This is section 3 content") |
|
for i in range(5): |
|
st.write(f"Content line {i}") |
|
|
|
st.header("Section 4", anchor="section4") |
|
st.write("This is section 1 content") |
|
for i in range(5): |
|
st.write(f"Content line {i}") |
|
|
|
st.header("Section 5", anchor="section5") |
|
st.write("This is section 2 content") |
|
for i in range(5): |
|
st.write(f"Content line {i}") |
|
|
|
st.header("Section 6", anchor="section6") |
|
st.write("This is section 3 content") |
|
for i in range(5): |
|
st.write(f"Content line {i}") |
|
|
|
st.header("Section 7", anchor="section7") |
|
st.write("This is section 1 content") |
|
for i in range(5): |
|
st.write(f"Content line {i}") |
|
|
|
st.header("Section 8", anchor="section8") |
|
st.write("This is section 2 content") |
|
for i in range(5): |
|
st.write(f"Content line {i}") |
|
|
|
st.header("Section 9", anchor="section9") |
|
st.write("This is section 3 content") |
|
for i in range(5): |
|
st.write(f"Content line {i}") |
|
|
|
|
|
|
|
|
|
st.logo(image="images/menu_book_60dp_75FBFD.png") |
|
st.sidebar.title("SBS V2.0 mapper") |
|
st.sidebar.subheader("(work in progress)") |
|
st.sidebar.text("Demo by JA-RAD") |
|
|
|
|
|
type_text_page = st.Page( |
|
page="pages/type_text.py", |
|
title="DEMO (work in progress)", |
|
icon=":material/keyboard:", |
|
default=True,) |
|
|
|
|
|
pg = st.navigation(pages=[type_text_page]) |
|
|
|
pg.run() |