-
-
Notifications
You must be signed in to change notification settings - Fork 769
/
Copy pathconnect.tsx
31 lines (27 loc) · 975 Bytes
/
connect.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { graphql, useStaticQuery } from "gatsby";
import { GatsbyImage } from "gatsby-plugin-image";
import React, { FC } from "react";
import { GetContinuousIntegrationConnectImageQuery } from "@/graphql-types";
export const CONTINUOUS_INTEGRATION_CONNECT_IMAGE_WIDTH = 869;
export const ContinuousIntegrationConnectImage: FC = () => {
const data =
useStaticQuery<GetContinuousIntegrationConnectImageQuery>(graphql`
query getContinuousIntegrationConnectImage {
file(
relativePath: { eq: "continuous-integration/connect.png" }
sourceInstanceName: { eq: "images" }
) {
childImageSharp {
gatsbyImageData(layout: CONSTRAINED, width: 869, quality: 100)
}
}
}
`);
return (
<GatsbyImage
image={data.file?.childImageSharp?.gatsbyImageData}
style={{ maxWidth: CONTINUOUS_INTEGRATION_CONNECT_IMAGE_WIDTH + "px" }}
alt="Connect Your Ecosystem"
/>
);
};