Passed
Push — master ( 52c927...bc9dbe )
by Kevin Van
03:58
created

src/pages/spaghetti.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 51
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 38
mnd 0
bc 0
fnc 1
dl 0
loc 51
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A SpaghettiPage.render 0 28 1
1
import React, { Component } from "react"
2
import { graphql } from "gatsby"
3
import { GatsbyImage } from "gatsby-plugin-image"
4
5
import Layout from "../layouts/index"
6
7
import SEO from "../components/seo"
8
9
class SpaghettiPage extends Component {
10
  render() {
11
    const { affiche } = this.props.data
12
    return (
13
      <Layout>
14
        <SEO
15
          lang="nl-BE"
16
          title="Mosselfestijn reservaties"
17
          description="Mosselfestijn 2020 - Inschrijvingen"
18
          path={this.props.location.pathname}
19
        />
20
        <div className={"limited-width_wrapper"}>
21
          <header>
22
            <h1>Spaghettislag ULTRA'S 55</h1>
23
            <h2>Supportersclub KCVV Elewijt</h2>
24
          </header>
25
          <main>
26
            <p>Lalala tekst enz...</p>
27
          </main>
28
          <footer>
29
            <GatsbyImage
30
              image={{
31
                ...affiche.childImageSharp.gatsbyImageData,
32
              }}
33
              alt="Spaghettislag KCVV Ultra's 55"
34
            />
35
          </footer>
36
        </div>
37
      </Layout>
38
    )
39
  }
40
}
41
42
export const pageQuery = graphql`
43
  query {
44
    affiche: file(name: { eq: "spaghetti" }) {
45
      ...KCVVFullWidth
46
    }
47
  }
48
`
49
50
export default SpaghettiPage
51