nick5363 commited on
Commit
b4621d7
·
verified ·
1 Parent(s): 1a891f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -15
app.py CHANGED
@@ -1,18 +1,23 @@
1
  import gradio as gr
2
 
3
- with gr.Blocks(css="""
4
- body { background-color: #111; color: white; margin: 0; padding: 0; }
 
 
 
 
 
5
 
6
- .full-center {
7
  display: flex;
8
- flex-direction: column;
9
  justify-content: center;
10
  align-items: center;
 
11
  height: 100vh;
12
  text-align: center;
13
  }
14
 
15
- a.button-link {
16
  display: inline-block;
17
  padding: 12px 24px;
18
  background-color: #007bff;
@@ -20,16 +25,18 @@ a.button-link {
20
  border-radius: 6px;
21
  text-decoration: none;
22
  font-size: 16px;
23
- margin-top: 12px;
24
  }
25
- """) as app:
26
- with gr.HTML("<div class='full-center'>"):
27
- gr.HTML("<h2>OptionStrat Flow</h2>")
28
- gr.HTML("""
29
- <a class="button-link" href="https://optionstrat.com/flow" target="_blank">
30
- Truy cập Option Flow
31
- </a>
32
- """)
33
- gr.HTML("</div>")
 
 
34
 
35
  app.launch()
 
1
  import gradio as gr
2
 
3
+ custom_css = """
4
+ body {
5
+ background-color: #111;
6
+ color: white;
7
+ margin: 0;
8
+ padding: 0;
9
+ }
10
 
11
+ .center-container {
12
  display: flex;
 
13
  justify-content: center;
14
  align-items: center;
15
+ flex-direction: column;
16
  height: 100vh;
17
  text-align: center;
18
  }
19
 
20
+ .button-link {
21
  display: inline-block;
22
  padding: 12px 24px;
23
  background-color: #007bff;
 
25
  border-radius: 6px;
26
  text-decoration: none;
27
  font-size: 16px;
28
+ margin-top: 16px;
29
  }
30
+ """
31
+
32
+ with gr.Blocks(css=custom_css) as app:
33
+ gr.HTML("""
34
+ <div class="center-container">
35
+ <h2>OptionStrat Flow</h2>
36
+ <a class="button-link" href="https://optionstrat.com/flow" target="_blank">
37
+ Truy cập Option Flow
38
+ </a>
39
+ </div>
40
+ """)
41
 
42
  app.launch()