-
Notifications
You must be signed in to change notification settings - Fork 0
Starfield bg #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Starfield bg #1
Conversation
zicklag
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a couple hints on the CI errors.
src/components/starfield.astro
Outdated
| } | ||
|
|
||
| function setup() { | ||
| rafId > 0 && cancelAnimationFrame(rafId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| rafId > 0 && cancelAnimationFrame(rafId); | |
| if (rafId > 0) cancelAnimationFrame(rafId); |
src/components/starfield.astro
Outdated
| console.warn("Canvas element is not available."); | ||
| } | ||
|
|
||
| let container = document.querySelector("#starfield") as HTMLElement; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| let container = document.querySelector("#starfield") as HTMLElement; | |
| const container = document.querySelector("#starfield") as HTMLElement; |
package.json
Outdated
| "fix:prettier": "prettier -w ." | ||
| }, | ||
| "dependencies": { | ||
| "@astrojs/react": "^4.3.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably isn't needed anymore.
Added starfield background for the splash page.