Skip to content

Commit

Permalink
feat: add game
Browse files Browse the repository at this point in the history
  • Loading branch information
MeatDeveloper committed Mar 17, 2024
1 parent 371b8d5 commit 0b509b8
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
23 changes: 23 additions & 0 deletions app/game/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
'use client'
import { ReactNode } from "react"

import { NetworkStatus } from "@/components/blockchain/network-status"
import { WalletConnect } from "@/components/blockchain/wallet-connect"
import { Footer } from "@/components/layout/footer"
import { SiteHeader } from "@/components/layout/site-header"

interface BridgeLayoutProps {
children: ReactNode
}

export default function BridgeLayout({ children }: BridgeLayoutProps) {
return (
<>
<div className="relative flex min-h-screen flex-col">
<SiteHeader />
<main className="flex-1">{children}</main>
<Footer />
</div>
</>
)
}
23 changes: 23 additions & 0 deletions app/game/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"use client"

import { PageHeader } from "@/components/layout/page-header"

export default function GamePage() {
return (
<div className="container relative">
<iframe
src="https://s27lh8-4567.csb.app/"
style={{
width: "100%",
minHeight: "calc(100vh - 100px)",
border: "0",
borderRadius: "0px",
overflow: "hidden",
}}
title="Sausagers In Space"
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
></iframe>
</div>
)
}
2 changes: 1 addition & 1 deletion components/layout/main-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function MainNav() {
<span className="pr-1">Meat</span><span>Hub</span>
</Button>
</Link>
<Link href="https://s27lh8-4567.csb.app/" target="_blank" className="mr-6 flex items-center space-x-2">
<Link href="/game" className="mr-6 flex items-center space-x-2">
<Button
variant="ghost"
className="hub flex items-center justify-center bg-gradient-to-br from-black to-stone-500 bg-clip-text text-2xl text-transparent dark:from-stone-200 dark:to-red-400 sm:inline-flex">
Expand Down

0 comments on commit 0b509b8

Please sign in to comment.