shingguy1 commited on
Commit
c760680
·
verified ·
1 Parent(s): 959628a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -16
app.py CHANGED
@@ -94,7 +94,7 @@ st.set_page_config(
94
  layout="centered"
95
  )
96
 
97
- # Custom CSS for kid-friendly styling with improved readability
98
  st.markdown("""
99
  <style>
100
  .main {
@@ -103,8 +103,8 @@ st.markdown("""
103
  border-radius: 15px;
104
  }
105
  .stButton>button {
106
- background-color: #e6f3ff;
107
- color: #333;
108
  border-radius: 10px;
109
  border: 2px solid #ff9999;
110
  font-size: 18px;
@@ -113,38 +113,38 @@ st.markdown("""
113
  transition: all 0.3s;
114
  }
115
  .stButton>button:hover {
116
- background-color: #e6f3ff;
117
- color: white;
118
  transform: scale(1.05);
119
  }
120
  .stFileUploader {
121
- background-color: #e6f3ff;
122
  border: 2px dashed #ffca28;
123
  border-radius: 10px;
124
  padding: 10px;
125
  }
126
  /* Style for the file uploader's inner text */
127
  .stFileUploader div[role="button"] {
128
- background-color: #333333; /* Darker background for contrast */
129
  border-radius: 10px;
130
  padding: 10px;
131
  }
132
  .stFileUploader div[role="button"] > div {
133
- color: #1e3a8a !important; /* Dark Blue */
134
  font-size: 16px;
135
  }
136
  /* Style for the "Browse files" button inside the file uploader */
137
  .stFileUploader button {
138
- background-color: #1e3a8a !important; /* Dark Blue */
139
- color: #ffffff !important; /* White text for readability */
140
  border-radius: 8px !important;
141
  border: 1px solid #ffb300 !important;
142
  padding: 5px 15px !important;
143
  font-weight: bold !important;
144
  }
145
  .stFileUploader button:hover {
146
- background-color: #1e3a8a !important; /* Dark Blue */
147
- color: #ffffff !important;
148
  }
149
  .stImage {
150
  border: 3px solid #81c784;
@@ -158,19 +158,19 @@ st.markdown("""
158
  text-align: center;
159
  font-size: 24px;
160
  font-weight: bold;
161
- color: #333;
162
  margin-bottom: 10px;
163
  }
164
  .caption-box, .story-box {
165
- background-color: #1e3a8a;
166
  padding: 15px;
167
  border-radius: 10px;
168
  border: 2px solid #d4e157;
169
  margin-bottom: 20px;
170
- color: #1e3a8a; /* Dark blue text for better readability */
171
  }
172
  .caption-box b, .story-box b {
173
- color: #1e3a8a; /* Ensure the bold text (header) is also dark blue */
174
  }
175
  </style>
176
  """, unsafe_allow_html=True)
 
94
  layout="centered"
95
  )
96
 
97
+ # Custom CSS for kid-friendly styling with black text
98
  st.markdown("""
99
  <style>
100
  .main {
 
103
  border-radius: 15px;
104
  }
105
  .stButton>button {
106
+ background-color: #ffcccb;
107
+ color: #000000; /* Black text */
108
  border-radius: 10px;
109
  border: 2px solid #ff9999;
110
  font-size: 18px;
 
113
  transition: all 0.3s;
114
  }
115
  .stButton>button:hover {
116
+ background-color: #ff9999;
117
+ color: #ffffff; /* White text on hover for contrast */
118
  transform: scale(1.05);
119
  }
120
  .stFileUploader {
121
+ background-color: #fff3cd;
122
  border: 2px dashed #ffca28;
123
  border-radius: 10px;
124
  padding: 10px;
125
  }
126
  /* Style for the file uploader's inner text */
127
  .stFileUploader div[role="button"] {
128
+ background-color: #cccccc; /* Light gray background for contrast with black text */
129
  border-radius: 10px;
130
  padding: 10px;
131
  }
132
  .stFileUploader div[role="button"] > div {
133
+ color: #000000 !important; /* Black text */
134
  font-size: 16px;
135
  }
136
  /* Style for the "Browse files" button inside the file uploader */
137
  .stFileUploader button {
138
+ background-color: #ffca28 !important; /* Yellow button background */
139
+ color: #000000 !important; /* Black text */
140
  border-radius: 8px !important;
141
  border: 1px solid #ffb300 !important;
142
  padding: 5px 15px !important;
143
  font-weight: bold !important;
144
  }
145
  .stFileUploader button:hover {
146
+ background-color: #ffb300 !important; /* Slightly darker yellow on hover */
147
+ color: #000000 !important; /* Keep black text */
148
  }
149
  .stImage {
150
  border: 3px solid #81c784;
 
158
  text-align: center;
159
  font-size: 24px;
160
  font-weight: bold;
161
+ color: #000000; /* Black text */
162
  margin-bottom: 10px;
163
  }
164
  .caption-box, .story-box {
165
+ background-color: #f0f4c3;
166
  padding: 15px;
167
  border-radius: 10px;
168
  border: 2px solid #d4e157;
169
  margin-bottom: 20px;
170
+ color: #000000; /* Black text */
171
  }
172
  .caption-box b, .story-box b {
173
+ color: #000000; /* Black text for bold headers */
174
  }
175
  </style>
176
  """, unsafe_allow_html=True)