-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'migration-guide' into chore/v8-guides
- Loading branch information
Showing
149 changed files
with
7,384 additions
and
295 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
[ | ||
{ | ||
"versionLabel": "v7.3.x", | ||
"version": "7.3.3", | ||
"releaseNotes": "https://github.com/pixijs/pixijs/releases/tag/v7.3.3", | ||
"build": "https://pixijs.download/v7.3.3/pixi.min.js", | ||
"docs": "https://pixijs.download/v7.3.3/docs/index.html", | ||
"npm": "7.3.3" | ||
}, | ||
{ | ||
"versionLabel": "v7.2.x", | ||
"version": "7.2.4", | ||
"releaseNotes": "https://github.com/pixijs/pixijs/releases/tag/v7.2.4", | ||
"build": "https://pixijs.download/v7.2.4/pixi.min.js", | ||
"docs": "https://pixijs.download/v7.2.4/docs/index.html", | ||
"npm": "7.2.4" | ||
}, | ||
{ | ||
"versionLabel": "v7.1.x", | ||
"version": "7.1.4", | ||
"releaseNotes": "https://github.com/pixijs/pixijs/releases/tag/v7.1.4", | ||
"build": "https://pixijs.download/v7.1.4/pixi.min.js", | ||
"docs": "https://pixijs.download/v7.1.4/docs/index.html", | ||
"npm": "7.1.4" | ||
}, | ||
{ | ||
"versionLabel": "v7.0.x", | ||
"version": "7.0.5", | ||
"releaseNotes": "https://github.com/pixijs/pixijs/releases/tag/v7.0.5", | ||
"build": "https://pixijs.download/v7.0.5/pixi.min.js", | ||
"docs": "https://pixijs.download/v7.0.5/docs/index.html", | ||
"npm": "7.0.5" | ||
}, | ||
{ | ||
"versionLabel": "v6.x", | ||
"version": "6.5.10", | ||
"releaseNotes": "https://github.com/pixijs/pixijs/releases/tag/v6.5.10", | ||
"build": "https://pixijs.download/v6.5.10/pixi.min.js", | ||
"docs": "https://pixijs.download/v6.5.10/docs/index.html", | ||
"npm": "6.5.10" | ||
}, | ||
{ | ||
"versionLabel": "v5.x", | ||
"version": "5.3.12", | ||
"releaseNotes": "https://github.com/pixijs/pixijs/releases/tag/v5.3.12", | ||
"build": "https://pixijs.download/v5.3.12/pixi.min.js", | ||
"docs": "https://pixijs.download/v5.3.12/docs/index.html", | ||
"npm": "5.3.12" | ||
}, | ||
{ | ||
"versionLabel": "v4.x", | ||
"version": "4.8.9", | ||
"releaseNotes": "https://github.com/pixijs/pixijs/releases/tag/v4.8.9", | ||
"build": "https://pixijs.download/v4.8.9/pixi.min.js", | ||
"docs": "https://pixijs.download/v4.8.9/docs/index.html", | ||
"npm": "4.8.9" | ||
} | ||
] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/components/TutorialGallery/TutorialCard/index.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.tutorialCard { | ||
background: var(--ifm-navbar-background-color); | ||
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2); | ||
border-radius: 1rem; | ||
width: 45%; | ||
max-width: 360px; | ||
transition: all 0.1s ease-in-out; | ||
|
||
div { | ||
width: 100%; | ||
height: 200px; | ||
background-size: cover; | ||
background-position: center; | ||
border-radius: 1rem 1rem 0 0; | ||
} | ||
|
||
h2 { | ||
padding: 1.5rem; | ||
color: var(--ifm-color-primary); | ||
padding-bottom: 0.5rem; | ||
margin-bottom: 0; | ||
} | ||
|
||
p { | ||
padding: 1rem 1.5rem; | ||
padding-top: 0; | ||
margin-bottom: 1rem; | ||
} | ||
|
||
&:hover { | ||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); | ||
transform: scale(1.02); | ||
} | ||
|
||
&:active { | ||
transition: all 0.025s ease-in-out; | ||
box-shadow: 0 0 2px rgba(0, 0, 0, 0.4); | ||
transform: scale(0.98); | ||
} | ||
|
||
@media only screen and (max-width: 540px) { | ||
width: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { useHistory } from '@docusaurus/router'; | ||
import styles from './index.module.scss'; | ||
import type { TutorialCardData } from '@site/src/tutorials'; | ||
|
||
export default function TutorialCard({ data }: { data: TutorialCardData }): JSX.Element | ||
{ | ||
const history = useHistory(); | ||
const title = camelCaseToSentenceCase(data.title); | ||
const thumb = `/assets/tutorials/thumbnails/${data.thumbnail ?? 'thumb_default.png'}`; | ||
const url = `tutorials/${camelCaseToSnakeCase(data.title)}`; | ||
|
||
return ( | ||
<div className={styles.tutorialCard} onClick={() => history.push(url)}> | ||
<div style={{ backgroundImage: `url(${thumb})` }} /> | ||
<h2>{title}</h2> | ||
<p>{data.description}</p> | ||
</div> | ||
); | ||
} | ||
|
||
function camelCaseToSentenceCase(str: string) | ||
{ | ||
const tmp = str.replace(/([A-Z])/g, ' $1'); | ||
|
||
return tmp.charAt(0).toUpperCase() + tmp.slice(1); | ||
} | ||
|
||
function camelCaseToSnakeCase(str: string) | ||
{ | ||
return str.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.tutorialGallery { | ||
margin-top: 2.5rem; | ||
display: flex; | ||
gap: 2rem; | ||
flex-wrap: wrap; | ||
} |
Oops, something went wrong.