Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
scffs committed Jan 8, 2024
1 parent 1c69ab8 commit ad320ae
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 59 deletions.
59 changes: 1 addition & 58 deletions src/views/Contacts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import { FC } from 'react'

import PanelHeaderWithBack from '../components/PanelHeaderWithBack'
import { GITHUB_URL, HABR_URL, VKT_URL, VK_URL } from '../constants'
import { GITHUB_URL, HABR_URL, VK_URL } from '../constants'

const Contacts: FC<{ id: string }> = ({ id }) => {
const { panel: activePanel, panelsHistory } = useActiveVkuiLocation()
Expand Down Expand Up @@ -53,63 +53,6 @@ const Contacts: FC<{ id: string }> = ({ id }) => {
</InfoRow>
</SimpleCell>
</Group>
<Group header={<Header mode='tertiary'>Что-то другое</Header>}>
<SimpleCell multiline>
<InfoRow header='Пишу статьи тут'>
<Link href={VKT_URL} target='_blank'>
vk.com/testers
</Link>
</InfoRow>
</SimpleCell>
<SimpleCell multiline>
<InfoRow header='Разрабатываю свой дневник'>
<Link href='https://github.com/scffs/diary-admin' target='_blank'>
github.com/scffs/diary-admin
</Link>
</InfoRow>
</SimpleCell>
<SimpleCell multiline>
<InfoRow header='Попытка сделать проводник на Rust'>
<Link href='https://github.com/scffs/explorer' target='_blank'>
github.com/scffs/explorer
</Link>
</InfoRow>
</SimpleCell>
</Group>
<Group
header={
<Header mode='tertiary'>Мои любимые репозитории на GitHub</Header>
}
>
<SimpleCell multiline>
<InfoRow header='UI библиотека от VK'>
<Link href='https://github.com/VKCOM/VKUI' target='_blank'>
VKCOM/VKUI
</Link>
</InfoRow>
</SimpleCell>
<SimpleCell multiline>
<InfoRow header='Cреда выполнения JS/TS'>
<Link href='https://github.com/oven-sh/bun' target='_blank'>
oven-sh/bun
</Link>
</InfoRow>
</SimpleCell>
<SimpleCell multiline>
<InfoRow header='Фреймворк для Bun'>
<Link href='https://github.com/elysiajs/elysia' target='_blank'>
elysiajs/elysia
</Link>
</InfoRow>
</SimpleCell>
<SimpleCell multiline>
<InfoRow header='Любимый ЯП'>
<Link href='https://github.com/rust-lang/rust' target='_blank'>
rust-lang/rust
</Link>
</InfoRow>
</SimpleCell>
</Group>
</Panel>
</View>
)
Expand Down
77 changes: 76 additions & 1 deletion src/views/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,23 @@ import {
useActiveVkuiLocation,
useRouteNavigator
} from '@vkontakte/vk-mini-apps-router'
import { Div, Group, Panel, Separator, View } from '@vkontakte/vkui'
import {
Div,
Group,
Header,
InfoRow,
Link,
Panel,
Separator,
SimpleCell,
View
} from '@vkontakte/vkui'
import { FC } from 'react'

import PanelHeaderWithBack from '../components/PanelHeaderWithBack'
import { UserInfo, UserStory } from '../components/ProfileInfo'
import Suspense from '../components/Suspense'
import { VKT_URL } from '../constants'

const Profile: FC<{ id: string }> = ({ id }) => {
const { panel: activePanel, panelsHistory } = useActiveVkuiLocation()
Expand Down Expand Up @@ -35,6 +46,70 @@ const Profile: FC<{ id: string }> = ({ id }) => {
</Suspense>
</Div>
</Group>
<Group header={<Header mode='tertiary'>Что-то другое</Header>}>
<SimpleCell multiline>
<InfoRow header='Пишу статьи тут'>
<Link href={VKT_URL} target='_blank'>
vk.com/testers
</Link>
</InfoRow>
</SimpleCell>
<SimpleCell multiline>
<InfoRow header='Разрабатываю свой дневник'>
<Link href='https://github.com/scffs/diary-admin' target='_blank'>
github.com/scffs/diary-admin
</Link>
</InfoRow>
</SimpleCell>
<SimpleCell multiline>
<InfoRow header='Попытка сделать проводник на Rust'>
<Link href='https://github.com/scffs/explorer' target='_blank'>
github.com/scffs/explorer
</Link>
</InfoRow>
</SimpleCell>
</Group>
<Group
header={
<Header mode='tertiary'>Мои любимые репозитории на GitHub</Header>
}
>
<SimpleCell multiline>
<InfoRow header='UI библиотека от VK'>
<Link href='https://github.com/VKCOM/VKUI' target='_blank'>
VKCOM/VKUI
</Link>
</InfoRow>
</SimpleCell>
<SimpleCell multiline>
<InfoRow header='Cреда выполнения JS/TS'>
<Link href='https://github.com/oven-sh/bun' target='_blank'>
oven-sh/bun
</Link>
</InfoRow>
</SimpleCell>
<SimpleCell multiline>
<InfoRow header='Фреймворк для Bun'>
<Link href='https://github.com/elysiajs/elysia' target='_blank'>
elysiajs/elysia
</Link>
</InfoRow>
</SimpleCell>
<SimpleCell multiline>
<InfoRow header='Любимый ЯП'>
<Link href='https://github.com/rust-lang/rust' target='_blank'>
rust-lang/rust
</Link>
</InfoRow>
</SimpleCell>
<SimpleCell multiline>
<InfoRow header='Любимый ЯП #2'>
<Link href='https://github.com/ziglang/zig' target='_blank'>
ziglang/zig
</Link>
</InfoRow>
</SimpleCell>
</Group>
</Panel>
</View>
)
Expand Down

0 comments on commit ad320ae

Please sign in to comment.