1
- import { Link } from ' gatsby' ;
2
- import React from ' react' ;
3
- import HeaderLinks from ' ../../../components/HeaderLinks' ;
4
- import Search from ' ../../../components/Search' ;
5
- import Prism from ' ../../../components/Prism' ;
1
+ import { Link } from " gatsby"
2
+ import React from " react"
3
+ import HeaderLinks from " ../../../components/HeaderLinks"
4
+ import Search from " ../../../components/Search"
5
+ import Prism from " ../../../components/Prism"
6
6
7
-
8
7
const Hero = ( ) => {
9
- return (
10
- < div className = "hero" >
11
- < div className = "abs" >
12
- < header aria-hidden >
13
- < section >
14
- < HeaderLinks />
15
- < Search searchID = "hero-search-input" />
16
- </ section >
17
- </ header >
18
- < section className = "intro" >
19
- < div className = "named-logo" >
20
- < img src = "/img/logo.svg" alt = "GraphQL Logo" />
21
- < h1 > GraphQL</ h1 >
22
- </ div >
8
+ return (
9
+ < div className = "hero" >
10
+ < div className = "abs" >
11
+ < header aria-hidden >
12
+ < section >
13
+ < HeaderLinks />
14
+ < Search searchID = "hero-search-input" />
15
+ </ section >
16
+ </ header >
17
+ < section className = "intro" >
18
+ < div className = "named-logo" >
19
+ < img src = "/img/logo.svg" alt = "GraphQL Logo" />
20
+ < h1 > GraphQL</ h1 >
21
+ </ div >
23
22
24
- < div className = "marketing-col" >
25
- < h3 > Describe your data</ h3 >
26
- < Prism
27
- code = { `type Project {
23
+ < div className = "marketing-col" >
24
+ < h3 > Describe your data</ h3 >
25
+ < Prism
26
+ code = { `type Project {
28
27
name: String
29
28
tagline: String
30
- contributors: [User]
29
+ contributors: [User]
31
30
}` }
32
- language = { "graphql" }
33
- />
34
- </ div >
31
+ language = { "graphql" }
32
+ />
33
+ </ div >
35
34
36
- < div className = "marketing-col" >
37
- < h3 > Ask for what you want</ h3 >
38
- < Prism
39
- code = { `{
35
+ < div className = "marketing-col" >
36
+ < h3 > Ask for what you want</ h3 >
37
+ < Prism
38
+ code = { `{
40
39
project(name: "GraphQL") {
41
40
tagline
42
41
}
43
42
}` }
44
- language = { "graphql" }
45
- />
46
- </ div >
43
+ language = { "graphql" }
44
+ />
45
+ </ div >
47
46
48
- < div className = "marketing-col" >
49
- < h3 > Get predictable results</ h3 >
50
- < Prism
51
- code = { `{
47
+ < div className = "marketing-col" >
48
+ < h3 > Get predictable results</ h3 >
49
+ < Prism
50
+ code = { `{
52
51
"project": {
53
52
"tagline": "A query language for APIs"
54
53
}
55
54
}` }
56
- language = { "json" }
57
- />
58
- </ div >
59
- </ section >
60
-
61
- < div className = "buttons-unit" >
62
- < Link className = "button" to = "/code/" >
63
- Get Started
64
- </ Link >
65
- < Link className = "button" to = "/learn/" >
66
- Learn More
67
- </ Link >
55
+ language = { "json" }
56
+ />
68
57
</ div >
58
+ </ section >
59
+
60
+ < div className = "buttons-unit" >
61
+ < Link className = "button" to = "/code/" >
62
+ Get Started
63
+ </ Link >
64
+ < Link className = "button" to = "/learn/" >
65
+ Learn More
66
+ </ Link >
69
67
</ div >
70
68
</ div >
71
- )
72
- } ;
69
+ </ div >
70
+ )
71
+ }
73
72
74
- export default Hero ;
73
+ export default Hero
0 commit comments