nick5363 commited on
Commit
6e509e1
·
verified ·
1 Parent(s): 0305c6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -2
app.py CHANGED
@@ -6,6 +6,7 @@ body {
6
  color: white;
7
  margin: 0;
8
  padding: 0;
 
9
  }
10
 
11
  .center-container {
@@ -15,6 +16,8 @@ body {
15
  flex-direction: column;
16
  min-height: 95vh;
17
  text-align: center;
 
 
18
  }
19
 
20
  .button-link {
@@ -26,14 +29,42 @@ body {
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" rel="noopener noreferrer">
37
  Truy cập Option Flow
38
  </a>
39
  </div>
 
6
  color: white;
7
  margin: 0;
8
  padding: 0;
9
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
10
  }
11
 
12
  .center-container {
 
16
  flex-direction: column;
17
  min-height: 95vh;
18
  text-align: center;
19
+ padding: 20px;
20
+ box-sizing: border-box;
21
  }
22
 
23
  .button-link {
 
29
  text-decoration: none;
30
  font-size: 16px;
31
  margin-top: 16px;
32
+ transition: background-color 0.3s ease, transform 0.2s ease;
33
+ }
34
+
35
+ .button-link:hover {
36
+ background-color: #0056b3;
37
+ transform: translateY(-2px);
38
+ }
39
+
40
+ .button-link:active {
41
+ transform: translateY(0);
42
+ }
43
+
44
+ h2 {
45
+ margin: 0 0 20px 0;
46
+ font-size: 2.5rem;
47
+ font-weight: 600;
48
+ }
49
+
50
+ /* Responsive design */
51
+ @media (max-width: 600px) {
52
+ h2 {
53
+ font-size: 1.8rem;
54
+ }
55
+
56
+ .button-link {
57
+ padding: 10px 20px;
58
+ font-size: 14px;
59
+ }
60
  }
61
  """
62
 
63
+ with gr.Blocks(css=custom_css, theme="default") as app:
64
  gr.HTML("""
65
  <div class="center-container">
66
  <h2>OptionStrat Flow</h2>
67
+ <a class="button-link" href="https://optionstrat.com/flow" target="_blank" rel="noopener noreferrer" aria-label="Access OptionStrat Flow">
68
  Truy cập Option Flow
69
  </a>
70
  </div>