-
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.
Fill imprint page with content, via new Reader component
- Loading branch information
Sebastian Herrmann
committed
Aug 14, 2023
1 parent
8988479
commit 9082619
Showing
3 changed files
with
106 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import styled from "@emotion/styled"; | ||
import { colors, spacings } from "../../common/styleVariables"; | ||
import { textStyles } from "../Text"; | ||
|
||
/** | ||
* UI component to render HTML-style content with some default styles. | ||
*/ | ||
const Reader = styled.div({ | ||
backgroundColor: colors.white, | ||
padding: `0 ${spacings.horizontalPagePadding}`, | ||
...textStyles, | ||
h2: { | ||
margin: `${spacings.get(4)}px 0 ${spacings.get(1)}px 0`, | ||
}, | ||
p: { | ||
margin: `0 0 ${spacings.get(2)}px 0`, | ||
"&:last-of-type": { | ||
margin: 0, | ||
}, | ||
}, | ||
}); | ||
|
||
export default Reader; |
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