Skip to content

Commit

Permalink
feat: Earn Page
Browse files Browse the repository at this point in the history
  • Loading branch information
Javid Momeni committed Jun 30, 2024
1 parent ba3ffda commit 66611c8
Showing 1 changed file with 91 additions and 21 deletions.
112 changes: 91 additions & 21 deletions src/pages/Earn.page.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,101 @@
import { IconBrandTelegram, IconBrandYoutube, IconCircleCheck, IconCircleDashed, IconInfoCircle } from '@tabler/icons-react';
import FooterMenu from '../components/FooterMenu/FooterMenu';
import HeaderMenu from '../components/HeaderMenu/HeaderMenu';
import { Welcome } from '../components/Welcome/Welcome';
import { AppShell, Container, Title } from '@mantine/core';
import { AppShell, Blockquote, Container, List, ThemeIcon, Title, rem } from '@mantine/core';
import WebApp from '@twa-dev/sdk';

export function EarnPage() {
const user = WebApp.initDataUnsafe.user;
const usertgid = user?.id;
return (
<Container size={'xs'}>
<AppShell
header={{ height: 40 }}
footer={{ height: 70 }}
withBorder={false}
>
<AppShell.Header>
<HeaderMenu username={user?.username ?? 'KC'} photoUrl={user?.photo_url ?? 'https://kc.rahomaskan.com/assets/images/kharcoin.jpg'} />
</AppShell.Header>
<AppShell.Main>
<Container>
<Title order={1}>درآمد</Title>
</Container>
</AppShell.Main>
<AppShell.Footer>
<FooterMenu />
</AppShell.Footer>
</AppShell>
</Container>
<Container size={'xs'}>
<AppShell
header={{ height: 40 }}
footer={{ height: 70 }}
withBorder={false}
>
<AppShell.Header>
<HeaderMenu username={user?.username ?? 'KC'} photoUrl={user?.photo_url ?? 'https://kc.rahomaskan.com/assets/images/kharcoin.jpg'} />
</AppShell.Header>
<AppShell.Main>
<Container>
<Title order={1}>درآمد</Title>
<Blockquote color="yellow" cite="درآمد ویژه : کانال خرکوین" icon={<IconInfoCircle />} mt="xl">
<List
spacing="xs"
size="sm"
center
icon={
<ThemeIcon color="teal" size={24} radius="xl">
<IconBrandTelegram style={{ width: rem(16), height: rem(16) }} />
</ThemeIcon>
}
>
<List.Item>50 $KHAR : کانال خر کوین</List.Item>
</List>
</Blockquote>

<Blockquote color="green" cite="درآمد جدید : کانالهای تلگرام" icon={<IconInfoCircle />} mt="xl">
<List
spacing="xs"
size="sm"
center
icon={
<ThemeIcon color="teal" size={24} radius="xl">
<IconBrandTelegram style={{ width: rem(16), height: rem(16) }} />
</ThemeIcon>
}
>
<List.Item>10 $KHAR : گروه خر کوین</List.Item>
<List.Item>50 $KHAR : کانال نوبیتکس</List.Item>
<List.Item>30 $KHAR : کانال جاوید</List.Item>
</List>
</Blockquote>


<Blockquote color="green" cite="درآمد جدید : کانالهای یوتیوب" icon={<IconInfoCircle />} mt="xl">
<List
spacing="xs"
size="sm"
center
icon={
<ThemeIcon color="red" size={24} radius="xl">
<IconBrandYoutube style={{ width: rem(16), height: rem(16) }} />
</ThemeIcon>
}
>
<List.Item>10 $Khar : K Youtube Chanal</List.Item>
<List.Item>10 $Khar : K Youtube Chanal</List.Item>
<List.Item>10 $Khar : K Youtube Chanal</List.Item>
<List.Item>10 $Khar : K Youtube Chanal</List.Item>
</List>
</Blockquote>

<Blockquote color="red" cite="درآمدهای قبلی" icon={<IconInfoCircle />} mt="xl">
<List
spacing="xs"
size="sm"
center
icon={
<ThemeIcon color="red" size={24} radius="xl">
<IconBrandYoutube style={{ width: rem(16), height: rem(16) }} />
</ThemeIcon>
}
>
<List.Item>خربازی</List.Item>
<List.Item>خربازی</List.Item>
<List.Item>خربازی</List.Item>
<List.Item>خربازی</List.Item>
</List>
</Blockquote>


</Container>
</AppShell.Main>
<AppShell.Footer>
<FooterMenu />
</AppShell.Footer>
</AppShell>
</Container>
);
}

0 comments on commit 66611c8

Please sign in to comment.