Skip to content

Commit 232cdc4

Browse files
committed
更新信息,修复手机端:2026-06-18 22:32
1 parent a5e7c43 commit 232cdc4

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

‎src/components/Hero.astro‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,25 @@ const { src = '/astronaut-hero-img.webp' }: Props = Astro.props
4343
</Link>
4444
</div>
4545
</div>
46-
<!-- 宇航员图片在所有屏幕上都显示,手机端放在文字下方 -->
4746
<Image class="mx-auto w-3/4 lg:w-full" src={src} alt="" decoding="async" width={800} height={600} loading="eager" />
4847
</div>
4948
</div>
5049
</section>
5150

52-
<style lang="scss">
51+
<style lang="scss" is:global>
5352
h1 {
5453
text-wrap: unset;
5554
}
5655

56+
/* 强制彩色渐变,任何情况下都不被覆盖 */
57+
.text-gradient {
58+
background: linear-gradient(
59+
315deg,
60+
#63b3ed 25%,
61+
#b794f4 100%
62+
) !important;
63+
-webkit-background-clip: text !important;
64+
background-clip: text !important;
65+
-webkit-text-fill-color: transparent !important;
66+
}
67+
</style>

0 commit comments

Comments
 (0)