feat: init card and nav

This commit is contained in:
2021-01-14 17:12:40 +00:00
parent c5e8c04ddc
commit e129093113
19 changed files with 417 additions and 112 deletions

View File

@@ -0,0 +1,26 @@
import React from "react";
import { graphql } from "gatsby";
import Layout from "../../layout";
import Header from "../../components/header";
export default function Index({ data }) {
return (
<Layout>
<Header image={data.headerImage.childImageSharp.fluid}>
<h1>Bathrooms</h1>
</Header>
</Layout>
);
}
export const query = graphql`
query {
headerImage: file(relativePath: { eq: "bathroom2.png" }) {
childImageSharp {
fluid(maxWidth: 1920, quality: 100) {
...GatsbyImageSharpFluid_withWebp
}
}
}
}
`;

View File

@@ -0,0 +1,27 @@
import React from "react";
import { graphql } from "gatsby";
import Layout from "../../layout";
import Header from "../../components/header";
export default function Index({ location, data }) {
console.log(location);
return (
<Layout>
<Header image={data.headerImage.childImageSharp.fluid}>
<h1>Services</h1>
</Header>
</Layout>
);
}
export const query = graphql`
query {
headerImage: file(relativePath: { eq: "bathroom2.png" }) {
childImageSharp {
fluid(maxWidth: 1920, quality: 100) {
...GatsbyImageSharpFluid_withWebp
}
}
}
}
`;