evegarcianz commited on
Commit
4b2750d
1 Parent(s): 34a83e6

update background

Browse files
Files changed (1) hide show
  1. app.py +14 -27
app.py CHANGED
@@ -240,39 +240,26 @@ def greet(question,candidate):
240
 
241
 
242
 
243
- css= """@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,600,400italic);
244
- body {background: linear-gradient(to right, #228B22, #FFFFFF, #FF0000);}
245
- h3 {
246
- text-align: center;
247
- font-family: "Roboto", Helvetica, Arial, sans-serif;
248
- color: rgb(1, 1, 1);
249
- }
250
- button {
251
- background-color: #a8d4e2; /* Italian flag blue color */
252
- color: white;
253
- padding: 10px 20px;
254
- border: 0;
255
- border-radius: 5px;
256
- cursor: pointer;
257
- font-size: 16px;
258
- display: block;
259
- margin: auto;
260
- }
261
- .center {{
262
- text-align: center;
263
- display: flex;
264
- flex-direction: column;
265
- justify-content: center;
266
- align-items: center;
267
- height: 100vh;
268
- }}
269
  """
270
 
271
 
272
  #{background: linear-gradient(to right, #228B22, #FFFFFF, #FF0000);}
273
 
274
 
275
- with gr.Blocks(css=".gradio-container {background-image: url('_a7329994-a323-49e9-96dd-de7705a885fd.jpg'); }") as demo:
276
  with gr.Row():
277
  #gr.Markdown(value="![](https://upload.wikimedia.org/wikipedia/commons/9/94/AXA_Logo.svg)", elem_id='imagen')
278
  gr.Markdown(
 
240
 
241
 
242
 
243
+ css= """.gradio-container {
244
+ background: linear-gradient(-45deg,
245
+ green 33%,
246
+ white 33%, white 66%,
247
+ red 66%);
248
+ background-size: 100% 4rem;
249
+ animation: animate 10s linear infinite;
250
+ }
251
+
252
+ @keyframes animate {
253
+ 0% {background-position: 0 0}
254
+ 100% {background-position: 100% 0}
255
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
256
  """
257
 
258
 
259
  #{background: linear-gradient(to right, #228B22, #FFFFFF, #FF0000);}
260
 
261
 
262
+ with gr.Blocks(css=css) as demo:
263
  with gr.Row():
264
  #gr.Markdown(value="![](https://upload.wikimedia.org/wikipedia/commons/9/94/AXA_Logo.svg)", elem_id='imagen')
265
  gr.Markdown(