File tree Expand file tree Collapse file tree 4 files changed +48
-1
lines changed Expand file tree Collapse file tree 4 files changed +48
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { Box , Text } from '@chakra-ui/react'
2
+
3
+ interface AuthorProps {
4
+ author : string
5
+ }
6
+
7
+ export function Author ( { author } : AuthorProps ) {
8
+ return (
9
+ < Box mt = "8" py = "5" >
10
+ < Text > [Author Bio Goes Here]</ Text >
11
+ < Text > { author } </ Text >
12
+ </ Box >
13
+ )
14
+ }
Original file line number Diff line number Diff line change
1
+ import { Box , useStyleConfig , Text } from '@chakra-ui/react'
2
+
3
+ interface LessonHeaderProps {
4
+ title : string
5
+ author : string
6
+ }
7
+
8
+ export function LessonHeader ( { title, author } : LessonHeaderProps ) {
9
+ const headerStyle = useStyleConfig ( 'LessonHeader' )
10
+
11
+ return (
12
+ < Box >
13
+ < Box __css = { headerStyle } >
14
+ < Text > { title } </ Text >
15
+ </ Box >
16
+ < div > Author: { author } </ div >
17
+ </ Box >
18
+ )
19
+ }
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ description:
5
5
icons : ['solidity', 'hardhat', 'openzeppelin']
6
6
---
7
7
8
- # Lesson 4: Testing your TierNFT
8
+ import { LessonHeader } from ' ../../../components/mdx/LessonHeader' ;
9
+ import { Author } from ' ../../../components/mdx/Author' ;
10
+
11
+ <LessonHeader title = " Lesson 4: Testing your TierNFT" author = " brianfive" />
9
12
10
13
In this lesson, we'll be adding automated tests for our smart contract created
11
14
in Lesson 3.
@@ -886,3 +889,5 @@ With TDD:
886
889
887
890
Go forth, test, and prosper knowing you have confidence in the code you're
888
891
deploying into the world.
892
+
893
+ <Author author = " brianfive" />
Original file line number Diff line number Diff line change @@ -133,6 +133,15 @@ const components = {
133
133
} ,
134
134
} ,
135
135
} ,
136
+ LessonHeader : {
137
+ baseStyle : {
138
+ mt : '1.5em' ,
139
+ fontWeight : 'bold' ,
140
+ fontSize : '1.875rem' ,
141
+ letterSpacing : '-.025em' ,
142
+ color : 'yellow.300' ,
143
+ } ,
144
+ } ,
136
145
}
137
146
138
147
export const theme = extendTheme ( {
You can’t perform that action at this time.
0 commit comments