add tower builing game
This commit is contained in:
@@ -73,6 +73,36 @@ const GamePage: FC = () => {
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div
|
||||
style={{ direction: 'ltr' }}
|
||||
className='bg-white shadow-sm rounded-[10px] p-2 flex justify-between items-center cursor-pointer'
|
||||
onClick={() => {
|
||||
const currentPath = window.location.pathname
|
||||
const basePath = currentPath.split('/game')[0]
|
||||
router.push(`${basePath}/game/tower-builder`)
|
||||
}}
|
||||
>
|
||||
<div className='flex gap-3 items-center'>
|
||||
<Image
|
||||
src='/assets/images/tower_building_logo.webp'
|
||||
alt='Tower Builder'
|
||||
width={80}
|
||||
height={80}
|
||||
className='size-[80px] object-cover'
|
||||
/>
|
||||
|
||||
<div className='text-sm font-bold max-w-[92px]'>
|
||||
Tower Builder
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className='h-8 bg-[#F2F2F2] rounded-lg px-3 flex gap-1 items-center justify-center'>
|
||||
<div className='text-xs'>اجرا کنید</div>
|
||||
<Play size='20' color='currentColor' />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user