prakharg24 commited on
Commit
5ec3e89
·
verified ·
1 Parent(s): dd61bc5

Update my_pages/home.py

Browse files
Files changed (1) hide show
  1. my_pages/home.py +27 -1
my_pages/home.py CHANGED
@@ -2,6 +2,32 @@ import streamlit as st
2
  from utils import go_to
3
 
4
  def render():
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  st.markdown("<div style='text-align: center;'>", unsafe_allow_html=True)
6
  st.markdown(
7
  "<div style='font-size:24px; color:#3366cc; font-weight:bold;'>Explore the concepts:</div>",
@@ -18,7 +44,7 @@ def render():
18
  ]
19
 
20
  for text, page in sentences:
21
- if st.button(text):
22
  go_to(page)
23
 
24
  st.markdown("</div>", unsafe_allow_html=True)
 
2
  from utils import go_to
3
 
4
  def render():
5
+ st.markdown(
6
+ """
7
+ <style>
8
+ button[kind="primary"] {
9
+ background: none!important;
10
+ border: none;
11
+ padding: 0!important;
12
+ color: black !important;
13
+ text-decoration: none;
14
+ cursor: pointer;
15
+ border: none !important;
16
+ }
17
+ button[kind="primary"]:hover {
18
+ text-decoration: none;
19
+ color: black !important;
20
+ }
21
+ button[kind="primary"]:focus {
22
+ outline: none !important;
23
+ box-shadow: none !important;
24
+ color: black !important;
25
+ }
26
+ </style>
27
+ """,
28
+ unsafe_allow_html=True,
29
+ )
30
+
31
  st.markdown("<div style='text-align: center;'>", unsafe_allow_html=True)
32
  st.markdown(
33
  "<div style='font-size:24px; color:#3366cc; font-weight:bold;'>Explore the concepts:</div>",
 
44
  ]
45
 
46
  for text, page in sentences:
47
+ if st.button(text, type="primary"):
48
  go_to(page)
49
 
50
  st.markdown("</div>", unsafe_allow_html=True)