-
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.
feat: create new typography UI components & update welcome screen layout
- Loading branch information
Showing
7 changed files
with
44 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
import { Text, TextProps } from '@ui-kitten/components'; | ||
import React from 'react'; | ||
|
||
import Space from '../Space'; | ||
|
||
const Heading: React.FC<HeadingProps> = ({ children }) => { | ||
return ( | ||
<Space type="comfortable"> | ||
<Text category="h1">{children}</Text> | ||
</Space> | ||
); | ||
}; | ||
|
||
export interface HeadingProps extends TextProps { | ||
children: string; | ||
} | ||
import { Text } from '@ui-kitten/components'; | ||
import styled from 'styled-components/native'; | ||
|
||
const Heading = styled(Text).attrs({ category: 'h1' })` | ||
font-size: 31px; | ||
font-weight: 800; | ||
line-height: 46px; | ||
`; | ||
|
||
export default Heading; |
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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import { Text } from '@ui-kitten/components'; | ||
import styled from 'styled-components/native'; | ||
import { TextProps } from '@ui-kitten/components'; | ||
import React from 'react'; | ||
|
||
const Paragraph = styled(Text).attrs({ category: 'p1' })` | ||
font-size: 18px; | ||
line-height: 26px; | ||
`; | ||
import Space from '../Space'; | ||
import Text from '../Text'; | ||
|
||
const Paragraph: React.FC<TextProps> = ({ children }) => ( | ||
<Space> | ||
<Text>{children}</Text> | ||
</Space> | ||
); | ||
|
||
export default Paragraph; |
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,10 @@ | ||
import { Text } from '@ui-kitten/components'; | ||
import styled from 'styled-components/native'; | ||
|
||
const Subheading = styled(Text).attrs({ category: 'h2' })` | ||
font-size: 25px; | ||
font-weight: 600; | ||
line-height: 38px; | ||
`; | ||
|
||
export default Subheading; |
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 { default } from './Subheading'; |
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,9 @@ | ||
import { Text as UIKitText } from '@ui-kitten/components'; | ||
import styled from 'styled-components/native'; | ||
|
||
const Text = styled(UIKitText)` | ||
font-size: 18px; | ||
line-height: 27px; | ||
`; | ||
|
||
export default Text; |
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 { default } from './Text'; |
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