Initial setup
This commit is contained in:
commit
715285c0a9
15
README.md
Normal file
15
README.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Basic Streamlit Template
|
||||||
|
|
||||||
|
A minimal Streamlit app with sidebar navigation and two-column layout.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- Page configuration with title and icon
|
||||||
|
- Sidebar with user input
|
||||||
|
- Two-column responsive layout
|
||||||
|
- Quick start guide
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
```bash
|
||||||
|
streamlitctl create myapp --from-template basic
|
||||||
|
streamlitctl start myapp
|
||||||
|
```
|
||||||
48
app.py
Normal file
48
app.py
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
"""
|
||||||
|
testforge2 - Basic Streamlit App
|
||||||
|
Created with Streamlit Forge
|
||||||
|
"""
|
||||||
|
import streamlit as st
|
||||||
|
|
||||||
|
st.set_page_config(
|
||||||
|
page_title="testforge2",
|
||||||
|
page_icon="🚀",
|
||||||
|
layout="wide"
|
||||||
|
)
|
||||||
|
|
||||||
|
st.title("testforge2")
|
||||||
|
|
||||||
|
st.markdown("""
|
||||||
|
Welcome to your new Streamlit app!
|
||||||
|
|
||||||
|
Edit this file to customize your application.
|
||||||
|
""")
|
||||||
|
|
||||||
|
# Sidebar
|
||||||
|
st.sidebar.header("Settings")
|
||||||
|
name = st.sidebar.text_input("Your name", "World")
|
||||||
|
|
||||||
|
# Main content
|
||||||
|
st.header(f"Hello, {name}!")
|
||||||
|
|
||||||
|
col1, col2 = st.columns(2)
|
||||||
|
|
||||||
|
with col1:
|
||||||
|
st.subheader("Quick Start")
|
||||||
|
st.markdown("""
|
||||||
|
1. Edit `app.py` to add your content
|
||||||
|
2. Add dependencies to `requirements.txt`
|
||||||
|
3. Run `streamlitctl restart testforge2`
|
||||||
|
""")
|
||||||
|
|
||||||
|
with col2:
|
||||||
|
st.subheader("Resources")
|
||||||
|
st.markdown("""
|
||||||
|
- [Streamlit Docs](https://docs.streamlit.io)
|
||||||
|
- [Streamlit Gallery](https://streamlit.io/gallery)
|
||||||
|
- [Streamlit Forge Guide](/docs)
|
||||||
|
""")
|
||||||
|
|
||||||
|
# Footer
|
||||||
|
st.markdown("---")
|
||||||
|
st.caption("Created with Streamlit Forge | SecuBox")
|
||||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
streamlit>=1.30.0
|
||||||
Loading…
Reference in New Issue
Block a user