Sathwikchowdary commited on
Commit
756cac5
·
verified ·
1 Parent(s): 4d168c2

Update pages/Info _of_Image.py

Browse files
Files changed (1) hide show
  1. pages/Info _of_Image.py +9 -3
pages/Info _of_Image.py CHANGED
@@ -13,7 +13,7 @@ custom_css = """
13
  background-position: center;
14
  background-repeat: no-repeat;
15
  background-attachment: fixed;
16
- color: blue; /* Ensures all text is readable */
17
  }
18
  h2, h3 {
19
  color: #FFD700; /* Gold color for headings */
@@ -27,8 +27,14 @@ custom_css = """
27
  padding: 10px 20px;
28
  margin: 10px 5px;
29
  border-radius: 10px;
30
- border: black;
31
  cursor: pointer;
 
 
 
 
 
 
32
  }
33
  </style>
34
  """
@@ -49,7 +55,7 @@ st.markdown(
49
  col1, col2, col3 = st.columns(3)
50
  with col1:
51
  if st.button("Colour Space"):
52
- st.markdown("<h3 style='text-align: left; color:Gold;'>Colour Space</h3>", unsafe_allow_html=True)
53
  st.markdown(
54
  "<p style='font-size: 16px; color: White;'>"
55
  "Colour spaces define how colors are represented in an image. Common spaces include RGB (Red, Green, Blue), HSV (Hue, Saturation, Value), and LAB. "
 
13
  background-position: center;
14
  background-repeat: no-repeat;
15
  background-attachment: fixed;
16
+ color: white; /* Ensures all text is readable */
17
  }
18
  h2, h3 {
19
  color: #FFD700; /* Gold color for headings */
 
27
  padding: 10px 20px;
28
  margin: 10px 5px;
29
  border-radius: 10px;
30
+ border: none;
31
  cursor: pointer;
32
+ background-color: #FF0000; /* Red button color */
33
+ color: white;
34
+ transition: background-color 0.3s ease; /* Smooth transition */
35
+ }
36
+ button:hover {
37
+ background-color: #CC0000; /* Darker red when hovered */
38
  }
39
  </style>
40
  """
 
55
  col1, col2, col3 = st.columns(3)
56
  with col1:
57
  if st.button("Colour Space"):
58
+ st.markdown("<h3 style='text-align: left; color: Gold;'>Colour Space</h3>", unsafe_allow_html=True)
59
  st.markdown(
60
  "<p style='font-size: 16px; color: White;'>"
61
  "Colour spaces define how colors are represented in an image. Common spaces include RGB (Red, Green, Blue), HSV (Hue, Saturation, Value), and LAB. "