Skip to content

Commit 71fb326

Browse files
committed
prettier
1 parent 0ff17d8 commit 71fb326

File tree

3 files changed

+59
-60
lines changed

3 files changed

+59
-60
lines changed
Lines changed: 53 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,73 @@
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"
66

7-
87
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>
2322

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 {
2827
name: String
2928
tagline: String
30-
contributors: [User]
29+
contributors: [User]
3130
}`}
32-
language={"graphql"}
33-
/>
34-
</div>
31+
language={"graphql"}
32+
/>
33+
</div>
3534

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={`{
4039
project(name: "GraphQL") {
4140
tagline
4241
}
4342
}`}
44-
language={"graphql"}
45-
/>
46-
</div>
43+
language={"graphql"}
44+
/>
45+
</div>
4746

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={`{
5251
"project": {
5352
"tagline": "A query language for APIs"
5453
}
5554
}`}
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+
/>
6857
</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>
6967
</div>
7068
</div>
71-
)
72-
};
69+
</div>
70+
)
71+
}
7372

74-
export default Hero;
73+
export default Hero

src/assets/css/_css/variables.less

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
/* https://www.pantone.com/color-finder/Rhodamine-Red-C */
2-
@dark-color: #171E26;
3-
@rhodamine-color: #E10098;
2+
@dark-color: #171e26;
3+
@rhodamine-color: #e10098;
44
@text-color: #202020;
55

66
.headline-font(@size: 48px, @color: @text-color) {
7-
font-family: 'Rubik', 'Helvetica Neue', Helvetica, Arial, sans-serif;
7+
font-family: "Rubik", "Helvetica Neue", Helvetica, Arial, sans-serif;
88
font-weight: 300;
99
color: @color;
1010
font-size: @size;
1111
line-height: @size * 1.4;
1212
}
1313

1414
.body-font(@size: 18px, @color: @text-color) {
15-
font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
15+
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
1616
font-weight: 300;
1717
color: @color;
1818
font-size: @size;
1919
line-height: @size * 1.6;
2020
}
2121

2222
.code-font(@size: 13px, @color: @text-color) {
23-
font-family: 'Roboto Mono', Menlo, Monaco, monospace;
23+
font-family: "Roboto Mono", Menlo, Monaco, monospace;
2424
font-weight: 400;
2525
color: @color;
2626
font-size: @size;

src/components/Header/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Header = () => {
1717
/>
1818
GraphQL
1919
</Link>
20-
<HeaderLinks/>
20+
<HeaderLinks />
2121
<Search />
2222
</section>
2323
</header>

0 commit comments

Comments
 (0)