diff --git a/customize.css b/customize.css index e69de29..bd3b1ef 100644 --- a/customize.css +++ b/customize.css @@ -0,0 +1,86 @@ +.baseContainer { + max-width: 1000px; + margin: auto; + width: 90%; +} +#root .stApp { + background-color: #e2e2e2; + color: #000; +} +#root .stApp header { + display: none; +} +#root .stApp .appview-container { + inset: 0px 0 8rem; +} +#root .stApp .block-container { + padding: 0; +} +#root .stApp .stChatMessage { + margin: auto; + width: 100%; + align-items: center; + justify-items: center; + justify-content: center; + padding: 1rem; +} +#root .stApp div[data-testid=stChatMessageContent] { + width: 980px; + margin: 0; + flex-grow: 0; +} +#root .stApp .stChatFloatingInputContainer { + background: transparent; + width: 100%; +} +#root .stApp .stChatInputContainer { + max-width: 1000px; + margin: auto; + width: 90%; + border: #000 1px solid; + outline: none; +} +#root .stApp .stChatInputContainer div[data-baseweb="textarea"] { + border: none; +} +#root .stApp .stChatInputContainer textarea { + outline: none; +} +#root .stApp .stChatInputContainer .st-ah { + width: 100%; + border: none; +} +#root .example .chat-demo { + overflow: auto; + padding-top: 60px; + width: 1000px; + margin: auto; + text-align: center; +} +#root .example .logo { + width: 118px; + height: auto; +} +#root .example .case-list { + margin-top: 40px; + display: flex; + justify-content: center; +} +#root .example .case-col { + width: 300px; +} +#root .example .case-title { + font-size: 22px; + font-weight: 700; + color: #353535; + margin-bottom: 30px; +} +#root .example .case-item { + cursor: pointer; + margin: 20px 10px; + background-color: #fff; + border-radius: 5px; + color: #373737; + padding: 15px 10px; + font-size: 12px; +} diff --git a/web_demo.py b/web_demo.py index 66d8d7e..24434f3 100644 --- a/web_demo.py +++ b/web_demo.py @@ -1,11 +1,11 @@ import streamlit as st st.set_page_config( - page_title="web-demo", + page_title="灵创对话", page_icon=":web-demo:", layout="wide", ) -st.markdown(""" """, +st.markdown(""" """, unsafe_allow_html=True) # 初始化历史记录和past key values if "history" not in st.session_state: