Skip to content

Commit 8fa5a03

Browse files
committed
feat: replace Get Started with Contact Us and scroll to footer contact
Made-with: Cursor
1 parent 997a67c commit 8fa5a03

6 files changed

Lines changed: 14 additions & 13 deletions

File tree

src/components/Documentation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ const Documentation = () => {
276276
</p>
277277

278278
<div className="flex flex-col sm:flex-row gap-4 justify-center">
279-
<Button variant="hero" size="lg">
279+
<Button variant="hero" size="lg" onClick={() => document.getElementById('contact')?.scrollIntoView({ behavior: 'smooth' })}>
280280
{t('docs.cta.getStarted')}
281281
</Button>
282282
<Button variant="glass" size="lg">

src/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const Footer = () => {
6464
<p className="text-muted-foreground mb-6 leading-relaxed">
6565
{t('footer.description')}
6666
</p>
67-
<div className="space-y-2 mb-6 text-sm">
67+
<div id="contact" className="space-y-2 mb-6 text-sm scroll-mt-24">
6868
<p className="text-foreground font-medium">{t('footer.contactInfo')}</p>
6969
<a
7070
href="tel:13218040662"

src/components/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const Header = () => {
131131
<Button variant="ghost" onClick={() => window.open('https://github.com/quickmsg/fluxmq', '_blank')}>
132132
{t('nav.github')}
133133
</Button>
134-
<Button variant="hero" onClick={() => document.getElementById('quickstart')?.scrollIntoView({ behavior: 'smooth' })}>
134+
<Button variant="hero" onClick={() => document.getElementById('contact')?.scrollIntoView({ behavior: 'smooth' })}>
135135
{t('nav.getStarted')}
136136
</Button>
137137
</div>
@@ -200,7 +200,7 @@ const Header = () => {
200200
<Button variant="ghost" className="justify-start" onClick={() => window.open('https://github.com/quickmsg/fluxmq', '_blank')}>
201201
{t('nav.github')}
202202
</Button>
203-
<Button variant="hero" className="justify-start" onClick={() => document.getElementById('quickstart')?.scrollIntoView({ behavior: 'smooth' })}>
203+
<Button variant="hero" className="justify-start" onClick={() => document.getElementById('contact')?.scrollIntoView({ behavior: 'smooth' })}>
204204
{t('nav.getStarted')}
205205
</Button>
206206
</div>

src/components/Hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const Hero = () => {
3939

4040
{/* CTA Buttons */}
4141
<div className="flex flex-col sm:flex-row gap-4 justify-center items-center mb-16">
42-
<Button variant="hero" size="lg" className="group" onClick={() => document.getElementById('quickstart')?.scrollIntoView({ behavior: 'smooth' })}>
42+
<Button variant="hero" size="lg" className="group" onClick={() => document.getElementById('contact')?.scrollIntoView({ behavior: 'smooth' })}>
4343
{t('hero.getStarted')}
4444
<ArrowRight className="ml-2 h-5 w-5 group-hover:translate-x-1 transition-transform" />
4545
</Button>

src/components/Pricing.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ const Pricing = () => {
143143
variant={plan.popular ? "hero" : "outline"}
144144
className="w-full group"
145145
size="lg"
146+
onClick={() => document.getElementById('contact')?.scrollIntoView({ behavior: 'smooth' })}
146147
>
147148
{plan.name === t('pricing.plans.enterprise.name') ? t('pricing.buttons.contactSales') : t('pricing.buttons.getStarted')}
148149
<ArrowRight className="ml-2 h-4 w-4 group-hover:translate-x-1 transition-transform" />

src/lib/i18n.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ const resources = {
1717
"nav.documentation": "Documentation",
1818
"nav.about": "About",
1919
"nav.github": "GitHub",
20-
"nav.getStarted": "Get Started",
20+
"nav.getStarted": "Contact Us",
2121

2222
// Hero Section
2323
"hero.badge": "FluxMQ · FCP",
2424
"hero.title": "Message Infrastructure",
2525
"hero.titleHighlight": "for Scale",
2626
"hero.titleEnd": "",
2727
"hero.subtitle": "FluxMQ: high-performance MQTT broker. FCP: centralized control plane for license, apps & monitoring. One platform for messaging and operations.",
28-
"hero.getStarted": "Get Started",
28+
"hero.getStarted": "Contact Us",
2929
"hero.github": "View on GitHub",
3030
"hero.download": "Download",
3131
"hero.stats.messages": "Messages/Second",
@@ -156,7 +156,7 @@ const resources = {
156156
"docs.buttons.viewDocs": "View Docs",
157157
"docs.cta.title": "Ready to Get Started?",
158158
"docs.cta.subtitle": "Join thousands of developers building with FluxMQ. Start with our comprehensive guides and scale as you grow.",
159-
"docs.cta.getStarted": "Get Started",
159+
"docs.cta.getStarted": "Contact Us",
160160
"docs.cta.viewExamples": "View Examples",
161161
"docs.cta.joinCommunity": "Join Community",
162162

@@ -352,7 +352,7 @@ const resources = {
352352
"pricing.features.enterpriseSecurity": "Enterprise security",
353353
"pricing.features.onPremise": "On-premise deployment",
354354
"pricing.features.sla99_99": "99.99% SLA",
355-
"pricing.buttons.getStarted": "Get Started",
355+
"pricing.buttons.getStarted": "Contact Us",
356356
"pricing.buttons.contactSales": "Contact Sales",
357357
"pricing.faq.title": "Frequently Asked Questions",
358358
"pricing.faq.subtitle": "Got questions? We have answers.",
@@ -534,15 +534,15 @@ const resources = {
534534
"nav.documentation": "文档",
535535
"nav.about": "关于我们",
536536
"nav.github": "GitHub",
537-
"nav.getStarted": "立即开始",
537+
"nav.getStarted": "联系我们",
538538

539539
// Hero Section
540540
"hero.badge": "FluxMQ · FCP",
541541
"hero.title": "消息与管控",
542542
"hero.titleHighlight": "一体化平台",
543543
"hero.titleEnd": "",
544544
"hero.subtitle": "FluxMQ:高性能 MQTT 消息服务;FCP:集中式控制平面,统一 License、应用与监控。一套体系,消息与运维兼得。",
545-
"hero.getStarted": "立即开始",
545+
"hero.getStarted": "联系我们",
546546
"hero.github": "查看GitHub",
547547
"hero.download": "下载",
548548
"hero.stats.messages": "消息/秒",
@@ -673,7 +673,7 @@ const resources = {
673673
"docs.buttons.viewDocs": "查看文档",
674674
"docs.cta.title": "准备开始了吗?",
675675
"docs.cta.subtitle": "加入数千名使用FluxMQ构建应用的开发者。从我们的综合指南开始,随着您的成长而扩展。",
676-
"docs.cta.getStarted": "立即开始",
676+
"docs.cta.getStarted": "联系我们",
677677
"docs.cta.viewExamples": "查看示例",
678678
"docs.cta.joinCommunity": "加入社区",
679679

@@ -869,7 +869,7 @@ const resources = {
869869
"pricing.features.enterpriseSecurity": "企业级安全",
870870
"pricing.features.onPremise": "本地部署",
871871
"pricing.features.sla99_99": "99.99% SLA",
872-
"pricing.buttons.getStarted": "立即开始",
872+
"pricing.buttons.getStarted": "联系我们",
873873
"pricing.buttons.contactSales": "联系销售",
874874
"pricing.faq.title": "常见问题",
875875
"pricing.faq.subtitle": "有问题?我们有答案。",

0 commit comments

Comments
 (0)