osheina commited on
Commit
3917e99
·
verified ·
1 Parent(s): 5fe089b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +41 -15
app.py CHANGED
@@ -23,6 +23,7 @@ st.markdown(
23
  padding: 1rem;
24
  border-radius: 10px;
25
  color: #4CAF50;
 
26
  }
27
 
28
  /* Обертка для блока контента */
@@ -90,6 +91,31 @@ st.markdown(
90
  from { opacity: 0; }
91
  to { opacity: 1; }
92
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  </style>
94
  """,
95
  unsafe_allow_html=True,
@@ -135,24 +161,24 @@ st.markdown("""
135
  st.image("image.webp", caption="Sign Language Recognition", use_column_width=True)
136
 
137
  # Боковая панель
138
- st.sidebar.title("Navigation")
139
  st.sidebar.markdown(
140
  """
141
- <style>
142
- .sidebar .sidebar-content a {
143
- color: #4CAF50;
144
- font-size: 1.2rem;
145
- text-decoration: none;
146
- }
147
- .sidebar .sidebar-content a:hover {
148
- color: #f4511e;
149
- text-decoration: underline;
150
- }
151
- </style>
152
- <a href="#camera">Camera</a><br>
153
- <a href="#video-upload">Video Upload</a><br>
154
- <a href="#about">About</a>
155
  """,
156
  unsafe_allow_html=True
157
  )
158
 
 
 
23
  padding: 1rem;
24
  border-radius: 10px;
25
  color: #4CAF50;
26
+ box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
27
  }
28
 
29
  /* Обертка для блока контента */
 
91
  from { opacity: 0; }
92
  to { opacity: 1; }
93
  }
94
+
95
+ /* Стили для интерактивных элементов боковой панели */
96
+ .sidebar .element-container {
97
+ margin: 20px 0;
98
+ }
99
+
100
+ .sidebar .element-container h3 {
101
+ color: #ff7043;
102
+ margin-bottom: 10px;
103
+ }
104
+
105
+ .sidebar .element-container input[type="text"] {
106
+ padding: 10px;
107
+ border-radius: 5px;
108
+ border: 1px solid #ccc;
109
+ width: 100%;
110
+ }
111
+
112
+ .sidebar .element-container textarea {
113
+ padding: 10px;
114
+ border-radius: 5px;
115
+ border: 1px solid #ccc;
116
+ width: 100%;
117
+ height: 100px;
118
+ }
119
  </style>
120
  """,
121
  unsafe_allow_html=True,
 
161
  st.image("image.webp", caption="Sign Language Recognition", use_column_width=True)
162
 
163
  # Боковая панель
 
164
  st.sidebar.markdown(
165
  """
166
+ <div class="element-container">
167
+ <h3>Input Text</h3>
168
+ <input type="text" placeholder="Enter text here">
169
+ </div>
170
+ <div class="element-container">
171
+ <h3>Additional Comments</h3>
172
+ <textarea placeholder="Enter your comments here"></textarea>
173
+ </div>
174
+ <div class="element-container">
175
+ <h3>Navigate</h3>
176
+ <a href="#camera">Camera</a><br>
177
+ <a href="#video-upload">Video Upload</a><br>
178
+ <a href="#about">About</a>
179
+ </div>
180
  """,
181
  unsafe_allow_html=True
182
  )
183
 
184
+