-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
252 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import * as stylex from '@stylexjs/stylex'; | ||
import { fontSizes, spacing } from '../../token.stylex.ts'; | ||
|
||
export const styles = stylex.create({ | ||
base: { | ||
padding: spacing['4'], | ||
}, | ||
content: { | ||
flexDirection: 'column', | ||
alignItems: 'flex-start', | ||
gap: spacing['4'], | ||
}, | ||
title: { | ||
fontSize: fontSizes.h5, | ||
fontWeight: 400, | ||
}, | ||
image: { | ||
width: '100%', | ||
height: 200, | ||
objectFit: 'contain', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Button, Card } from '../ui'; | ||
import { styles } from './UpdatesCard.styles.ts'; | ||
import * as stylex from '@stylexjs/stylex'; | ||
import { Col, Row } from 'react-grid-system'; | ||
import { Flex } from '../ui/Flex'; | ||
import { ArrowRightIcon } from '@radix-ui/react-icons'; | ||
|
||
export type UpdatesCardProps = { | ||
sx?: stylex.StyleXStyles; | ||
}; | ||
|
||
export const UpdatesCard = ({ sx }: UpdatesCardProps) => { | ||
return ( | ||
<Card title="Latest updates" {...stylex.props(styles.base, sx)}> | ||
<Row align="center"> | ||
<Col sm={7}> | ||
<Flex sx={styles.content}> | ||
<p {...stylex.props(styles.title)}>Connecting cards</p> | ||
<p> | ||
Now all accounts have the function of connecting cards of other | ||
banks. Managing your finances just got easier | ||
</p> | ||
<Button rightSection={<ArrowRightIcon />} variant="outline"> | ||
Read more | ||
</Button> | ||
</Flex> | ||
</Col> | ||
<Col sm={5}> | ||
<img | ||
src="/img/updates.png" | ||
alt="images" | ||
{...stylex.props(styles.image)} | ||
/> | ||
</Col> | ||
</Row> | ||
</Card> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { UpdatesCard, type UpdatesCardProps } from './UpdatesCard.tsx'; |
9 changes: 6 additions & 3 deletions
9
src/components/Button/Button.styles.ts → src/components/ui/Button/Button.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import * as stylex from '@stylexjs/stylex'; | ||
import { | ||
fontSizes, | ||
radius, | ||
shadows, | ||
spacing, | ||
tokens, | ||
} from '../../../token.stylex.ts'; | ||
|
||
export const styles = stylex.create({ | ||
base: { | ||
backgroundColor: tokens.grayBg, | ||
color: tokens.grayText, | ||
padding: spacing['4'], | ||
borderRadius: radius['4'], | ||
}, | ||
header: { | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
}, | ||
text: {}, | ||
title: { | ||
fontSize: fontSizes.h4, | ||
margin: `0 0 ${spacing['3']} 0`, | ||
}, | ||
subtitle: { | ||
fontSize: fontSizes.h6, | ||
margin: 0, | ||
}, | ||
body: {}, | ||
footer: {}, | ||
w: (width) => ({ | ||
width, | ||
}), | ||
shadowsm: { | ||
boxShadow: shadows.sm, | ||
}, | ||
shadowmd: { | ||
boxShadow: shadows.md, | ||
}, | ||
shadowlg: { | ||
boxShadow: shadows.lg, | ||
}, | ||
border: { | ||
border: `1px solid ${tokens.grayBorder}`, | ||
}, | ||
}); |
43 changes: 31 additions & 12 deletions
43
src/components/Card/Card.tsx → src/components/ui/Card/Card.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/components/Container/Container.styles.ts → ...mponents/ui/Container/Container.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.