From c6f40d0b417ba84366e7254002de9adb86ce7308 Mon Sep 17 00:00:00 2001 From: tarafanlin <35607644+tarafanlin@users.noreply.github.com> Date: Sun, 19 Jul 2020 11:34:02 -0700 Subject: [PATCH] adding some coodeblocks and rearranging the page --- pages/system/typography.js | 98 +++++++++++++++++++++++++------------- 1 file changed, 65 insertions(+), 33 deletions(-) diff --git a/pages/system/typography.js b/pages/system/typography.js index 1ea0decc..91d7c075 100644 --- a/pages/system/typography.js +++ b/pages/system/typography.js @@ -51,11 +51,12 @@ export default class SystemPageTypography extends React.Component {

- Import React and the Typography Component. + Import React and the typography components. If needed, import the ViewSourceLink component.
- {`import { H1, H2, H3, H4, P, UL, OL, LI } from 'slate-react-system'; `} + {`import { H1, H2, H3, H4, P, UL, OL, LI } from 'slate-react-system'; +import ViewSourceLink from "~/components/system/ViewSourceLink";`}

@@ -84,8 +85,7 @@ export default class SystemPageTypography extends React.Component {

- {` - + {` This is heading level 1 @@ -99,8 +99,50 @@ This is heading level 3 This is heading level 4 - - `} +`} + +
+
+ Type Styles +
+
+ This text is bold + This text is italic + This text is underlined +
+
+ + {`This text is bold + +This text is italic + +This text is underlined`} + +
+
+ Typefaces +
+
+ Inter + 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 + 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 + 0 1 2 3 4 5 6 7 8 9 +
+
+ Jet Brains + 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 + 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 + 0 1 2 3 4 5 6 7 8 9 +
+
+ + {`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 +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 +0 1 2 3 4 5 6 7 8 9 + +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 +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 +0 1 2 3 4 5 6 7 8 9`}

@@ -121,8 +163,7 @@ This is heading level 4

- {` - + {` Rainbow Cloud Cake @@ -132,40 +173,31 @@ This is heading level 4 Cloud Cake Rainbow - - `} +`}

- Typefaces -
-
- Inter - 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 - 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 - 0 1 2 3 4 5 6 7 8 9 -
-
- Jet Brains - 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 - 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 - 0 1 2 3 4 5 6 7 8 9 -
-
- Type Styles -
-
- This text is bold - This text is italic - This text is underlined -
-
Hyperlinks

Internal References Link to a page External References
+
+ + {` + + Link to a page + + + + + +`} + +
+
); }