tywei08 commited on
Commit
c9eeb14
·
verified ·
1 Parent(s): 7653c54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -2
app.py CHANGED
@@ -135,6 +135,21 @@ with gr.Blocks(css='''
135
  border-radius: 5px;
136
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
137
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  .slider-sweetness {
139
  background: linear-gradient(to right, rgba(232, 243, 214, 0.8), rgba(252, 249, 190, 0.8));
140
  padding: 10px;
@@ -253,8 +268,8 @@ with gr.Blocks(css='''
253
  # flavor_association = gr.CheckboxGroup(label="Flavor Association", choices=["Fruity", "Herbal", "Spicy", "Floral", "Nutty", "Woody", "Earthy"])
254
  # drinking_experience = gr.CheckboxGroup(label="Drinking Experience", choices=["Refreshing", "Warming", "Comforting", "Energizing", "Relaxing"])
255
  with gr.Row():
256
- allergies = gr.Textbox(label="Allergies", scale=2)
257
- additional_requests = gr.Textbox(label="Anything else you would like to address", scale=2)
258
  generate_button = gr.Button("Generate Your Cocktail Recipe", scale=1, elem_classes=["generate-button"])
259
 
260
  with gr.Row():
 
135
  border-radius: 5px;
136
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
137
  }
138
+ .custom-input2 {
139
+ background: white; /* White background */
140
+ color: #333; /* Text color */
141
+ padding: 10px; /* Padding inside the input */
142
+ border: 2px solid #FFDA42; /* Initial border color, change as needed */
143
+ border-radius: 5px; /* Rounded corners */
144
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
145
+ transition: all 0.3s ease; /* Smooth transition for interactions */
146
+ }
147
+
148
+ .custom-input2:focus {
149
+ border-color: #F0E68C; /* Highlight color when the input is focused */
150
+ box-shadow: 0 0 8px rgba(240, 230, 140, 0.8); /* Glow effect on focus */
151
+ }
152
+
153
  .slider-sweetness {
154
  background: linear-gradient(to right, rgba(232, 243, 214, 0.8), rgba(252, 249, 190, 0.8));
155
  padding: 10px;
 
268
  # flavor_association = gr.CheckboxGroup(label="Flavor Association", choices=["Fruity", "Herbal", "Spicy", "Floral", "Nutty", "Woody", "Earthy"])
269
  # drinking_experience = gr.CheckboxGroup(label="Drinking Experience", choices=["Refreshing", "Warming", "Comforting", "Energizing", "Relaxing"])
270
  with gr.Row():
271
+ allergies = gr.Textbox(label="Allergies", scale=2, elem_classes=["custom-input2"])
272
+ additional_requests = gr.Textbox(label="Anything else you would like to address", scale=2, elem_classes=["custom-input2"])
273
  generate_button = gr.Button("Generate Your Cocktail Recipe", scale=1, elem_classes=["generate-button"])
274
 
275
  with gr.Row():