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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -17
app.py CHANGED
@@ -1,30 +1,35 @@
1
  import gradio as gr
2
 
3
  with gr.Blocks(css="""
4
- body { background-color: #111; color: white; }
 
 
 
 
 
 
 
 
 
 
5
  a.button-link {
6
  display: inline-block;
7
- padding: 10px 20px;
8
- background-color: #0056b3;
9
  color: white;
10
- border-radius: 5px;
11
  text-decoration: none;
12
  font-size: 16px;
13
- margin-top: 10px;
14
- }
15
- a.button-link:hover {
16
- background-color: #007bff;
17
- }
18
- .center-box {
19
- display: flex;
20
- flex-direction: column;
21
- justify-content: center;
22
- align-items: center;
23
- height: 90vh;
24
  }
25
  """) as app:
26
- with gr.Column(elem_classes=["center-box"]):
27
  gr.HTML("<h2>OptionStrat Flow</h2>")
28
- gr.HTML('<a href="https://optionstrat.com/flow" class="button-link">Truy cập Option Flow</a>')
 
 
 
 
 
29
 
30
  app.launch()
 
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;
19
  color: white;
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()