Skip to content

Commit

Permalink
fix: add gatsby queries
Browse files Browse the repository at this point in the history
  • Loading branch information
schettn committed Apr 28, 2024
1 parent d0d4ac1 commit ae6c5bd
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 2 deletions.
17 changes: 17 additions & 0 deletions src/pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import sabineSulzer from "../images/team/michael-foster.jpeg";
import janEmig from "../images/team/jan.png";
import simonPrast from "../images/team/simon.webp";
import christianAichner from "../images/team/christian.webp";
import { graphql } from "gatsby";

const team = [
{
Expand Down Expand Up @@ -216,3 +217,19 @@ export default Page;
export const pageConfig: PageConfig = {
label: "Über uns",
};

export const query = graphql`
query ($jaenPageId: String!) {
...JaenPageQuery
allJaenPage {
nodes {
...JaenPageData
children {
...JaenPageData
}
}
}
}
`;

export { Head } from "@atsnek/jaen";
18 changes: 17 additions & 1 deletion src/pages/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
useNotificationsContext,
} from "@atsnek/jaen";
import { zodResolver } from "@hookform/resolvers/zod";
import { Link } from "gatsby";
import { Link, graphql } from "gatsby";
import { forwardRef, useEffect, useId } from "react";
import {
Form,
Expand Down Expand Up @@ -355,3 +355,19 @@ export default Page;
export const pageConfig: PageConfig = {
label: "Contact",
};

export const query = graphql`
query ($jaenPageId: String!) {
...JaenPageQuery
allJaenPage {
nodes {
...JaenPageData
children {
...JaenPageData
}
}
}
}
`;

export { Head } from "@atsnek/jaen";
18 changes: 17 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { List, ListItem } from "@/components/List";
import { SectionIntro } from "@/components/SectionIntro";
import { StylizedImage } from "@/components/StylizedImage";
import { Field, PageProps, useJaenPageIndex } from "@atsnek/jaen";
import { Link } from "gatsby";
import { Link, graphql } from "gatsby";
import React from "react";

import servicesSvg from "../images/services.svg";
Expand Down Expand Up @@ -260,3 +260,19 @@ const IndexPage: React.FC<PageProps> = () => {
};

export default IndexPage;

export const query = graphql`
query ($jaenPageId: String!) {
...JaenPageQuery
allJaenPage {
nodes {
...JaenPageData
children {
...JaenPageData
}
}
}
}
`;

export { Head } from "@atsnek/jaen";
17 changes: 17 additions & 0 deletions src/pages/process.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { TagList, TagListItem } from "@/components/TagList";
import imageLaptop from "../images/laptop.jpg";
import imageMeeting from "../images/meeting.jpg";
import imageWhiteboard from "../images/whiteboard.jpg";
import { graphql } from "gatsby";

function Section({ title, image, children }) {
return (
Expand Down Expand Up @@ -261,3 +262,19 @@ export default Page;
export const pageConfig: PageConfig = {
label: "Contact",
};

export const query = graphql`
query ($jaenPageId: String!) {
...JaenPageQuery
allJaenPage {
nodes {
...JaenPageData
children {
...JaenPageData
}
}
}
}
`;

export { Head } from "@atsnek/jaen";

0 comments on commit ae6c5bd

Please sign in to comment.