This commit is contained in:
2021-01-11 20:39:42 +00:00
commit c5e8c04ddc
31 changed files with 21250 additions and 0 deletions

30
src/pages/404.js Normal file
View File

@@ -0,0 +1,30 @@
import React from "react";
import { graphql } from "gatsby";
import Layout from "../layout";
import Header from "../components/header";
import HeaderLogo from "../components/header-logo";
import Section from "../components/section";
export default function Index({ data }) {
return (
<Layout>
<Header image={data.headerImage.childImageSharp.fluid}>
<HeaderLogo visible={true} />
<h2>404</h2>
</Header>
<Section variant="primary">oops.</Section>
</Layout>
);
}
export const query = graphql`
query {
headerImage: file(relativePath: { eq: "bathroom.png" }) {
childImageSharp {
fluid(maxWidth: 1920, quality: 100) {
...GatsbyImageSharpFluid_withWebp
}
}
}
}
`;

60
src/pages/index.js Normal file
View File

@@ -0,0 +1,60 @@
import React from "react";
import { graphql } from "gatsby";
import Layout from "../layout";
import Header from "../components/header";
import HeaderLogo from "../components/header-logo";
import Section from "../components/section";
import ReviewSummary from "../components/review-summary";
import CustomSlick from "../components/custom-slick";
import Text from "../components/text";
export default function Index({ data }) {
return (
<Layout>
<Header image={data.headerImage.childImageSharp.fluid}>
<HeaderLogo />
</Header>
<Section>
<Text>
ABC Project Design Ltd is a medium sized family run business with more
than 30 years experience in the building and construction industry. We
offer a fully certified and accredited bathroom refurbishment service.
</Text>
<Text>
We currently have 15 skilled tradesman within our workforce and
operate in Essex, Hertfordshire, Kent and London.
</Text>
</Section>
<Section variant="primary">
<CustomSlick>
{data.site.siteMetadata.reviews.map((review, i) => (
<ReviewSummary key={i} review={review} />
))}
</CustomSlick>
</Section>
</Layout>
);
}
export const query = graphql`
query {
headerImage: file(relativePath: { eq: "bathroom.png" }) {
childImageSharp {
fluid(maxWidth: 1920, quality: 100) {
...GatsbyImageSharpFluid_withWebp
}
}
}
site {
siteMetadata {
reviews {
name
title
text
author
date
}
}
}
}
`;