add 2048 game

This commit is contained in:
hamid zarghami
2025-12-09 10:20:15 +03:30
parent 803f104307
commit 8119203506
15 changed files with 1928 additions and 3 deletions
Submodule src/app/[name]/(Dialogs)/game/2048 added at 478b6ec346
+11 -3
View File
@@ -44,18 +44,26 @@ const GamePage: FC = () => {
</div>
<div className='mt-8 flex flex-col gap-3'>
<div style={{ direction: 'ltr' }} className='bg-white shadow-sm rounded-[10px] p-2 flex justify-between items-center'>
<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/2048`)
}}
>
<div className='flex gap-3 items-center'>
<Image
src='/assets/images/2048_logo.png'
alt='2'
alt='2048'
width={80}
height={80}
className='size-[80px] object-cover'
/>
<div className='text-sm font-bold max-w-[92px]'>
Call of Duty Mobile
2048
</div>
</div>
+4
View File
@@ -368,3 +368,7 @@ html[data-theme="dark"] {
.dltr {
direction: ltr;
}
.game-explanation {
display: none;
}