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

Commit

Permalink
feat: added teameights-types
Browse files Browse the repository at this point in the history
  • Loading branch information
nmashchenko committed Oct 5, 2023
1 parent 8ebf67f commit 80db214
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"react-select": "^5.7.4",
"react-tooltip": "^5.21.3",
"sass": "^1.64.2",
"teameights-types": "^1.0.1",
"tsparticles": "^2.12.0",
"typescript": "5.1.6",
"yarn": "^1.22.19"
Expand Down
8 changes: 6 additions & 2 deletions client/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
import { Flex, Typography, Skeleton } from '@/shared/ui';
import { useGetScreenWidth } from '@/shared/lib';
import { Crown } from '@/shared/assets';
import { IUserRequest } from 'teameights-types';

export default function Home() {
const width = useGetScreenWidth();
const user: IUserRequest = { username: 'nmashchenko' };

return (
<>
Expand All @@ -15,12 +17,14 @@ export default function Home() {

<div> The screen width is: {width} </div>

<Typography>Hello, {user.username}!</Typography>

<a href='/login' style={{ color: 'green' }}>
Get to login
</a>

<Flex direction='column' gap='200px'>
<Flex gap='30px'>
<Flex direction='column' gap='200px' width='100%' justify='center' align='center'>
<Flex gap='150px'>
<Skeleton width={70} height={70} />
<Skeleton width={70} height={70} />
</Flex>
Expand Down
10 changes: 5 additions & 5 deletions client/src/shared/ui/flex/flex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@ export const Flex: React.FC<FlexProps> = props => {
} = props;

const style = {
'align-items': align,
'justify-content': justify,
alignItems: align,
justifyContent: justify,
gap: gap,
margin: margin,
padding: padding,
'flex-direction': direction,
'max-height': maxHeight,
flexDirection: direction,
maxHeight: maxHeight,
position: position,
width: width,
'max-width': maxWidth,
maxWidth: maxWidth,
height: height,
} as React.CSSProperties;

Expand Down
8 changes: 8 additions & 0 deletions client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7637,6 +7637,7 @@ __metadata:
react-tooltip: ^5.21.3
sass: ^1.64.2
storybook: 7.2.1
teameights-types: ^1.0.1
tsparticles: ^2.12.0
typescript: 5.1.6
yarn: ^1.22.19
Expand Down Expand Up @@ -16236,6 +16237,13 @@ __metadata:
languageName: node
linkType: hard

"teameights-types@npm:^1.0.1":
version: 1.0.1
resolution: "teameights-types@npm:1.0.1"
checksum: 2d030fc9a94e406c958dd08fb81b06b5d8b4d46db5fe191c36e4a3c879ce8ab58b9a53380f692e76929c0dc133e872b3530ae52c0d30894a697323de256ed9f4
languageName: node
linkType: hard

"telejson@npm:^7.0.3, telejson@npm:^7.2.0":
version: 7.2.0
resolution: "telejson@npm:7.2.0"
Expand Down

2 comments on commit 80db214

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for teameights ready!

✅ Preview
https://teameights-cweeisnlm-exortme1ster.vercel.app

Built with commit 80db214.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for teameights-storybook ready!

✅ Preview
https://teameights-storybook-dx6qn7zlx-exortme1ster.vercel.app

Built with commit 80db214.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.