Skip to content

Commit 11ba488

Browse files
committed
website: better nav on mobile
1 parent c2ead88 commit 11ba488

File tree

1 file changed

+87
-3
lines changed

1 file changed

+87
-3
lines changed

website/index.html

Lines changed: 87 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
name="viewport"
77
content="width=device-width, initial-scale=1.0, maximum-scale=1"
88
/>
9-
<title>Sequin - Fast Postgres change data capture</title>
9+
<title>Sequin - Fast and reliable Postgres change data capture</title>
1010
<meta
1111
name="description"
1212
content="Stream data from Postgres directly to Kafka, Redis, and more. Replace complex tools like Debezium and consolidate workflows."
@@ -51,7 +51,9 @@
5151
<div class="flex items-center space-x-8">
5252
<div class="font-semibold">Sequin</div>
5353
</div>
54-
<div class="flex items-center space-x-4">
54+
55+
<!-- Desktop Navigation -->
56+
<div class="hidden sm:flex items-center space-x-4">
5557
<a
5658
href="https://sequinstream.com/docs"
5759
class="text-gray-600 hover:text-gray-900 transition-colors"
@@ -92,6 +94,77 @@
9294
<span>Cloud</span>
9395
</a>
9496
</div>
97+
98+
<!-- Mobile Navigation -->
99+
<div class="sm:hidden flex items-center space-x-4">
100+
<a
101+
href="https://github.com/sequinstream/sequin"
102+
class="btn btn-primary btn-sm"
103+
data-testid="button-try-now-header-mobile"
104+
>
105+
<img
106+
src="icons/github-white.svg"
107+
alt="GitHub"
108+
class="icon-sm mr-1"
109+
/>
110+
<span id="header-stars-mobile">-</span>
111+
<span class="ml-2">Try now</span>
112+
</a>
113+
<a
114+
href="https://console.sequinstream.com/register"
115+
class="btn btn-callout btn-sm"
116+
data-testid="button-cloud-mobile"
117+
>
118+
<img
119+
src="icons/cloud.svg"
120+
alt="Cloud"
121+
class="icon-sm mr-1"
122+
/>
123+
<span>Cloud</span>
124+
</a>
125+
<button
126+
id="mobile-menu-button"
127+
class="text-gray-600 hover:text-gray-900 p-2"
128+
aria-label="Toggle menu"
129+
>
130+
<svg
131+
class="h-6 w-6"
132+
fill="none"
133+
viewBox="0 0 24 24"
134+
stroke="currentColor"
135+
>
136+
<path
137+
stroke-linecap="round"
138+
stroke-linejoin="round"
139+
stroke-width="2"
140+
d="M4 6h16M4 12h16M4 18h16"
141+
/>
142+
</svg>
143+
</button>
144+
</div>
145+
</div>
146+
147+
<!-- Mobile Menu -->
148+
<div
149+
id="mobile-menu"
150+
class="sm:hidden hidden border-t border-gray-200 py-4"
151+
>
152+
<div class="flex space-x-6 px-2">
153+
<a
154+
href="https://sequinstream.com/docs"
155+
class="text-gray-600 hover:text-gray-900 transition-colors py-2"
156+
data-testid="link-docs-mobile"
157+
>
158+
Docs
159+
</a>
160+
<a
161+
href="https://blog.sequinstream.com/"
162+
class="text-gray-600 hover:text-gray-900 transition-colors py-2"
163+
data-testid="link-blog-mobile"
164+
>
165+
Blog
166+
</a>
167+
</div>
95168
</div>
96169
</div>
97170
</nav>
@@ -856,9 +929,12 @@ <h3 class="font-semibold mb-4">Company</h3>
856929
? (starCount / 1000).toFixed(1) + "K"
857930
: starCount.toString();
858931

859-
// Update both buttons
932+
// Update all buttons
860933
document.getElementById("header-stars").textContent =
861934
formattedStars;
935+
document.getElementById(
936+
"header-stars-mobile",
937+
).textContent = formattedStars;
862938
document.getElementById("hero-stars").textContent =
863939
formattedStars;
864940
}
@@ -867,6 +943,14 @@ <h3 class="font-semibold mb-4">Company</h3>
867943
}
868944
}
869945

946+
// Mobile menu toggle
947+
document
948+
.getElementById("mobile-menu-button")
949+
.addEventListener("click", function () {
950+
const mobileMenu = document.getElementById("mobile-menu");
951+
mobileMenu.classList.toggle("hidden");
952+
});
953+
870954
// Set current year
871955
document.getElementById("current-year").textContent =
872956
new Date().getFullYear();

0 commit comments

Comments
 (0)