pjgerrits commited on
Commit
3cea76a
·
1 Parent(s): 51064c1

update button style

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -94,24 +94,24 @@ st.sidebar.title("Step 1 - Add Markers")
94
  col1, col2, col3 = st.sidebar.columns(3)
95
 
96
  with col1:
97
- if st.button("Start", key="start-button"):
98
  st.session_state['point_type'] = 'start'
99
  st.sidebar.markdown('<div class="start-button">Start</div>', unsafe_allow_html=True)
100
 
101
  with col2:
102
- if st.button("Lost", key="lost-button"):
103
  st.session_state['point_type'] = 'lost'
104
  st.sidebar.markdown('<div class="lost-button">Lost</div>', unsafe_allow_html=True)
105
 
106
  with col3:
107
- if st.button("End", key="end-button"):
108
  st.session_state['point_type'] = 'end'
109
  st.sidebar.markdown('<div class="end-button">End</div>', unsafe_allow_html=True)
110
 
111
  st.sidebar.write(f"Selected Point Type: {st.session_state['point_type'].capitalize()}")
112
 
113
  # Reset button
114
- if st.sidebar.button("Reset Markers", key="reset-button"):
115
  st.session_state['points'] = {'start': None, 'lost': None, 'end': None}
116
  st.rerun()
117
 
@@ -139,7 +139,7 @@ if all(st.session_state['points'].values()) and not st.session_state['survey']:
139
  if st.sidebar.button("Proceed to Survey :question:"):
140
  st.session_state['survey'] = True
141
  else:
142
- st.sidebar.warning("Please add start, lost, and end points to proceed.")
143
  st.sidebar.title("Step 2 - Survey Questions")
144
 
145
  if st.session_state['survey']:
 
94
  col1, col2, col3 = st.sidebar.columns(3)
95
 
96
  with col1:
97
+ if st.button(":red[Start]", key="start-button", use_container_width=True):
98
  st.session_state['point_type'] = 'start'
99
  st.sidebar.markdown('<div class="start-button">Start</div>', unsafe_allow_html=True)
100
 
101
  with col2:
102
+ if st.button(":orange[Lost]", key="lost-button", use_container_width=True):
103
  st.session_state['point_type'] = 'lost'
104
  st.sidebar.markdown('<div class="lost-button">Lost</div>', unsafe_allow_html=True)
105
 
106
  with col3:
107
+ if st.button(":blue[End]", key="end-button", use_container_width=True):
108
  st.session_state['point_type'] = 'end'
109
  st.sidebar.markdown('<div class="end-button">End</div>', unsafe_allow_html=True)
110
 
111
  st.sidebar.write(f"Selected Point Type: {st.session_state['point_type'].capitalize()}")
112
 
113
  # Reset button
114
+ if st.sidebar.button(":red-background[:x: **Clear Markers**]", key="reset-button", use_container_width=True):
115
  st.session_state['points'] = {'start': None, 'lost': None, 'end': None}
116
  st.rerun()
117
 
 
139
  if st.sidebar.button("Proceed to Survey :question:"):
140
  st.session_state['survey'] = True
141
  else:
142
+ st.sidebar.warning("Please add start, lost, and end points before proceeding to the survey questions.")
143
  st.sidebar.title("Step 2 - Survey Questions")
144
 
145
  if st.session_state['survey']: