Keiraj commited on
Commit
bb2ed69
·
verified ·
1 Parent(s): d34674e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +35 -8
app.py CHANGED
@@ -1,17 +1,44 @@
1
  import streamlit as st
2
 
3
  def main():
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  st.title("Popular Data Structures")
5
 
6
  if st.button("What are the most popular data structures?"):
7
- st.write("Here are some of the most popular data structures:")
8
- st.write("- Arrays")
9
- st.write("- Linked Lists")
10
- st.write("- Stacks")
11
- st.write("- Queues")
12
- st.write("- Hash Tables")
13
- st.write("- Trees (e.g., Binary Trees, BST, AVL Trees)")
14
- st.write("- Graphs")
15
 
16
  if __name__ == "__main__":
17
  main()
 
1
  import streamlit as st
2
 
3
  def main():
4
+ st.set_page_config(page_title="Popular Data Structures")
5
+
6
+ st.markdown(
7
+ """
8
+ <style>
9
+ body {
10
+ background-color: #FFDEE9;
11
+ text-align: center;
12
+ }
13
+ .stButton>button {
14
+ background-color: #FF1493;
15
+ color: white;
16
+ font-size: 18px;
17
+ border-radius: 10px;
18
+ width: 300px;
19
+ height: 50px;
20
+ display: block;
21
+ margin: auto;
22
+ }
23
+ .stMarkdown {
24
+ text-align: center;
25
+ }
26
+ </style>
27
+ """,
28
+ unsafe_allow_html=True
29
+ )
30
+
31
  st.title("Popular Data Structures")
32
 
33
  if st.button("What are the most popular data structures?"):
34
+ st.markdown("**Here are some of the most popular data structures:**")
35
+ st.markdown("- Arrays")
36
+ st.markdown("- Linked Lists")
37
+ st.markdown("- Stacks")
38
+ st.markdown("- Queues")
39
+ st.markdown("- Hash Tables")
40
+ st.markdown("- Trees (e.g., Binary Trees, BST, AVL Trees)")
41
+ st.markdown("- Graphs")
42
 
43
  if __name__ == "__main__":
44
  main()