File tree Expand file tree Collapse file tree 3 files changed +17
-11
lines changed Expand file tree Collapse file tree 3 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 1
- import type { GatsbyConfig } from " gatsby" ;
1
+ import type { GatsbyConfig } from ' gatsby' ;
2
2
3
3
const config : GatsbyConfig = {
4
4
siteMetadata : {
@@ -10,8 +10,9 @@ const config: GatsbyConfig = {
10
10
// If you use VSCode you can also use the GraphQL plugin
11
11
// Learn more at: https://gatsby.dev/graphql-typegen
12
12
graphqlTypegen : true ,
13
- plugins : [ "gatsby-plugin-sass" ,
14
- `gatsby-plugin-postcss` ,
13
+ plugins : [
14
+ 'gatsby-plugin-sass' ,
15
+ `gatsby-plugin-postcss` ,
15
16
`gatsby-plugin-react-helmet` ,
16
17
`gatsby-plugin-image` ,
17
18
`gatsby-plugin-sharp` ,
@@ -60,7 +61,7 @@ const config: GatsbyConfig = {
60
61
// Use this plugin if you are deploying you site to Gatsby Cloud
61
62
// To learn more, visit: https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/deploying-to-gatsby-cloud/
62
63
// `gatsby-plugin-gatsby-cloud`,
63
- ]
64
+ ] ,
64
65
} ;
65
66
66
67
export default config ;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React from 'react';
2
2
import Button from './button' ;
3
3
4
4
import EnergyPage from '../images/energy-page.png' ;
5
+ import { StaticImage } from 'gatsby-plugin-image' ;
5
6
6
7
const Hero = ( ) => {
7
8
return (
@@ -14,7 +15,8 @@ const Hero = () => {
14
15
< div className = 'grid lg:grid-cols-12 grid-cols-1 xl:gap-8 items-center relative' >
15
16
< div className = 'hero-text lg:col-span-6 flex flex-col items-start pb-10 xl:pr-18 lg:pr-16 ' >
16
17
< h2 className = 'lg:text-display-lg text-display-md font-semibold pb-4' >
17
- Empowering Sustainable Energy < br > </ br > Through Real-Time Monitoring
18
+ Empowering Sustainable Energy < br > </ br > Through Real-Time
19
+ Monitoring
18
20
</ h2 >
19
21
< p className = 'text-body-md font-normal text-neutral-600 pb-8' >
20
22
At Wia, we're redefining the future of energy. Our innovative
@@ -24,10 +26,13 @@ const Hero = () => {
24
26
</ p >
25
27
< Button label = 'Speak to an Expert' link = '/' size = 'lg' />
26
28
</ div >
27
-
28
- < div className = 'circle-background flex relative' >
29
- < img src = { EnergyPage } alt = 'energy-page' className = 'rounded-lg' />
30
-
29
+
30
+ < div className = 'circle-background flex relative' >
31
+ < StaticImage
32
+ src = '../images/energy-page.png'
33
+ alt = 'energy-page'
34
+ className = 'static-image rounded-lg'
35
+ />
31
36
</ div >
32
37
</ div >
33
38
</ div >
Original file line number Diff line number Diff line change 16
16
width : 592px ;
17
17
height : 592px ;
18
18
19
- img {
19
+ .static-image {
20
20
position : absolute ;
21
21
height : 447px ;
22
22
width : 828px !important ;
39
39
width : 300px ;
40
40
height : 300px ;
41
41
right : -100px ;
42
- img {
42
+ .static-image {
43
43
width : 414px !important ;
44
44
height : 223.5px ;
45
45
left : 38px ;
You can’t perform that action at this time.
0 commit comments