File tree 7 files changed +37
-45
lines changed
7 files changed +37
-45
lines changed Original file line number Diff line number Diff line change 1
1
node_modules /
2
2
.cache /
3
3
public /
4
- .env *
4
+ .env *
5
+ .vercel
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 20
20
},
21
21
"scripts" : {
22
22
"build" : " gatsby build" ,
23
- "now -build" : " npm run build" ,
23
+ "vercel -build" : " npm run build" ,
24
24
"develop" : " gatsby develop" ,
25
25
"start" : " npm run develop" ,
26
26
"test" : " echo \" Error: no test specified\" && exit 1"
Original file line number Diff line number Diff line change @@ -3,20 +3,30 @@ import styled from "styled-components";
3
3
4
4
const Footer = ( { name, address, companyNumber } ) => (
5
5
< >
6
- < Row >
7
- < a href = "https://ecologi.com/diff" target = "_blank" rel = "noopener noreferrer" title = "View our Ecologi profile" style = "width:200px;display:inline-block;" >
8
- < img alt = "We offset our carbon footprint via Ecologi" src = "https://api.ecologi.com/badges/cpw/5e3fed1c59ec630016e27dd7?black=true& landscape = true " style = "width:200px;" />
9
- </ a >
10
- </ Row >
11
- < Row >
12
- < footer >
13
- { name } < Em > |</ Em > { " " }
14
- { Object . values ( address || { } )
15
- . filter ( Boolean )
16
- . join ( ", " ) } { " " }
17
- < Em > |</ Em > #{ companyNumber }
18
- </ footer >
19
- </ Row >
6
+ < Row >
7
+ < a
8
+ href = "https://ecologi.com/diff"
9
+ target = "_blank"
10
+ rel = "noopener noreferrer"
11
+ title = "View our Ecologi profile"
12
+ style = { { width : "200px" , display : "inline-block" } }
13
+ >
14
+ < img
15
+ alt = "We offset our carbon footprint via Ecologi"
16
+ src = "https://api.ecologi.com/badges/cpw/5e3fed1c59ec630016e27dd7?black=true& landscape = true "
17
+ style = { { width : "200px" } }
18
+ />
19
+ </ a >
20
+ </ Row >
21
+ < Row >
22
+ < footer >
23
+ { name } < Em > |</ Em > { " " }
24
+ { Object . values ( address || { } )
25
+ . filter ( Boolean )
26
+ . join ( ", " ) } { " " }
27
+ < Em > |</ Em > #{ companyNumber }
28
+ </ footer >
29
+ </ Row >
20
30
</ >
21
31
) ;
22
32
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ const NotFoundPage = ({
11
11
description : { description } ,
12
12
twitterHandle,
13
13
address,
14
- companyNumber
15
- }
16
- }
14
+ companyNumber,
15
+ } ,
16
+ } ,
17
17
} ) => (
18
18
< Layout { ...{ address, companyNumber } } >
19
19
< SEO title = "404: Not found" { ...{ name, description, twitterHandle } } />
@@ -26,8 +26,8 @@ const NotFoundPage = ({
26
26
) ;
27
27
28
28
export const pageQuery = graphql `
29
- query FourOhFourQuery($contentfulCompanyId: String!) {
30
- contentfulCompany(id : { eq: $contentfulCompanyId }) {
29
+ query FourOhFourQuery {
30
+ contentfulCompany(name : { regex: "/diff/i" }) {
31
31
address {
32
32
line1
33
33
city
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ const IndexPage = ({
15
15
description : { description } ,
16
16
twitterHandle,
17
17
address,
18
- companyNumber
19
- }
20
- }
18
+ companyNumber,
19
+ } ,
20
+ } ,
21
21
} ) => {
22
22
return (
23
23
< Layout { ...{ name, address, companyNumber } } >
@@ -39,8 +39,8 @@ const IndexPage = ({
39
39
} ;
40
40
41
41
export const pageQuery = graphql `
42
- query IndexQuery($contentfulCompanyId: String!) {
43
- contentfulCompany(id : { eq: $contentfulCompanyId }) {
42
+ query IndexQuery {
43
+ contentfulCompany(name : { regex: "/diff/i" }) {
44
44
type
45
45
byline
46
46
contactEmail
Original file line number Diff line number Diff line change 15
15
"build" : {
16
16
"env" : {
17
17
"CONTENTFUL_ACCESS_TOKEN" : " @contentful-access-token" ,
18
- "CONTENTFUL_COMPANY_ID" : " @contentful-company-id" ,
19
18
"CONTENTFUL_HOST" : " @contentful-host" ,
20
19
"CONTENTFUL_SPACE_ID" : " @contentful-space-id"
21
20
}
You can’t perform that action at this time.
0 commit comments