-
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.
refactor(ui): adjuste the styleguide page and related components
- Loading branch information
Showing
4 changed files
with
133 additions
and
119 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
apps/uikit/src/app/components/StyleGuide/Typography/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import React from 'react'; | ||
import { | ||
ExampleContent, | ||
FlexBox, | ||
ParagraphContainer, | ||
TagLabel, | ||
TagText, | ||
TagUnderlinedText, | ||
TypographySectionWrapper, | ||
} from '@react-monorepo/shared-ui'; | ||
|
||
export const TypographyExample: React.FC<{ | ||
tag: string; | ||
children: React.ReactNode; | ||
}> = ({ tag, children }) => ( | ||
<FlexBox | ||
direction="row" | ||
gap="4" | ||
wrap="nowrap" | ||
justify="between" | ||
align="center" | ||
> | ||
<TagLabel> | ||
<TagText>{tag}</TagText> | ||
</TagLabel> | ||
<ExampleContent>{React.createElement(tag, {}, children)}</ExampleContent> | ||
</FlexBox> | ||
); | ||
|
||
export const TypographySection: React.FC = () => ( | ||
<TypographySectionWrapper $isbig={true}> | ||
<TagUnderlinedText>Headlines</TagUnderlinedText> | ||
<TypographyExample tag="h1">This is the styleguide</TypographyExample> | ||
<TypographyExample tag="h2">This is the styleguide</TypographyExample> | ||
<TypographyExample tag="h3">This is the styleguide</TypographyExample> | ||
<TypographyExample tag="h4">This is the styleguide</TypographyExample> | ||
<TypographyExample tag="h5">This is the styleguide</TypographyExample> | ||
<ParagraphContainer | ||
direction="column" | ||
gap="0" | ||
wrap="nowrap" | ||
justify="between" | ||
align="start" | ||
> | ||
<TagUnderlinedText>Paragraph</TagUnderlinedText> | ||
<p> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur | ||
dolore rem modi laboriosam deleniti vitae. Aspernatur saepe itaque, | ||
numquam autem inventore, magnam, aperiam quidem quis ea id minima nemo | ||
corporis! | ||
</p> | ||
</ParagraphContainer> | ||
</TypographySectionWrapper> | ||
); |
Empty file.
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