File tree 1 file changed +22
-18
lines changed
src/Containers/Sections/Hero 1 file changed +22
-18
lines changed Original file line number Diff line number Diff line change
1
+ import { Link } from 'gatsby' ;
1
2
import React from 'react' ;
2
3
import HeaderLinks from '../../../components/HeaderLinks' ;
3
4
import Prism from '../../../components/Prism' ;
4
5
5
6
6
7
const Hero = ( ) => {
7
8
return (
8
- < div className = "hero" >
9
+ < div className = "hero" >
9
10
< div className = "abs" >
10
11
< header aria-hidden >
11
12
< section >
@@ -20,49 +21,52 @@ const Hero = () => {
20
21
21
22
< div className = "marketing-col" >
22
23
< h3 > Describe your data</ h3 >
23
- < Prism code = {
24
- `type Project {
24
+ < Prism
25
+ code = { `type Project {
25
26
name: String
26
27
tagline: String
27
28
contributors: [User]
28
- }`
29
- } language = { "graphql" } />
29
+ }` }
30
+ language = { "graphql" }
31
+ />
30
32
</ div >
31
33
32
34
< div className = "marketing-col" >
33
35
< h3 > Ask for what you want</ h3 >
34
- < Prism code = {
35
- `{
36
+ < Prism
37
+ code = { `{
36
38
project(name: "GraphQL") {
37
39
tagline
38
40
}
39
- }`
40
- } language = { "graphql" } />
41
+ }` }
42
+ language = { "graphql" }
43
+ />
41
44
</ div >
42
45
43
46
< div className = "marketing-col" >
44
47
< h3 > Get predictable results</ h3 >
45
- < Prism code = {
46
- `{
48
+ < Prism
49
+ code = { `{
47
50
"project": {
48
51
"tagline": "A query language for APIs"
49
52
}
50
- }`
51
- } language = { "json" } />
53
+ }` }
54
+ language = { "json" }
55
+ />
52
56
</ div >
53
57
</ section >
54
58
55
59
< div className = "buttons-unit" >
56
- < a className = "button" href = "/code/" >
60
+ < Link className = "button" to = "/code/" >
57
61
Get Started
58
- </ a >
59
- < a className = "button" href = "/learn/" >
62
+ </ Link >
63
+ < Link className = "button" to = "/learn/" >
60
64
Learn More
61
- </ a >
65
+ </ Link >
62
66
</ div >
63
67
</ div >
64
68
</ div >
65
- ) ;
69
+ )
66
70
} ;
67
71
68
72
export default Hero ;
You can’t perform that action at this time.
0 commit comments