Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,16 +92,29 @@ CUSTOM_CSS = """
|
|
| 92 |
.sticky-cta .cta-link { font-weight:600; text-decoration: underline; }
|
| 93 |
|
| 94 |
|
| 95 |
-
/*
|
|
|
|
| 96 |
.api-cta-hero {
|
| 97 |
-
display:inline-flex; align-items:center;
|
| 98 |
-
|
| 99 |
-
background
|
| 100 |
-
|
|
|
|
|
|
|
|
|
|
| 101 |
}
|
| 102 |
-
.api-cta-hero:hover { filter:
|
| 103 |
-
.api-cta-wrap { text-align:center; margin-top:8px; }
|
| 104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
|
| 107 |
/* floating bottom promo */
|
|
@@ -160,15 +173,18 @@ with gr.Blocks(title="Video Face Swap", theme=gr.themes.Soft(), css=CUSTOM_CSS)
|
|
| 160 |
"""
|
| 161 |
<div class="api-cta-wrap">
|
| 162 |
<a class="api-cta-hero"
|
| 163 |
-
href="https://www.face-swap.co/api?utm_source=hfspace_videofaceswap&utm_medium=
|
| 164 |
target="_blank" rel="noopener" aria-label="Face Swap API">
|
| 165 |
-
|
|
|
|
|
|
|
| 166 |
</a>
|
| 167 |
</div>
|
| 168 |
"""
|
| 169 |
)
|
| 170 |
|
| 171 |
|
|
|
|
| 172 |
with gr.Row():
|
| 173 |
with gr.Column(scale=5):
|
| 174 |
|
|
|
|
| 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%, #6366f1 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 */
|
|
|
|
| 173 |
"""
|
| 174 |
<div class="api-cta-wrap">
|
| 175 |
<a class="api-cta-hero"
|
| 176 |
+
href="https://www.face-swap.co/api?utm_source=hfspace_videofaceswap&utm_medium=hero_api_new"
|
| 177 |
target="_blank" rel="noopener" aria-label="Face Swap API">
|
| 178 |
+
<span class="new">NEW</span>
|
| 179 |
+
<span class="txt">Face Swap API β build into your app</span>
|
| 180 |
+
<span class="chev">β</span>
|
| 181 |
</a>
|
| 182 |
</div>
|
| 183 |
"""
|
| 184 |
)
|
| 185 |
|
| 186 |
|
| 187 |
+
|
| 188 |
with gr.Row():
|
| 189 |
with gr.Column(scale=5):
|
| 190 |
|