Passed
Push — imgbot ( 98ccf4 )
by
unknown
04:44
created

MosselfestijnPage.render   B

Complexity

Conditions 1

Size

Total Lines 74
Code Lines 61

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 61
dl 0
loc 74
rs 8.2763
c 0
b 0
f 0
cc 1

How to fix   Long Method   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

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="Lunch vd lege portemonnee - Takeaway!"
17
          description="Lege portemonnee Takeaway! - Bestelformulier"
18
          path={this.props.location.pathname}
19
        />
20
        <div className={"limited-width_wrapper"}>
21
          <header>
22
            <h1>Lunch van de lege portemonnee - Takeaway</h1>
23
          </header>
24
          <main>
25
            <h2>Zaterdag 20 februari 2021</h2>
26
            <p>
27
              Door de corona-beperkingen wordt de Lunch vd Lege Portemonne
28
              helaas een Take Away versie. Daarom stellen we een aantal
29
              gerechten voor, die standaard bij onze Lunch horen en waarvan u
30
              kan genieten bij een wijntje of drankje bij u thuis.
31
            </p>
32
33
            <p>Op het menu:</p>
34
            <ul>
35
              <li>Ajuinsoep met kaas - 1L: 8€ per portie</li>
36
              <li>Balletjes in tomatensaus met puree: 10€ per portie</li>
37
              <li>Winterstoemp met spekjes en chipolatta: 11€ per portie</li>
38
              <li>Witloof in den oven met puree: 12€ per portie</li>
39
              <li>Dessert - chocomousse of pannenkoeken met suiker (2): 5€</li>
40
            </ul>
41
            <p>
42
              <strong>
43
                Bestellen kan tot en met woensdag 17 februari 2021!
44
              </strong>
45
            </p>
46
            <p>
47
              Opgelet: Je kan een afhaalmoment kiezen bij het bestellen (16:00 -
48
              20:00). Betalen kan ter plaatse cash (liefst gepast).
49
            </p>
50
            <p>
51
              Indien u niet in de mogelijkheid tot afhaling bent, is er de
52
              mogelijkheid tot thuislevering de dag zelf tussen 16 en 18u.
53
              Opgelet: dit dient vermeld te worden bij bestelling! Bij levering
54
              thuis vragen we ook graag gepaste cash.
55
            </p>
56
57
            <p>
58
              Wie bijkomende vragen heeft kan terecht op
59
              [email protected] Alvast bedankt! En graag tot in 2022
60
              voor opnieuw een face-to-face versie van deze Lunch vd Leige
61
              Portemonnee!
62
            </p>
63
64
            <tbkr-bm-widget
65
              restaurant-id="34742560"
66
              source="website"
67
              use-modal="0"
68
              lang="nl"
69
              theme="light"
70
              primary-color="#4b9b48"
71
              takeaway="1"
72
            ></tbkr-bm-widget>
73
            <script src="https://reservations.tablebooker.com/tbkr-widget-import.min.js"></script>
74
75
            <Img
76
              fluid={{
77
                ...affiche.childImageSharp.fluid,
78
              }}
79
              alt="Sinterklaas Takeaway"
80
            />
81
          </main>
82
        </div>
83
      </Layout>
84
    )
85
  }
86
}
87
88
export const pageQuery = graphql`
89
  query {
90
    affiche: file(name: { eq: "takeaway-lunch" }) {
91
      ...KCVVFluid960
92
    }
93
  }
94
`
95
96
export default MosselfestijnPage
97