Passed
Push — feature/psd-api ( 1320f3 )
by Kevin Van
06:42
created

src/pages/jeugd.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 83
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 70
mnd 0
bc 0
fnc 1
dl 0
loc 83
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
import React, { Component } from "react"
2
import { graphql, Link } from "gatsby"
3
4
import Layout from "../layouts/index"
5
6
import SEO from "../components/seo"
7
import { CardImage } from "../components/cards"
8
import MatchesOverview from "../components/matches-overview"
9
10
class JeugdPage extends Component {
11
  render() {
12
    const data = this.props.data
13
14
    return (
15
      <Layout>
16
        <SEO
17
          lang="nl-BE"
18
          title="Jeugdwerking"
19
          description="Jeugdwerking van KCVV Elewijt"
20
          path={this.props.location.pathname}
21
        />
22
23
        <section className="grid-container site-content">
24
          <div className="grid-x grid-margin-x">
25
            <section className={"cell large-12 youth_teams__overview"}>
26
              <Link to="/jeugd/u15/" className={"btn btn--arrow"}>
27
                U15
28
              </Link>
29
              <Link to="/jeugd/u13/" className={"btn btn--arrow"}>
30
                U13
31
              </Link>
32
              <Link to="/jeugd/u12/" className={"btn btn--arrow"}>
33
                U12
34
              </Link>
35
              <Link to="/jeugd/u11/" className={"btn btn--arrow"}>
36
                U11
37
              </Link>
38
              <Link to="/jeugd/u10/" className={"btn btn--arrow"}>
39
                U10
40
              </Link>
41
              <Link to="/jeugd/u9/" className={"btn btn--arrow"}>
42
                U9
43
              </Link>
44
              <Link to="/jeugd/u7/" className={"btn btn--arrow"}>
45
                U7
46
              </Link>
47
              <Link to="/jeugd/u6/" className={"btn btn--arrow"}>
48
                U6
49
              </Link>
50
            </section>
51
            <section className={"cell large-12 featured-article"}>
52
              <CardImage
53
                title="Leerplannen voor de jeugdwerking"
54
                localFile={data.leerplan}
55
                link="/news/2019-08-08-leerplan-kcvv-elewijt-jeugd"
56
                metadata={false}
57
              />
58
            </section>
59
            <section className={"cell large-12 featured-article"}>
60
              <h2 style={{ marginTop: `${2}rem` }}>Volgende wedstrijden</h2>
61
              <MatchesOverview
62
                season="2021"
63
                regnumber="00055"
64
                exclude="['2A', '4E']"
65
              />
66
            </section>
67
          </div>
68
        </section>
69
      </Layout>
70
    )
71
  }
72
}
73
74
export const pageQuery = graphql`
75
  query {
76
    leerplan: file(name: { eq: "leerplan_header" }) {
77
      ...KCVVFluid960
78
    }
79
  }
80
`
81
82
export default JeugdPage
83