add tower builing game

This commit is contained in:
hamid zarghami
2025-12-09 10:48:48 +03:30
parent 8119203506
commit 53b9139506
79 changed files with 15363 additions and 3 deletions
@@ -0,0 +1,16 @@
'use client'
import { type FC, type ReactNode } from 'react'
interface TowerBuilderLayoutProps {
children: ReactNode
}
const TowerBuilderLayout: FC<TowerBuilderLayoutProps> = ({ children }) => {
return (
<div className='h-screen w-full p-0 m-0'>
{children}
</div>
)
}
export default TowerBuilderLayout
@@ -0,0 +1,27 @@
'use client'
import { type FC } from 'react'
import { useRouter } from 'next/navigation'
import { CloseCircle } from 'iconsax-react'
const TowerBuilderPage: FC = () => {
const router = useRouter()
return (
<div className='fixed inset-0 w-full h-full p-0 m-0 flex items-center justify-center bg-white'>
<button
onClick={() => router.back()}
className='absolute top-4 left-4 z-50 bg-white rounded-full shadow-lg p-1 hover:bg-gray-100 transition-colors'
aria-label='بستن'
>
<CloseCircle size='32' color='#000' variant='Bold' />
</button>
<iframe
src='/tower_game-master/index.html'
className='w-full h-full border-0'
title='Tower Builder Game'
/>
</div>
)
}
export default TowerBuilderPage