Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add new training page #133

Merged
merged 4 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
)
}
Loading