Skip to content

Commit e862ddd

Browse files
committed
feat(landing): 更新首页英雄区域内容和样式
- 重构标题显示,突出 Java MQTT Broker 核心优势 - 添加成本效益和作者支持相关描述信息 - 强调企业级部署成本降低和可维护性卖点 - 更新渐变文字效果和视觉设计 - 优化描述段落布局和字体显示效果 - 增强关键信息的视觉层次结构
1 parent 65c2e2e commit e862ddd

1 file changed

Lines changed: 31 additions & 8 deletions

File tree

pages/src/components/Hero.astro

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,17 @@
2323
</div>
2424

2525
<h1 class="title">
26-
<span class="title-line" data-i18n="hero.title1">用 Java 写的</span>
27-
<span class="title-line highlight" data-i18n="hero.title2">MQTT Broker</span>
26+
<span class="title-line highlight" data-i18n="hero.title1">用 Java 写的 MQTT Broker</span>
27+
<span class="title-line">
28+
成本降至 <span class="cost-10">1/10</span>,出了问题
29+
<span class="author-highlight">找得到人</span>
30+
</span>
2831
</h1>
2932

3033
<p class="desc" data-i18n="hero.desc">
31-
再也不用为了运维 MQTT 专门去学 Erlang。单机 30万+ 连接,8年持续维护。
34+
<span class="pain-point">✅ 99% 的企业后端是 Java,为什么你的 MQTT 要用 Erlang?</span>
3235
<br>
33-
作者本人工作日 24 小时内回复,出了问题找得到人。
36+
<span class="pain-point">✅ 10万设备,某云一年成本数十万,我们一台服务器搞定</span>
3437
</p>
3538

3639
<div class="btn-group">
@@ -335,18 +338,38 @@
335338
}
336339

337340
.title-line.highlight {
338-
background: linear-gradient(135deg, #635bff 0%, #00d4aa 100%);
341+
background: linear-gradient(135deg, #635bff 0%, #8b5cf6 100%);
339342
-webkit-background-clip: text;
340343
-webkit-text-fill-color: transparent;
341344
background-clip: text;
342345
}
343-
346+
347+
.cost-10 {
348+
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
349+
-webkit-background-clip: text;
350+
-webkit-text-fill-color: transparent;
351+
background-clip: text;
352+
font-weight: 900;
353+
padding: 0 4px;
354+
}
355+
356+
.author-highlight {
357+
color: #f59e0b;
358+
font-weight: 800;
359+
padding: 0 4px;
360+
}
361+
344362
.desc {
345363
font-size: 18px;
346364
color: var(--text-muted);
347-
line-height: 1.7;
365+
line-height: 2;
348366
margin-bottom: 32px;
349-
max-width: 480px;
367+
max-width: 560px;
368+
}
369+
370+
.pain-point {
371+
display: inline-block;
372+
font-weight: 500;
350373
}
351374

352375
/* 按钮 */

0 commit comments

Comments
 (0)