mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-07 16:06:12 +02:00
added docs and rules pages
This commit is contained in:
committed by
Jean-Philippe Sirois
parent
c1245dadbe
commit
bf86d72173
@@ -0,0 +1,27 @@
|
||||
import React from "react"
|
||||
import { graphql } from "gatsby"
|
||||
import { Markdown } from "../components/Markdown"
|
||||
import { Layout } from "../components/Layout"
|
||||
import { MarkdownRemark, Query } from "../generated/graphql"
|
||||
import { SEO } from "../components/SEO"
|
||||
|
||||
function AboutPage({ data }: ComponentQuery<{ md: MarkdownRemark }>) {
|
||||
const { md } = data
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<SEO title="About" />
|
||||
<Markdown content={md.html!} />
|
||||
</Layout>
|
||||
)
|
||||
}
|
||||
|
||||
export const query = graphql`
|
||||
query AboutPage {
|
||||
md: markdownRemark(frontmatter: { path: { eq: "/about" } }) {
|
||||
html
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export default AboutPage
|
||||
@@ -0,0 +1,27 @@
|
||||
import React from "react"
|
||||
import { graphql } from "gatsby"
|
||||
import { Markdown } from "../components/Markdown"
|
||||
import { Layout } from "../components/Layout"
|
||||
import { MarkdownRemark, Query } from "../generated/graphql"
|
||||
import { SEO } from "../components/SEO"
|
||||
|
||||
function RulesPage({ data }: ComponentQuery<{ md: MarkdownRemark }>) {
|
||||
const { md } = data
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<SEO title="Rules" />
|
||||
<Markdown content={md.html!} />
|
||||
</Layout>
|
||||
)
|
||||
}
|
||||
|
||||
export const query = graphql`
|
||||
query RulesPage {
|
||||
md: markdownRemark(frontmatter: { path: { eq: "/rules" } }) {
|
||||
html
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export default RulesPage
|
||||
Reference in New Issue
Block a user