Skip to content

Commit

Permalink
Merge main into branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jackreimers committed Jul 17, 2023
2 parents b50aead + f251cfd commit b28fff9
Show file tree
Hide file tree
Showing 69 changed files with 2,733 additions and 5,487 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ yarn-error.log*
# Next bundle analyser
/analyze

# Partytown lib files
/public/~partytown

1 change: 1 addition & 0 deletions .tina/__generated__/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .tina/__generated__/_graphql.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .tina/__generated__/_lookup.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .tina/__generated__/_schema.json

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions .tina/__generated__/formGroup.module-5FN2Y3T3.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions .tina/__generated__/formGroup.module-ZFP4VTLQ.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions .tina/__generated__/popup.module-6BC6KIGZ.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions .tina/__generated__/popup.module-FIWROKEC.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .tina/__generated__/training.module-IJDVUL7D.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .tina/__generated__/training.module-NPVIDT3N.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import { Collection, Template } from "tinacms";
import * as Schemas from "../../components/blocks";
import { seoSchema } from "../../components/util/seo";

const educationalSolutionsRowSchema: Template = {
const industrySolutionsRowSchema: Template = {
name: "SolutionsRow",
label: "Educational Solutions Row",
label: "Industry Solutions Row",
fields: [
{
type: "image",
label: "1st Card Image",
name: "imgSrc1",
// @ts-ignore
uploadDir: () => "/educational",
uploadDir: () => "/industry",
},
{
type: "string",
Expand All @@ -29,7 +29,7 @@ const educationalSolutionsRowSchema: Template = {
label: "2nd Card Image",
name: "imgSrc2",
// @ts-ignore
uploadDir: () => "/educational",
uploadDir: () => "/industry",
},
{
type: "string",
Expand All @@ -46,7 +46,7 @@ const educationalSolutionsRowSchema: Template = {
label: "3rd Card Image",
name: "imgSrc3",
// @ts-ignore
uploadDir: () => "/educational",
uploadDir: () => "/industry",
},
{
type: "string",
Expand Down Expand Up @@ -129,32 +129,42 @@ const contactUsBlockSchema: Template = {
],
};

export const educationalSchema: Collection = {
label: "Educational - Index",
name: "educational",
export const industrySchema: Collection = {
label: "Industry Pages",
name: "industry",
format: "mdx",
path: "content/educational",
path: "content/industry",
ui: {
router: ({ document }) => {
return "/educational";
return `/industry/${document._sys.filename}`;
},
},
fields: [
// @ts-ignore
seoSchema,
{
type: "string",
label: "Page heading",
name: "heading",
required: true,
},
{
type: "string",
label: "Page Subheading",
name: "subHeading",
},
{
type: "image",
label: "Banner Image",
name: "bannerImg",
required: true,
// @ts-ignore
uploadDir: () => "/educational",
uploadDir: () => "/industry",
},
{
type: "image",
label: "Whitepaper File",
name: "whitepaperFile",
required: true,
// @ts-ignore
uploadDir: () => "/files",
},
Expand All @@ -164,7 +174,7 @@ export const educationalSchema: Collection = {
name: "_body",
templates: [
...Schemas.pageBlocks,
educationalSolutionsRowSchema,
industrySolutionsRowSchema,
whitepaperBlockSchema,
bookingFormBlockSchema,
contactUsBlockSchema,
Expand Down
6 changes: 5 additions & 1 deletion .tina/collections/training.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ export const trainingSchema: Collection = {
type: "string",
name: "title",
label: "Title",
required: true,
},
{
type: "boolean",
name: "showTestimonials",
label: "Show Testimonials",
},
{
type: "object",
Expand Down
4 changes: 2 additions & 2 deletions .tina/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {
consultingSchema,
consultingTagSchema,
} from "./collections/consulting";
import { educationalSchema } from "./collections/educational";
import { employmentSchema } from "./collections/employment";
import { globalSchema } from "./collections/global";
import { industrySchema } from "./collections/industry";
import { locationSchema } from "./collections/location";
import { marketingSchema } from "./collections/marketing";
import { newsletterSchema } from "./collections/newsletters";
Expand Down Expand Up @@ -69,10 +69,10 @@ const config = defineStaticConfig({
productsIndexSchema,
productsSchema,
trainingSchema,
educationalSchema,
newsletterSchema,
presenterSchema,
locationSchema,
industrySchema,
],
},
});
Expand Down
7 changes: 7 additions & 0 deletions .tina/queries/queries.gql
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,10 @@ query productContentQuery($relativePath: String!) {
...ProductsParts
}
}

query industryContentQuery($relativePath: String!) {
...LayoutQueryFragment
industry(relativePath: $relativePath) {
...IndustryParts
}
}
1 change: 1 addition & 0 deletions components/blocks/breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const Breadcrumbs: FC<BreadcrumbsProps> = (props) => {
{ from: "employment", to: "Employment" },
{ from: "video-production", to: "Video Production" },
{ from: "Training-videos", to: "Training Videos" },
{ from: "industry", to: "Industry" },
{ from: props.path, to: `${props.title}` },
]}
activeItemClassName={listItemStyling}
Expand Down
3 changes: 2 additions & 1 deletion components/blocks/contentCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Template } from "tinacms";
import { TinaMarkdown } from "tinacms/dist/rich-text";
import { componentRenderer } from "./mdxComponentRenderer";
import { verticalListItemSchema } from "./verticalListItem";
import { videoEmbedBlockSchema } from "./videoEmbed";

export const ContentCard = ({ data }) => {
Expand Down Expand Up @@ -43,7 +44,7 @@ export const contentCardBlockSchema: Template = {
type: "rich-text",
label: "Content",
name: "content",
templates: [videoEmbedBlockSchema],
templates: [videoEmbedBlockSchema, verticalListItemSchema],
},
],
};
4 changes: 2 additions & 2 deletions components/blocks/customImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export const CustomImage = ({ data }) => {
<Image
src={data.src}
alt={data.altText}
height={data.height}
width={data.width}
height={data.height ?? 400}
width={data.width ?? 400}
className="inline-block"
/>
</LinkWrapper>
Expand Down
Loading

0 comments on commit b28fff9

Please sign in to comment.