Ruleta actvidad completa en React
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import type { ReactNode } from 'react'
|
||||
import { useScale } from '../hooks/useScale'
|
||||
import Header from '../components/layout/Header'
|
||||
import Footer from '../components/layout/Footer'
|
||||
|
||||
interface MainLayoutProps {
|
||||
children: ReactNode
|
||||
}
|
||||
|
||||
export default function MainLayout({ children }: MainLayoutProps) {
|
||||
const scaleRef = useScale()
|
||||
|
||||
return (
|
||||
<div className="w-screen h-screen overflow-hidden bg-white relative">
|
||||
<div ref={scaleRef} className="bg-gray-100 flex flex-col">
|
||||
<Header />
|
||||
<main className="flex-1 flex items-center justify-center px-4 py-8">
|
||||
{children}
|
||||
</main>
|
||||
<Footer />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user