-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rewrite animation loop and examples * Fix lints * Change all the things
- Loading branch information
1 parent
c2cb9ca
commit ff65d02
Showing
23 changed files
with
550 additions
and
509 deletions.
There are no files selected for viewing
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,40 @@ | ||
import { Simple } from "components/examples/Simple"; | ||
import { WebGL } from "components/examples/Webgl"; | ||
import { Game } from "components/examples/Game"; | ||
import { Confetti } from "components/examples/Confetti"; | ||
import { BounceText } from "components/examples/BounceText"; | ||
import { Math } from "components/examples/Math"; | ||
|
||
import styles from "./page.module.css"; | ||
|
||
const Examples = () => { | ||
return ( | ||
<article className={styles.examples}> | ||
<section> | ||
<h3>Simple</h3> | ||
<Simple /> | ||
</section> | ||
<section> | ||
<h3>Confetti</h3> | ||
<Confetti /> | ||
</section> | ||
<section> | ||
<h3>Bouncing text</h3> | ||
<BounceText /> | ||
</section> | ||
<section> | ||
<h3>WebGL</h3> | ||
<WebGL /> | ||
<p> | ||
<a href="https://www.instagram.com/p/C3Oh8Nwst0z/">Source</a> | ||
</p> | ||
</section> | ||
<section> | ||
<h3>Game</h3> | ||
<Game /> | ||
</section> | ||
</article> | ||
); | ||
}; | ||
|
||
export default Examples; |
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,7 @@ | ||
.examples { | ||
display: block; | ||
} | ||
|
||
.examples section { | ||
margin: 1rem 0; | ||
} |
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,17 @@ | ||
"use client"; | ||
|
||
import Link from "next/link"; | ||
|
||
import { WebGL } from "components/examples/Webgl"; | ||
|
||
export default function Home() { | ||
return ( | ||
<article> | ||
<p> | ||
A tiny hook that'll help you write neat canvas things. If | ||
you're familiar with processing it might seem familiar. | ||
</p> | ||
<WebGL /> | ||
</article> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.