-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add links and collapse to block container
- Loading branch information
1 parent
d972208
commit 449ca8c
Showing
9 changed files
with
99 additions
and
34 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
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
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,14 +1,21 @@ | ||
import styled from '@emotion/styled'; | ||
import React, { FC } from 'react'; | ||
import { Flex } from 'theme-ui'; | ||
|
||
export interface FlexContainerProps { | ||
align?: string; | ||
} | ||
export const FlexContainer = styled.div<FlexContainerProps>( | ||
({ align = 'center' }) => ({ | ||
display: 'flex', | ||
alignItems: align, | ||
justifyContent: align, | ||
flexDirection: 'column', | ||
flexBasis: '100%', | ||
}), | ||
export const FlexContainer: FC<FlexContainerProps> = ({ | ||
align = 'center', | ||
children, | ||
}) => ( | ||
<Flex | ||
css={{ | ||
alignItems: align, | ||
justifyContent: align, | ||
flexDirection: 'column', | ||
flexBasis: '100%', | ||
}} | ||
> | ||
{children} | ||
</Flex> | ||
); |
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
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,16 +1,10 @@ | ||
import React, { FC } from 'react'; | ||
import styled from '@emotion/styled'; | ||
import { Heading, HeadingProps, Theme } from 'theme-ui'; | ||
|
||
const StyledHeading = styled(Heading)<{ theme?: Theme }>(({ theme }) => ({ | ||
fontWeight: 400, | ||
paddingBottom: `${theme?.space?.[3]}px`, | ||
})); | ||
import { Heading, HeadingProps } from 'theme-ui'; | ||
|
||
export type SubtitleProps = HeadingProps; | ||
|
||
export const Subtitle: FC<SubtitleProps> = ({ children, ...rest }) => ( | ||
<StyledHeading as="h3" color="fadedText" {...rest}> | ||
<Heading as="h3" color="fadedText" css={{ fontWeight: 400 }} {...rest}> | ||
{children} | ||
</StyledHeading> | ||
</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
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