Skip to content

armgit / plexo

Public Imported from GitHub
0

Speed up downloads by combining multiple network connections in parallel

Add Product Hunt badge above landing demo (#81)

Anmol Kapil37f0ca61df3c
diff --git a/docs/index.html b/docs/index.html
index 13736c5..d33fff3 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -309,7 +309,7 @@
<!-- HERO -->
<main id="main">
- <section id="top" style="position: relative; padding: 96px 24px 0; text-align: center">
+ <section id="top" style="position: relative; padding: 48px 24px 0; text-align: center">
<span
style="
position: relative;
@@ -381,10 +381,23 @@
<p id="hero-download-info">macOS, Windows &amp; Linux</p>
<div id="hero-alternates"></div>
</div>
+ <a
+ class="product-hunt-badge"
+ href="https://www.producthunt.com/products/plexo-2?embed=true&amp;utm_source=badge-featured&amp;utm_medium=badge&amp;utm_campaign=badge-plexo-2"
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ <img
+ alt="Plexo - Combine your networks. Download faster. | Product Hunt"
+ width="250"
+ height="54"
+ src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1269707&amp;theme=dark&amp;t=1791184552526"
+ />
+ </a>
<!-- LIVE HERO WIDGET -->
<div
class="demo-wrap"
- style="position: relative; max-width: 920px; margin: 72px auto 0; height: auto"
+ style="position: relative; max-width: 920px; margin: 24px auto 0; height: auto"
>
<div class="demo-stage" style="width: 100%">
<div
diff --git a/docs/landing.css b/docs/landing.css
index 3d16e11..b480639 100644
--- a/docs/landing.css
+++ b/docs/landing.css
@@ -553,6 +553,18 @@ summary:focus-visible,
flex-wrap: wrap;
gap: 12px 28px;
}
+.product-hunt-badge {
+ display: block;
+ width: 250px;
+ max-width: 100%;
+ position: relative;
+ margin: 20px auto 0;
+}
+.product-hunt-badge img {
+ display: block;
+ width: 100%;
+ height: auto;
+}
.download-primary {
display: inline-flex;
align-items: center;
@@ -584,6 +596,9 @@ summary:focus-visible,
justify-content: center;
gap: 12px;
}
+#hero-alternates:empty {
+ display: none;
+}
#hero-alternates a {
padding: 14px 24px;
border: 1px solid #ffffff29;
@@ -1599,6 +1614,7 @@ summary:focus-visible,
transform: none;
}
.motion-ready #top > span,
+.motion-ready #top > .product-hunt-badge,
.motion-ready #top h1,
.motion-ready #top > p,
.motion-ready #top .hero-actions,
@@ -1708,7 +1724,7 @@ a:focus-visible {
@media (max-width: 640px) {
#top {
- padding-top: 64px !important;
+ padding-top: 24px !important;
}
#features,
#downloads,
@@ -1746,7 +1762,7 @@ a:focus-visible {
margin-top: 72px !important;
}
.demo-wrap {
- margin-top: 48px !important;
+ margin-top: 16px !important;
}
.feature-visual {
min-height: 0 !important;