-
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.
- Loading branch information
1 parent
fd5c98d
commit 93e05bd
Showing
9 changed files
with
84 additions
and
29 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 |
---|---|---|
@@ -1,3 +1,17 @@ | ||
body { | ||
height: 100vh; | ||
} | ||
|
||
.main { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
width: 100%; | ||
position: relative; | ||
} | ||
|
||
.animation { | ||
width: min(72%, 480px); | ||
aspect-ratio: 1 / 1; | ||
} |
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 |
---|---|---|
@@ -1,14 +1,16 @@ | ||
import './globals.css' | ||
import Nav from "@/components/Nav"; | ||
import "./globals.css"; | ||
|
||
export default function RootLayout({ children }) { | ||
return ( | ||
<html lang="en"> | ||
{/* | ||
<head /> will contain the components returned by the nearest parent | ||
head.js. Find out more at https://beta.nextjs.org/docs/api-reference/file-conventions/head | ||
*/} | ||
<head /> | ||
<body>{children}</body> | ||
<body> | ||
<main className="main"> | ||
<div className="animation">{children}</div> | ||
<Nav /> | ||
</main> | ||
</body> | ||
</html> | ||
) | ||
); | ||
} |
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 |
---|---|---|
@@ -1,13 +1,5 @@ | ||
"use client"; | ||
import Rive from "@rive-app/react-canvas"; | ||
import styles from "./page.module.css"; | ||
|
||
export default function RivLab() { | ||
return ( | ||
<main className={styles.main}> | ||
<div className={styles.animation}> | ||
<Rive src="animations/party.riv" /> | ||
</div> | ||
</main> | ||
); | ||
return <>Hallo</>; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"use client"; | ||
|
||
import Rive from "@rive-app/react-canvas"; | ||
|
||
export default function Tree() { | ||
return <Rive src="animations/party.riv" />; | ||
} |
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 @@ | ||
"use client"; | ||
|
||
import Rive from "@rive-app/react-canvas"; | ||
|
||
export default function Tree() { | ||
return <Rive src="animations/tree.riv" stateMachines="flow" />; | ||
} |
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,22 @@ | ||
"use client"; | ||
import Link from "next/link"; | ||
import styles from "./styles.module.css"; | ||
|
||
export default function Nav() { | ||
return ( | ||
<nav className={styles.navigation}> | ||
<ul className={styles.list}> | ||
<li className={styles.item}> | ||
<Link href="/party" className={styles.link} activeStyle={{ color: "#000" }}> | ||
Party | ||
</Link> | ||
</li> | ||
<li className={styles.item}> | ||
<Link href="/tree" className={styles.link} activeStyle={{ color: "#000" }}> | ||
Tree | ||
</Link> | ||
</li> | ||
</ul> | ||
</nav> | ||
); | ||
} |
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,24 @@ | ||
.navigation { | ||
position: absolute; | ||
bottom: 10vh; | ||
left: 50%; | ||
transform: translate(-50%, 0); | ||
} | ||
|
||
.list { | ||
list-style-type: none; | ||
display: flex; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.item { | ||
font-family: sans-serif; | ||
font-size: 1.2rem; | ||
padding: 0 2rem; | ||
} | ||
|
||
.link { | ||
text-decoration: none; | ||
color: #cccccc; | ||
} |
Binary file not shown.
93e05bd
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.
Successfully deployed to the following URLs:
rive-lab – ./
rive-lab.vercel.app
rive-lab-neoskop.vercel.app
rive-lab-git-master-neoskop.vercel.app