Passed
Push — feature/takeaway-form ( 37bf7c )
by Kevin Van
06:10
created

MosselfestijnPage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 29
dl 0
loc 30
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A render 0 28 1
1
import React, { Component } from "react"
2
import { graphql } from "gatsby"
3
import Img from "gatsby-image"
4
5
import Layout from "../layouts/index"
6
7
import SEO from "../components/seo"
8
9
class MosselfestijnPage extends Component {
10
  render() {
11
    const { affiche } = this.props.data
12
    return (
13
      <Layout>
14
        <SEO
15
          lang="nl-BE"
16
          title="Sinterklaas Takeaway!"
17
          description="Sinterklaas Takeaway! - Bestelformulier"
18
          path={this.props.location.pathname}
19
        />
20
        <div className={"limited-width_wrapper"}>
21
          <header>
22
            <h1>Sinterklaas Takeaway</h1>
23
          </header>
24
          <main>
25
            <tbkr-bm-widget
26
              restaurant-id="34742560"
27
              source="website"
28
              use-modal="0"
29
              lang="nl"
30
              theme="light"
31
              primary-color="#4b9b48"
32
              takeaway="1"
33
            ></tbkr-bm-widget>
34
            <script src="https://reservations.tablebooker.com/tbkr-widget-import.min.js"></script>
35
          </main>
36
        </div>
37
      </Layout>
38
    )
39
  }
40
}
41
42
export const pageQuery = graphql`
43
  query {
44
    affiche: file(name: { eq: "mossel2020-affiche" }) {
45
      ...KCVVFluid960
46
    }
47
  }
48
`
49
50
export default MosselfestijnPage
51