Eric Botti commited on
Commit
184f405
·
1 Parent(s): 2f589ab

added footer

Browse files
Files changed (2) hide show
  1. .streamlit/config.toml +1 -1
  2. src/app.py +15 -1
.streamlit/config.toml CHANGED
@@ -1,7 +1,7 @@
1
  [theme]
2
  base="dark"
3
  font="monospace"
4
- primaryColor="#3dd56d"
5
 
6
  [runner]
7
  magicEnabled=false
 
1
  [theme]
2
  base="dark"
3
  font="monospace"
4
+ primaryColor="#2e9aff"
5
 
6
  [runner]
7
  magicEnabled=false
src/app.py CHANGED
@@ -41,10 +41,10 @@ class StreamlitGame(Game):
41
 
42
  def run_game(self):
43
  """Starts the game."""
 
44
  if session_state.game_state == "game_start":
45
  self.game_message(fetch_prompt("game_rules"))
46
  session_state.game_state = "setup_round"
47
-
48
  if session_state.game_state == "setup_round":
49
  self.setup_round()
50
  session_state.game_state = "animal_description"
@@ -146,3 +146,17 @@ if user_input:
146
  st.session_state.game.run_game()
147
 
148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
 
42
  def run_game(self):
43
  """Starts the game."""
44
+
45
  if session_state.game_state == "game_start":
46
  self.game_message(fetch_prompt("game_rules"))
47
  session_state.game_state = "setup_round"
 
48
  if session_state.game_state == "setup_round":
49
  self.setup_round()
50
  session_state.game_state = "animal_description"
 
146
  st.session_state.game.run_game()
147
 
148
 
149
+ footer="""<style>
150
+ .footer {
151
+ position: fixed;
152
+ left: 0;
153
+ bottom: 0;
154
+ width: 100%;
155
+ text-align: center;
156
+ }
157
+ </style>
158
+ <div class="footer">
159
+ <p>Created by <a href="https://huggingface.co/ericbotti" target="_blank">Eric Botti</a></p>
160
+ </div>
161
+ """
162
+ st.markdown(footer, unsafe_allow_html=True)