Add starfield.js in the landing page. (#1833)

This commit is contained in:
Yudong Jin
2025-12-27 05:33:45 +08:00
committed by GitHub
parent da230312cd
commit 2db8f741a8
6 changed files with 502 additions and 4 deletions

View File

@@ -1,7 +1,10 @@
<!-- Section: hero -->
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div" style="height: min(100vh, 120vw); position: relative; margin-top:-2.4rem; padding: 0; overflow: hidden;">
<!-- hero image -->
<img src="../assets/hero/universe_bg.png" class="hero-bg" alt="">
<!-- <img alt="" class="hero-bg" src="assets/hero/universe_bg.png" /> -->
<div class="starfield">
<div class="starfield-origin"></div>
</div>
<div class="hero-div">
<img src="../assets/hero/ground.png" alt="" style="position: absolute; width: auto; height: 26.445%; left: 28.211%; top: 54.145%;">
<img src="../assets/hero/links.png" alt="" style="position: absolute; width: auto; height: 78.751%; left: 10.545%; top: 7.326%;">