Skip to content

Commit

Permalink
Update header and misc eslint fixes (#18)
Browse files Browse the repository at this point in the history
* fix header

* update eslint
  • Loading branch information
Zyie authored Mar 21, 2023
1 parent 3885b68 commit a613604
Show file tree
Hide file tree
Showing 16 changed files with 77 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
static/header/**/*
3 changes: 2 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ const config = {
src: 'images/logo.svg',
width: 100,
},
copyright: ${new Date().getFullYear()} PixiJS.<br>A labor of love built by Mat Groves <a href="https://twitter.com/doormat23">@doormat23</a> and the <a href="/team">PixiJS team</a>.`,
// eslint-disable-next-line max-len
copyright: ${new Date().getFullYear()} PixiJS.<br>A labour of love built by the <a href="/team">PixiJS team</a>.`,
},
image: 'images/ogimage.png',
announcementBar: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"clear": "docusaurus clear",
"deploy": "docusaurus deploy",
"docusaurus": "docusaurus",
"lint": "eslint . --ext .js,.mjs,.jsx,.ts,.tsx",
"lint": "eslint . --ext .js,.mjs,.jsx,.ts,.tsx --max-warnings=0",
"lint:fix": "eslint . --fix --ext .js,.mjs,.jsx,.ts,.tsx",
"prettier:check": "prettier --check .",
"prettify": "prettier --write .",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Homepage/HeroHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function HeroHeader(): JSX.Element
{
return (
<header className={clsx('hero hero--dark', styles.heroBanner)}>
<iframe className={styles.heroBackground} src="https://pixijs.com/header/index.html"></iframe>
<iframe className={styles.heroBackground} src="/header/index.html"></iframe>
<div className="container">
<img className={styles.heroLogo} src="/images/logo.svg" alt="" />
<h1 className="hero__subtitle">The HTML5 Creation Engine</h1>
Expand Down
Binary file added static/header/assets/img/blob.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/header/assets/img/skyBG.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/header/assets/img/skyCloud1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/header/assets/img/skyCloud2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/header/assets/img/spaceBG.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/header/assets/img/spaceCloud1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/header/assets/img/spaceCloud2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/header/assets/img/spaceCloud3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/header/assets/img/sun_add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions static/header/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui" />
<meta name="description" content="Visualization for pixijs.com website">
<title>PixiJS - Nebulon Header</title>
<style>
body {
background: black;
overflow: hidden;
}
#container {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="container"></div>
<script src="./js/require.js" data-main="./js/nebulon.js"></script>
</body>
</html>
13 changes: 13 additions & 0 deletions static/header/js/nebulon.js

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions static/header/js/require.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a613604

Please sign in to comment.