Skip to content

Commit 3ac31a8

Browse files
committed
fix(layout): 修复导航栏高度异常问题,调整页面布局
1 parent 455b1b7 commit 3ac31a8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

script-hook-website/src/components/Header.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const Header: React.FC = () => {
1515
'features',
1616
'installation',
1717
'support',
18-
'star-history',
1918
'community'
2019
];
2120

@@ -45,7 +44,7 @@ const Header: React.FC = () => {
4544
<div className="container header-container">
4645
<div className="logo">
4746
<a href="/">
48-
<img src="/images/logo.png" alt="JS Script Hook Logo" className="site-logo transparent-bg" />
47+
<img src="./images/logo.png" alt="JS Script Hook Logo" className="site-logo transparent-bg" />
4948
</a>
5049
</div>
5150

@@ -60,7 +59,6 @@ const Header: React.FC = () => {
6059
<li><a href="#features" className={activeSection === 'features' ? 'active' : ''}>功能</a></li>
6160
<li><a href="#installation" className={activeSection === 'installation' ? 'active' : ''}>安装</a></li>
6261
<li><a href="#support" className={activeSection === 'support' ? 'active' : ''}>支持</a></li>
63-
<li><a href="#star-history" className={activeSection === 'star-history' ? 'active' : ''}>Star历史</a></li>
6462
<li><a href="#community" className={activeSection === 'community' ? 'active' : ''}>交流群</a></li>
6563
</ul>
6664
</nav>

script-hook-website/src/components/Hero.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.hero {
2-
padding: 160px 0 100px;
2+
padding: 60px 0 80px;
3+
margin-top: -20px;
34
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
45
position: relative;
56
overflow: hidden;
@@ -122,7 +123,8 @@ h1 {
122123

123124
@media (max-width: 992px) {
124125
.hero {
125-
padding: 120px 0 80px;
126+
padding: 60px 0 60px;
127+
margin-top: -15px;
126128
}
127129

128130
.hero .container {

0 commit comments

Comments
 (0)