Skip to content

Commit

Permalink
Merge pull request #133 from thisisobate/uche/training-page
Browse files Browse the repository at this point in the history
Feat: Add new training page
  • Loading branch information
niklasmtj authored Mar 28, 2024
2 parents b87f660 + 29d0d85 commit e9669d5
Show file tree
Hide file tree
Showing 8 changed files with 111 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions content/trainings/LinuxFoundation/LFX.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Certified GitOps Associate Certification (CGOA)
description: "Become a professional by getting certified in GitOps"
thumbnail: LFX-Gitops-certification-1.0.png
site: https://training.linuxfoundation.org/certification/certified-gitops-associate-cgoa/
---

{/* Note: To generate "thumbnail_url", visit https://embed.ly/docs/explore/extract
and enter the link to the resource. Once you do that, select any thumbnail url of choice to use and download.*/}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: GitOps At Scale course by Codefresh
description: "Become a professional by getting certified in GitOps"
thumbnail: gitops-at-scale.png
site: https://learning.codefresh.io/course/gitops-scale
---

{/* Note: To generate "thumbnail_url", visit https://embed.ly/docs/explore/extract
and enter the link to the resource. Once you do that, select any thumbnail url of choice to use and download.*/}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions content/trainings/codefresh-gitops-fundamentals/codefresh.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: GitOps Fundamentals course by Codefresh
description: "Become a professional by getting certified in GitOps"
thumbnail: codefresh-gitops-fundamental.png
site: https://learning.codefresh.io/course/gitops-fundamentals
---

{/* Note: To generate "thumbnail_url", visit https://embed.ly/docs/explore/extract
and enter the link to the resource. Once you do that, select any thumbnail url of choice to use and download.*/}
12 changes: 12 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ module.exports = {
title: "Community",
url: "/community",
},
{
title: "Training",
url: "/training",
},
{
title: "Get Involved",
url: "/get-involved",
Expand Down Expand Up @@ -103,6 +107,14 @@ module.exports = {
},
__key: "principles",
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "trainings",
path: "./content/trainings",
},
__key: "trainings",
},
{
resolve: "gatsby-source-filesystem",
options: {
Expand Down
72 changes: 72 additions & 0 deletions src/pages/training.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import * as React from "react"
import { useStaticQuery, graphql } from "gatsby"
import Layout from "../components/layout"
import Seo from "../components/seo"
import thumbnail from "../images/thumbnail-default.png"
import { Container } from "../components/ui/grid"
import { Grid } from "../components/ui/grid"
import CardPost from "../components/ui/card-post"

export default function TrainingPage({ location }) {
const query = useStaticQuery(
graphql`
query {
allMdx(
filter: { fileAbsolutePath: { regex: "/(content/trainings)/" } }
sort: { order: ASC, fields: frontmatter___title }
limit: 6
) {
edges {
node {
frontmatter {
title
site
description
thumbnail {
childImageSharp {
gatsbyImageData(
width: 400
placeholder: BLURRED
formats: [AUTO, WEBP, AVIF]
)
}
}
}
}
}
}
}
`
)
return (
<Layout location={location}>
<Seo
title="training and certification"
description="Become a professional by getting certified in GitOps"
url={location.href}
image={thumbnail}
/>
<Container className="pt-28 lg:pt-48">
<h1 className="mb-8 lg:mb-12 text-center lg:text-left">
Training & Certification
</h1>
<Grid md={2} lg={3}>
{query.allMdx.edges.map((item, index) => {
return (
<CardPost
key={index}
title={item.node.frontmatter.title}
date={item.node.frontmatter.date}
to={item.node.frontmatter.site}
img={
item.node.frontmatter.thumbnail?.childImageSharp
.gatsbyImageData
}
/>
)
})}
</Grid>
</Container>
</Layout>
)
}

0 comments on commit e9669d5

Please sign in to comment.