Skip to content

Commit

Permalink
πŸ¦‘πŸŒˆ ↝ Canvas for [ GP-15 ]
Browse files Browse the repository at this point in the history
  • Loading branch information
Gizmotronn committed Mar 28, 2024
1 parent a41aaeb commit 250f64d
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
17 changes: 17 additions & 0 deletions components/Gameplay/Sandbox/AlchemyUI.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from "react";

export default function AlchemyUI() {
return (
<div className="container mx-auto flex flex-col items-center">
<div className="mb-8 mt-4">
<canvas id="game-canvas" className="border border-gray-400" style={{ width: '80vw', height: '80vh' }}></canvas>
</div>
<div className="flex flex-row space-x-4">
<div className="bg-blue-500 w-12 h-12 rounded-full"></div>
<div className="bg-green-500 w-12 h-12 rounded-full"></div>
<div className="bg-red-500 w-12 h-12 rounded-full"></div>
<div className="bg-yellow-500 w-12 h-12 rounded-full"></div>
</div>
</div>
);
};
2 changes: 1 addition & 1 deletion components/Modals/rover-interface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -769,4 +769,4 @@ function ZoomOutIcon(props) {
<line x1="8" x2="14" y1="11" y2="11" />
</svg>
)
}
};
28 changes: 28 additions & 0 deletions pages/explore/play.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from "react";
import AlchemyUI from "../../components/Gameplay/Sandbox/AlchemyUI";
import Navigation from "../../components/_Core/Section/Navbar";

export default function AlchemyPage() {
return (
<>
<style jsx global>
{`
body {
background: url('garden.png') center/cover;
}
@media only screen and (max-width: 767px) {
.planet-heading {
color: white;
font-size: 24px;
text-align: center;
margin-bottom: 10px;
}
}
`}
</style>
<Navigation />
<AlchemyUI />
</>
);
};

0 comments on commit 250f64d

Please sign in to comment.