2020-07-17 10:03:20 +03:00
import * as React from "react" ;
import * as System from "~/components/system" ;
import * as Constants from "~/common/constants" ;
2020-07-19 02:50:54 +03:00
import { css } from "@emotion/react" ;
2020-07-17 10:03:20 +03:00
import SystemPage from "~/components/system/SystemPage" ;
import ViewSourceLink from "~/components/system/ViewSourceLink" ;
2020-07-19 02:50:54 +03:00
const STYLES _CSS _LABEL = css `
display : block ;
letter - spacing : 0.2 px ;
font - size : 12 px ;
color : $ { Constants . system . darkGray } ;
margin - bottom : 8 px ;
` ;
2020-07-19 11:49:45 +03:00
const STYLES _TYPE _JETBRAINS = css `
font - family : $ { Constants . font . code } ;
` ;
const STYLES _BOLD = css `
2020-07-17 10:03:20 +03:00
font - family : $ { Constants . font . text } ;
2020-07-19 11:49:45 +03:00
font - weight : bold ;
` ;
const STYLES _ITALIC = css `
font - style : italic ;
` ;
const STYLES _UNDERLINE = css `
text - decoration : underline ;
` ;
2020-07-19 02:50:54 +03:00
export default class SystemPageTypography extends React . Component {
2020-07-17 10:03:20 +03:00
render ( ) {
return (
< SystemPage
title = "SDS: Typography"
description = "..."
url = "https://fps.onrender.com/system/typography"
>
< System . H1 >
Typography < ViewSourceLink file = "system/typography.js" / >
< / S y s t e m . H 1 >
< br / >
< br / >
< System . P >
2020-07-19 11:49:45 +03:00
The Filecoin Client uses the < a href = "https://rsms.me/inter/" target = "_blank" > Inter < /a> and <a href="https:/ / www . jetbrains . com / lp / mono / " target=" _blank " > Jet Brains < / a > a s t h e p r i m i a r i y f o n t s .
2020-07-17 10:03:20 +03:00
< / S y s t e m . P >
< br / >
< br / >
< br / >
< System . H2 > Imports < / S y s t e m . H 2 >
< hr / >
< br / >
< System . P >
2020-07-19 02:50:54 +03:00
Import React and the Typography Component .
2020-07-17 10:03:20 +03:00
< / S y s t e m . P >
< br / >
< System . CodeBlock >
2020-07-19 03:58:25 +03:00
{ ` import { H1, H2, H3, H4, P, UL, OL, LI } from 'slate-react-system'; ` }
2020-07-17 10:03:20 +03:00
< / S y s t e m . C o d e B l o c k >
< br / >
< br / >
2020-07-19 02:50:54 +03:00
< System . H2 > Typescale < / S y s t e m . H 2 >
2020-07-17 10:03:20 +03:00
< hr / >
< br / >
2020-07-19 02:50:54 +03:00
< span css = { STYLES _CSS _LABEL } > 1.953 rem & nbsp ; Semi Bold < / s p a n >
< System . H1 >
This is heading level 1
< / S y s t e m . H 1 >
< br / >
< span css = { STYLES _CSS _LABEL } > 1.563 rem & nbsp ; Medium < / s p a n >
< System . H2 >
This is heading level 2
< / S y s t e m . H 2 >
< br / >
< span css = { STYLES _CSS _LABEL } > 1.25 rem & nbsp ; Medium < / s p a n >
< System . H3 >
This is heading level 3
< / S y s t e m . H 3 >
< br / >
< span css = { STYLES _CSS _LABEL } > 1 rem & nbsp ; Medium < / s p a n >
< System . H4 >
This is heading level 4
< / S y s t e m . H 4 >
< br / >
2020-07-17 10:03:20 +03:00
< br / >
< System . CodeBlock >
2020-07-19 21:34:02 +03:00
{ ` <System.H1>
2020-07-19 02:50:54 +03:00
This is heading level 1
2020-07-17 10:03:20 +03:00
< / S y s t e m . H 1 >
< System . H2 >
2020-07-19 02:50:54 +03:00
This is heading level 2
2020-07-17 10:03:20 +03:00
< / S y s t e m . H 2 >
< System . H3 >
2020-07-19 02:50:54 +03:00
This is heading level 3
2020-07-17 10:03:20 +03:00
< / S y s t e m . H 3 >
< System . H4 >
2020-07-19 02:50:54 +03:00
This is heading level 4
2020-07-19 02:50:54 +03:00
< / S y s t e m . H 4 >
` }
2020-07-19 21:34:02 +03:00
< / S y s t e m . C o d e B l o c k >
< br / >
< br / >
2020-07-19 02:50:54 +03:00
< System . H2 > Ordered and Unordered Lists < / S y s t e m . H 2 >
< hr / >
< br / >
< System . OL >
< System . LI > Rainbow < / S y s t e m . L I >
< System . LI > Cloud < / S y s t e m . L I >
< System . LI > Cake < / S y s t e m . L I >
< / S y s t e m . O L >
< br / >
< System . UL >
< System . LI > Cloud < / S y s t e m . L I >
< System . LI > Cake < / S y s t e m . L I >
< System . LI > Rainbow < / S y s t e m . L I >
< / S y s t e m . U L >
< br / >
< br / >
< System . CodeBlock >
2020-07-19 21:34:02 +03:00
{ ` <System.OL>
2020-07-19 02:50:54 +03:00
< System . LI > Rainbow < / S y s t e m . L I >
< System . LI > Cloud < / S y s t e m . L I >
< System . LI > Cake < / S y s t e m . L I >
2020-07-17 10:03:20 +03:00
< / S y s t e m . O L >
< System . UL >
2020-07-19 02:50:54 +03:00
< System . LI > Cloud < / S y s t e m . L I >
< System . LI > Cake < / S y s t e m . L I >
< System . LI > Rainbow < / S y s t e m . L I >
2020-07-19 21:34:02 +03:00
< / S y s t e m . U L > ` }
2020-07-17 10:03:20 +03:00
< / S y s t e m . C o d e B l o c k >
< br / >
< br / >
2020-07-19 11:49:45 +03:00
< System . H2 > Hyperlinks < / S y s t e m . H 2 >
< hr / >
< br / >
< System . P > Internal References < a href = "https://slate.host" target = "_blank" > Link to a page < / a > < / S y s t e m . P >
< System . P > External References < ViewSourceLink file = "system/typography.js" / > < / S y s t e m . P >
2020-07-17 10:03:20 +03:00
< br / >
2020-07-19 21:34:02 +03:00
< br / >
< System . CodeBlock >
{ ` <System.P>
2020-07-17 10:03:20 +03:00
< a href = "https://slate.host"
2020-07-19 21:34:02 +03:00
target = "_blank" >
Link to a page
< / a >
< / S y s t e m . P >
< System . P >
< ViewSourceLink file = "system/typography.js" / >
< / S y s t e m . P > ` }
< / S y s t e m . C o d e B l o c k >
< br / >
< br / >
2020-07-19 04:39:52 +03:00
< System . H2 > Typefaces < / S y s t e m . H 2 >
< hr / >
< br / >
< System . H3 > Inter < / S y s t e m . H 3 >
< System . P > a b c d e f g h i j k l m n o p q r s t u v w x y z < / S y s t e m . P >
< System . P > A B C D E F G H I J K L M N O P Q R S T U V W X Y Z < / S y s t e m . P >
< System . P > 0 1 2 3 4 5 6 7 8 9 < / S y s t e m . P >
< br / >
< System . H3 > Fira Code < / S y s t e m . H 3 >
< System . P > a b c d e f g h i j k l m n o p q r s t u v w x y z < / S y s t e m . P >
< System . P > A B C D E F G H I J K L M N O P Q R S T U V W X Y Z < / S y s t e m . P >
< System . P > 0 1 2 3 4 5 6 7 8 9 < / S y s t e m . P >
< br / >
< System . H3 > Inter < / S y s t e m . H 3 >
< System . P > a b c d e f g h i j k l m n o p q r s t u v w x y z < / S y s t e m . P >
< System . P > A B C D E F G H I J K L M N O P Q R S T U V W X Y Z < / S y s t e m . P >
< System . P > 0 1 2 3 4 5 6 7 8 9 < / S y s t e m . P >
2020-07-17 10:03:20 +03:00
< / S y s t e m P a g e >
2020-07-19 04:39:52 +03:00
2020-07-17 10:03:20 +03:00
) ;
}
}