refactor: 优化导航栏右侧按钮,移除重复文案
- 移除重复的'联系我们'按钮 - 移除'了解更多'按钮(导航栏已有'关于我们'链接) - 保留一个'立即咨询'主按钮,引导用户行动
This commit is contained in:
@@ -133,7 +133,6 @@ export function Header() {
|
|||||||
|
|
||||||
<div className="hidden md:flex items-center gap-3">
|
<div className="hidden md:flex items-center gap-3">
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const element = document.getElementById('contact');
|
const element = document.getElementById('contact');
|
||||||
@@ -142,18 +141,7 @@ export function Header() {
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
联系我们
|
立即咨询
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
size="sm"
|
|
||||||
onClick={() => {
|
|
||||||
const element = document.getElementById('about');
|
|
||||||
if (element) {
|
|
||||||
element.scrollIntoView({ behavior: 'smooth' });
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
了解更多
|
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user