tonyassi commited on
Commit
eda3cd3
·
verified ·
1 Parent(s): 1340156

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -0
app.py CHANGED
@@ -92,6 +92,30 @@ CUSTOM_CSS = """
92
  .sticky-cta .cta-link { font-weight:600; text-decoration: underline; }
93
 
94
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
 
96
  /* floating bottom promo */
97
  .bottom-promo {
@@ -145,6 +169,21 @@ with gr.Blocks(title="Video Face Swap", theme=gr.themes.Soft(), css=CUSTOM_CSS)
145
  elem_id="hero-md"
146
  )
147
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
 
149
  with gr.Row():
150
  with gr.Column(scale=5):
 
92
  .sticky-cta .cta-link { font-weight:600; text-decoration: underline; }
93
 
94
 
95
+ /* centered, single-label API CTA */
96
+ .api-cta-wrap { text-align:center; margin-top:10px; }
97
+ .api-cta-hero {
98
+ display:inline-flex; align-items:center; gap:10px;
99
+ padding:10px 14px; border-radius:14px;
100
+ background: linear-gradient(90deg,#0ea5e9 0%, #a8a9de 100%);
101
+ color:#fff; font-weight:800; letter-spacing:0.1px;
102
+ box-shadow: 0 6px 22px rgba(99,102,241,0.35);
103
+ border: 1px solid rgba(255,255,255,0.22);
104
+ text-decoration:none;
105
+ }
106
+ .api-cta-hero:hover { filter:brightness(1.05); transform: translateY(-1px); transition: all .15s ease; }
107
+
108
+ .api-cta-hero .new {
109
+ background:#fff; color:#0ea5e9; font-weight:900;
110
+ padding:2px 8px; border-radius:999px; font-size:12px; line-height:1;
111
+ }
112
+ .api-cta-hero .txt { font-weight:800; }
113
+ .api-cta-hero .chev { opacity:.95; }
114
+ @media (max-width: 520px){
115
+ .api-cta-hero { padding:9px 12px; gap:8px; font-size:14px; }
116
+ .api-cta-hero .new { display:none; } /* keep it tidy on phones */
117
+ }
118
+
119
 
120
  /* floating bottom promo */
121
  .bottom-promo {
 
169
  elem_id="hero-md"
170
  )
171
 
172
+
173
+ gr.HTML(
174
+ """
175
+ <div class="api-cta-wrap">
176
+ <a class="api-cta-hero"
177
+ href="https://www.face-swap.co/api?utm_source=hfspace_deepfakevideo&utm_medium=hero_api_new"
178
+ target="_blank" rel="noopener" aria-label="Face Swap API">
179
+ <span class="new">NEW</span>
180
+ <span class="txt">Face Swap API</span>
181
+ <span class="chev">↗</span>
182
+ </a>
183
+ </div>
184
+ """
185
+ )
186
+
187
 
188
  with gr.Row():
189
  with gr.Column(scale=5):