-
-
Notifications
You must be signed in to change notification settings - Fork 769
/
Copy pathdesign.tsx
30 lines (26 loc) · 944 Bytes
/
design.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
import { graphql, useStaticQuery } from "gatsby";
import { GatsbyImage } from "gatsby-plugin-image";
import React, { FC } from "react";
import { GetContinuousIntegrationDesignImageQuery } from "@/graphql-types";
export const CONTINUOUS_INTEGRATION_DESIGN_IMAGE_WIDTH = 1043;
export const ContinuousIntegrationDesignImage: FC = () => {
const data = useStaticQuery<GetContinuousIntegrationDesignImageQuery>(graphql`
query getContinuousIntegrationDesignImage {
file(
relativePath: { eq: "continuous-integration/design.png" }
sourceInstanceName: { eq: "images" }
) {
childImageSharp {
gatsbyImageData(layout: CONSTRAINED, width: 1043, quality: 100)
}
}
}
`);
return (
<GatsbyImage
image={data.file?.childImageSharp?.gatsbyImageData}
style={{ maxWidth: CONTINUOUS_INTEGRATION_DESIGN_IMAGE_WIDTH + "px" }}
alt="Connect Your Ecosystem"
/>
);
};