umwd-components 0.1.73 → 0.1.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/FleetSection.js +118 -0
- package/dist/cjs/components/IconSection.js +95 -91
- package/dist/cjs/components/Page.js +6 -0
- package/dist/cjs/components/TextImageSection.js +13 -0
- package/dist/esm/components/FleetSection.js +116 -0
- package/dist/esm/components/IconSection.js +96 -92
- package/dist/esm/components/Page.js +6 -0
- package/dist/esm/components/TextImageSection.js +13 -0
- package/package.json +2 -1
- package/src/components/FleetSection.tsx +168 -0
- package/src/components/IconSection.tsx +105 -110
- package/src/components/Page.js +3 -0
- package/src/components/TextImageSection.tsx +12 -0
- package/src/stories/Page.stories.js +71 -25
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
'use strict';
|
|
8
|
+
|
|
9
|
+
var React = require('react');
|
|
10
|
+
var material = require('@mui/material');
|
|
11
|
+
var StrapiImage = require('./StrapiImage.js');
|
|
12
|
+
|
|
13
|
+
function FleetSection(_ref) {
|
|
14
|
+
let {
|
|
15
|
+
data
|
|
16
|
+
} = _ref;
|
|
17
|
+
const {
|
|
18
|
+
airplane
|
|
19
|
+
} = data;
|
|
20
|
+
return /*#__PURE__*/React.createElement(material.Container, {
|
|
21
|
+
maxWidth: "lg",
|
|
22
|
+
sx: {
|
|
23
|
+
my: 1
|
|
24
|
+
}
|
|
25
|
+
}, /*#__PURE__*/React.createElement(material.Stack, {
|
|
26
|
+
spacing: 2,
|
|
27
|
+
direction: "row",
|
|
28
|
+
justifyContent: "stretch",
|
|
29
|
+
flexWrap: "wrap",
|
|
30
|
+
sx: {
|
|
31
|
+
width: "100%"
|
|
32
|
+
},
|
|
33
|
+
useFlexGap: true
|
|
34
|
+
}, airplane.map(airplane => /*#__PURE__*/React.createElement(material.Card, {
|
|
35
|
+
key: airplane.id,
|
|
36
|
+
sx: {
|
|
37
|
+
display: "flex",
|
|
38
|
+
flexDirection: "column",
|
|
39
|
+
justifyContent: "space-between",
|
|
40
|
+
flex: 1,
|
|
41
|
+
minWidth: "350px"
|
|
42
|
+
}
|
|
43
|
+
}, /*#__PURE__*/React.createElement(material.CardHeader, {
|
|
44
|
+
title: airplane.name,
|
|
45
|
+
subheader: airplane.description
|
|
46
|
+
}), /*#__PURE__*/React.createElement(material.CardContent, null, /*#__PURE__*/React.createElement(material.CardMedia, {
|
|
47
|
+
sx: {
|
|
48
|
+
minHeight: 140,
|
|
49
|
+
display: "grid",
|
|
50
|
+
alignItems: "center",
|
|
51
|
+
justifyContent: "center",
|
|
52
|
+
py: 2
|
|
53
|
+
}
|
|
54
|
+
}, airplane.floorplan !== null && /*#__PURE__*/React.createElement(StrapiImage.StrapiImage, {
|
|
55
|
+
src: airplane.floorplan.url,
|
|
56
|
+
alt: airplane.floorplan.alternativeText,
|
|
57
|
+
width: airplane.floorplan.width,
|
|
58
|
+
height: airplane.floorplan.height,
|
|
59
|
+
style: {}
|
|
60
|
+
})), /*#__PURE__*/React.createElement(material.Typography, {
|
|
61
|
+
variant: "body2",
|
|
62
|
+
color: "text.secondary",
|
|
63
|
+
component: "div"
|
|
64
|
+
}, /*#__PURE__*/React.createElement("strong", null, "Range:"), " ", airplane.range, " km"), /*#__PURE__*/React.createElement(material.Typography, {
|
|
65
|
+
variant: "body2",
|
|
66
|
+
color: "text.secondary",
|
|
67
|
+
component: "div"
|
|
68
|
+
}, /*#__PURE__*/React.createElement("strong", null, "Speed:"), " ", airplane.speed, " km/h"), /*#__PURE__*/React.createElement(material.Typography, {
|
|
69
|
+
variant: "body2",
|
|
70
|
+
color: "text.secondary",
|
|
71
|
+
component: "div"
|
|
72
|
+
}, /*#__PURE__*/React.createElement("strong", null, "Ceiling:"), " ", airplane.ceiling, " ft"), /*#__PURE__*/React.createElement(material.Typography, {
|
|
73
|
+
variant: "body2",
|
|
74
|
+
color: "text.secondary",
|
|
75
|
+
component: "div"
|
|
76
|
+
}, /*#__PURE__*/React.createElement("strong", null, "Cabin Dimensions:")), /*#__PURE__*/React.createElement(material.Typography, {
|
|
77
|
+
variant: "body2",
|
|
78
|
+
color: "text.secondary",
|
|
79
|
+
component: "div"
|
|
80
|
+
}, /*#__PURE__*/React.createElement("strong", null, "H"), " ", airplane.cabinHeight, " m ", /*#__PURE__*/React.createElement("strong", null, "W"), " ", airplane.cabinWidth, " m ", /*#__PURE__*/React.createElement("strong", null, "L"), " ", airplane.cabinLength, " m"))))));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/*
|
|
84
|
+
{
|
|
85
|
+
id: 1,
|
|
86
|
+
__component: "layout.fleet-section",
|
|
87
|
+
title: "Fleet",
|
|
88
|
+
description: "Description of our fleet",
|
|
89
|
+
airplane: [
|
|
90
|
+
{
|
|
91
|
+
id: 1,
|
|
92
|
+
name: "CHALLENGER 604",
|
|
93
|
+
description:
|
|
94
|
+
"Bombardier Challenger 604. Is our best long-range jet and can be equipped with an intensive care unit for one critical care patient or the option to carry 2 stable patients. ",
|
|
95
|
+
range: "7408",
|
|
96
|
+
speed: "854",
|
|
97
|
+
ceiling: "41000",
|
|
98
|
+
cabinHeight: 1.83,
|
|
99
|
+
cabinWidth: 2.11,
|
|
100
|
+
cabinLength: 8.66,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: 2,
|
|
104
|
+
name: "BEECHCRAFT KING AIR 200",
|
|
105
|
+
description:
|
|
106
|
+
"A twin turboprop aircraft with pressurized cabin. Is our best air ambulance for Europe and North Africa. It is equipped with a single stretcher for one stable ICU patient.",
|
|
107
|
+
range: "2200",
|
|
108
|
+
speed: "500",
|
|
109
|
+
ceiling: "35000",
|
|
110
|
+
cabinHeight: 1.46,
|
|
111
|
+
cabinWidth: 1.37,
|
|
112
|
+
cabinLength: 5.08,
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
exports.FleetSection = FleetSection;
|
|
@@ -6,18 +6,68 @@
|
|
|
6
6
|
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.js');
|
|
10
9
|
var React = require('react');
|
|
11
10
|
var material = require('@mui/material');
|
|
11
|
+
var BedroomBabyIcon = require('@mui/icons-material/BedroomBaby');
|
|
12
|
+
var BedroomParentIcon = require('@mui/icons-material/BedroomParent');
|
|
13
|
+
var MonitorHeartIcon = require('@mui/icons-material/MonitorHeart');
|
|
14
|
+
var VaccinesIcon = require('@mui/icons-material/Vaccines');
|
|
15
|
+
var LocalHospitalIcon = require('@mui/icons-material/LocalHospital');
|
|
16
|
+
var MedicalInformationIcon = require('@mui/icons-material/MedicalInformation');
|
|
17
|
+
var MedicalServicesIcon = require('@mui/icons-material/MedicalServices');
|
|
18
|
+
var ChildCareIcon = require('@mui/icons-material/ChildCare');
|
|
19
|
+
var ScreenshotMonitorIcon = require('@mui/icons-material/ScreenshotMonitor');
|
|
20
|
+
var MedicationIcon = require('@mui/icons-material/Medication');
|
|
21
|
+
var BloodtypeIcon = require('@mui/icons-material/Bloodtype');
|
|
22
|
+
var HealingIcon = require('@mui/icons-material/Healing');
|
|
23
|
+
var LocalPharmacyIcon = require('@mui/icons-material/LocalPharmacy');
|
|
24
|
+
var FlightIcon = require('@mui/icons-material/Flight');
|
|
25
|
+
var AirlineSeatFlatIcon = require('@mui/icons-material/AirlineSeatFlat');
|
|
26
|
+
var AccessibleIcon = require('@mui/icons-material/Accessible');
|
|
27
|
+
var PropaneTankIcon = require('@mui/icons-material/PropaneTank');
|
|
28
|
+
var MasksIcon = require('@mui/icons-material/Masks');
|
|
29
|
+
var BoltIcon = require('@mui/icons-material/Bolt');
|
|
12
30
|
|
|
13
|
-
function getIcon(
|
|
14
|
-
switch (
|
|
15
|
-
case "
|
|
16
|
-
return
|
|
17
|
-
case "
|
|
18
|
-
return
|
|
19
|
-
case "
|
|
20
|
-
return
|
|
31
|
+
function getIcon(icon) {
|
|
32
|
+
switch (icon) {
|
|
33
|
+
case "BedroomBabyIcon":
|
|
34
|
+
return BedroomBabyIcon;
|
|
35
|
+
case "BedroomParentIcon":
|
|
36
|
+
return BedroomParentIcon;
|
|
37
|
+
case "MonitorHeartIcon":
|
|
38
|
+
return MonitorHeartIcon;
|
|
39
|
+
case "VaccinesIcon":
|
|
40
|
+
return VaccinesIcon;
|
|
41
|
+
case "LocalHospitalIcon":
|
|
42
|
+
return LocalHospitalIcon;
|
|
43
|
+
case "MedicalInformationIcon":
|
|
44
|
+
return MedicalInformationIcon;
|
|
45
|
+
case "MedicalServicesIcon":
|
|
46
|
+
return MedicalServicesIcon;
|
|
47
|
+
case "ChildCareIcon":
|
|
48
|
+
return ChildCareIcon;
|
|
49
|
+
case "ScreenshotMonitorIcon":
|
|
50
|
+
return ScreenshotMonitorIcon;
|
|
51
|
+
case "MedicationIcon":
|
|
52
|
+
return MedicationIcon;
|
|
53
|
+
case "BloodtypeIcon":
|
|
54
|
+
return BloodtypeIcon;
|
|
55
|
+
case "HealingIcon":
|
|
56
|
+
return HealingIcon;
|
|
57
|
+
case "LocalPharmacyIcon":
|
|
58
|
+
return LocalPharmacyIcon;
|
|
59
|
+
case "FlightIcon":
|
|
60
|
+
return FlightIcon;
|
|
61
|
+
case "AirlineSeatFlatIcon":
|
|
62
|
+
return AirlineSeatFlatIcon;
|
|
63
|
+
case "AccessibleIcon":
|
|
64
|
+
return AccessibleIcon;
|
|
65
|
+
case "PropaneTankIcon":
|
|
66
|
+
return PropaneTankIcon;
|
|
67
|
+
case "MasksIcon":
|
|
68
|
+
return MasksIcon;
|
|
69
|
+
case "BoltIcon":
|
|
70
|
+
return BoltIcon;
|
|
21
71
|
default:
|
|
22
72
|
return null;
|
|
23
73
|
}
|
|
@@ -37,88 +87,42 @@ function IconSection(_ref) {
|
|
|
37
87
|
}, /*#__PURE__*/React.createElement(material.Grid, {
|
|
38
88
|
container: true,
|
|
39
89
|
spacing: 2
|
|
40
|
-
}, icon.map(icon =>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
77
|
-
width: "24",
|
|
78
|
-
height: "24",
|
|
79
|
-
viewBox: "0 0 24 24",
|
|
80
|
-
fill: "none",
|
|
81
|
-
stroke: "currentColor",
|
|
82
|
-
strokeWidth: "2",
|
|
83
|
-
strokeLinecap: "round",
|
|
84
|
-
strokeLinejoin: "round"
|
|
85
|
-
}), /*#__PURE__*/React.createElement("polyline", {
|
|
86
|
-
points: "20 6 9 17 4 12"
|
|
87
|
-
}));
|
|
88
|
-
}
|
|
89
|
-
function ClockIcon(props) {
|
|
90
|
-
return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({}, props, {
|
|
91
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
92
|
-
width: "24",
|
|
93
|
-
height: "24",
|
|
94
|
-
viewBox: "0 0 24 24",
|
|
95
|
-
fill: "none",
|
|
96
|
-
stroke: "currentColor",
|
|
97
|
-
strokeWidth: "2",
|
|
98
|
-
strokeLinecap: "round",
|
|
99
|
-
strokeLinejoin: "round"
|
|
100
|
-
}), /*#__PURE__*/React.createElement("circle", {
|
|
101
|
-
cx: "12",
|
|
102
|
-
cy: "12",
|
|
103
|
-
r: "10"
|
|
104
|
-
}), /*#__PURE__*/React.createElement("polyline", {
|
|
105
|
-
points: "12 6 12 12 16 14"
|
|
106
|
-
}));
|
|
107
|
-
}
|
|
108
|
-
function CloudIcon(props) {
|
|
109
|
-
return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({}, props, {
|
|
110
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
111
|
-
width: "24",
|
|
112
|
-
height: "24",
|
|
113
|
-
viewBox: "0 0 24 24",
|
|
114
|
-
fill: "none",
|
|
115
|
-
stroke: "currentColor",
|
|
116
|
-
strokeWidth: "2",
|
|
117
|
-
strokeLinecap: "round",
|
|
118
|
-
strokeLinejoin: "round"
|
|
119
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
120
|
-
d: "M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"
|
|
121
|
-
}));
|
|
90
|
+
}, icon.map(icon => {
|
|
91
|
+
const Icon = getIcon(icon.icon);
|
|
92
|
+
return /*#__PURE__*/React.createElement(material.Grid, {
|
|
93
|
+
item: true,
|
|
94
|
+
xs: 12,
|
|
95
|
+
sm: 6,
|
|
96
|
+
md: 4,
|
|
97
|
+
lg: 3
|
|
98
|
+
}, /*#__PURE__*/React.createElement(material.Card, {
|
|
99
|
+
key: icon.id,
|
|
100
|
+
sx: {
|
|
101
|
+
display: "flex",
|
|
102
|
+
flexDirection: "column",
|
|
103
|
+
flex: 1,
|
|
104
|
+
height: "100%"
|
|
105
|
+
}
|
|
106
|
+
}, /*#__PURE__*/React.createElement(material.CardContent, null, /*#__PURE__*/React.createElement(material.Typography, {
|
|
107
|
+
variant: "h6",
|
|
108
|
+
component: "div",
|
|
109
|
+
sx: {
|
|
110
|
+
display: "flex",
|
|
111
|
+
justifyContent: "start",
|
|
112
|
+
alignItems: "start",
|
|
113
|
+
minHeight: "4.2rem"
|
|
114
|
+
}
|
|
115
|
+
}, Icon !== null && /*#__PURE__*/React.createElement(Icon, {
|
|
116
|
+
sx: {
|
|
117
|
+
mr: 2,
|
|
118
|
+
mt: 0.2
|
|
119
|
+
}
|
|
120
|
+
}), icon.title), /*#__PURE__*/React.createElement(material.Typography, {
|
|
121
|
+
variant: "caption",
|
|
122
|
+
color: "text.secondary",
|
|
123
|
+
component: "div"
|
|
124
|
+
}, icon.text))));
|
|
125
|
+
})));
|
|
122
126
|
}
|
|
123
127
|
|
|
124
128
|
exports.IconSection = IconSection;
|
|
@@ -14,6 +14,7 @@ var PropTypes = require('prop-types');
|
|
|
14
14
|
var TextImageSection = require('./TextImageSection.js');
|
|
15
15
|
var HeroSection = require('./HeroSection.js');
|
|
16
16
|
var FeaturesSection = require('./FeaturesSection.js');
|
|
17
|
+
var FleetSection = require('./FleetSection.js');
|
|
17
18
|
var IconSection = require('./IconSection.js');
|
|
18
19
|
var material = require('@mui/material');
|
|
19
20
|
var ContactForm = require('./ContactForm.js');
|
|
@@ -45,6 +46,11 @@ function blockRenderer(block) {
|
|
|
45
46
|
key: block.id,
|
|
46
47
|
data: block
|
|
47
48
|
});
|
|
49
|
+
case "layout.fleet-section":
|
|
50
|
+
return /*#__PURE__*/React.createElement(FleetSection.FleetSection, {
|
|
51
|
+
key: block.id,
|
|
52
|
+
data: block
|
|
53
|
+
});
|
|
48
54
|
default:
|
|
49
55
|
return null;
|
|
50
56
|
}
|
|
@@ -14,6 +14,19 @@ var material = require('@mui/material');
|
|
|
14
14
|
var StrapiImage = require('./StrapiImage.js');
|
|
15
15
|
|
|
16
16
|
const MuiMarkdown = /*#__PURE__*/React.lazy(() => import( /* webpackChunkName: "mui-markdown" */'mui-markdown'));
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
TODO intregrate this interface into StrapiImage.tsx
|
|
20
|
+
|
|
21
|
+
interface ImageProps {
|
|
22
|
+
id: number;
|
|
23
|
+
url: string;
|
|
24
|
+
alternativeText: string;
|
|
25
|
+
style: React.CSSProperties;
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
} */
|
|
29
|
+
|
|
17
30
|
function TextImageSection(_ref) {
|
|
18
31
|
let {
|
|
19
32
|
data
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { Container, Stack, Card, CardHeader, CardContent, CardMedia, Typography } from '@mui/material';
|
|
9
|
+
import { StrapiImage } from './StrapiImage.js';
|
|
10
|
+
|
|
11
|
+
function FleetSection(_ref) {
|
|
12
|
+
let {
|
|
13
|
+
data
|
|
14
|
+
} = _ref;
|
|
15
|
+
const {
|
|
16
|
+
airplane
|
|
17
|
+
} = data;
|
|
18
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
19
|
+
maxWidth: "lg",
|
|
20
|
+
sx: {
|
|
21
|
+
my: 1
|
|
22
|
+
}
|
|
23
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
24
|
+
spacing: 2,
|
|
25
|
+
direction: "row",
|
|
26
|
+
justifyContent: "stretch",
|
|
27
|
+
flexWrap: "wrap",
|
|
28
|
+
sx: {
|
|
29
|
+
width: "100%"
|
|
30
|
+
},
|
|
31
|
+
useFlexGap: true
|
|
32
|
+
}, airplane.map(airplane => /*#__PURE__*/React.createElement(Card, {
|
|
33
|
+
key: airplane.id,
|
|
34
|
+
sx: {
|
|
35
|
+
display: "flex",
|
|
36
|
+
flexDirection: "column",
|
|
37
|
+
justifyContent: "space-between",
|
|
38
|
+
flex: 1,
|
|
39
|
+
minWidth: "350px"
|
|
40
|
+
}
|
|
41
|
+
}, /*#__PURE__*/React.createElement(CardHeader, {
|
|
42
|
+
title: airplane.name,
|
|
43
|
+
subheader: airplane.description
|
|
44
|
+
}), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(CardMedia, {
|
|
45
|
+
sx: {
|
|
46
|
+
minHeight: 140,
|
|
47
|
+
display: "grid",
|
|
48
|
+
alignItems: "center",
|
|
49
|
+
justifyContent: "center",
|
|
50
|
+
py: 2
|
|
51
|
+
}
|
|
52
|
+
}, airplane.floorplan !== null && /*#__PURE__*/React.createElement(StrapiImage, {
|
|
53
|
+
src: airplane.floorplan.url,
|
|
54
|
+
alt: airplane.floorplan.alternativeText,
|
|
55
|
+
width: airplane.floorplan.width,
|
|
56
|
+
height: airplane.floorplan.height,
|
|
57
|
+
style: {}
|
|
58
|
+
})), /*#__PURE__*/React.createElement(Typography, {
|
|
59
|
+
variant: "body2",
|
|
60
|
+
color: "text.secondary",
|
|
61
|
+
component: "div"
|
|
62
|
+
}, /*#__PURE__*/React.createElement("strong", null, "Range:"), " ", airplane.range, " km"), /*#__PURE__*/React.createElement(Typography, {
|
|
63
|
+
variant: "body2",
|
|
64
|
+
color: "text.secondary",
|
|
65
|
+
component: "div"
|
|
66
|
+
}, /*#__PURE__*/React.createElement("strong", null, "Speed:"), " ", airplane.speed, " km/h"), /*#__PURE__*/React.createElement(Typography, {
|
|
67
|
+
variant: "body2",
|
|
68
|
+
color: "text.secondary",
|
|
69
|
+
component: "div"
|
|
70
|
+
}, /*#__PURE__*/React.createElement("strong", null, "Ceiling:"), " ", airplane.ceiling, " ft"), /*#__PURE__*/React.createElement(Typography, {
|
|
71
|
+
variant: "body2",
|
|
72
|
+
color: "text.secondary",
|
|
73
|
+
component: "div"
|
|
74
|
+
}, /*#__PURE__*/React.createElement("strong", null, "Cabin Dimensions:")), /*#__PURE__*/React.createElement(Typography, {
|
|
75
|
+
variant: "body2",
|
|
76
|
+
color: "text.secondary",
|
|
77
|
+
component: "div"
|
|
78
|
+
}, /*#__PURE__*/React.createElement("strong", null, "H"), " ", airplane.cabinHeight, " m ", /*#__PURE__*/React.createElement("strong", null, "W"), " ", airplane.cabinWidth, " m ", /*#__PURE__*/React.createElement("strong", null, "L"), " ", airplane.cabinLength, " m"))))));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/*
|
|
82
|
+
{
|
|
83
|
+
id: 1,
|
|
84
|
+
__component: "layout.fleet-section",
|
|
85
|
+
title: "Fleet",
|
|
86
|
+
description: "Description of our fleet",
|
|
87
|
+
airplane: [
|
|
88
|
+
{
|
|
89
|
+
id: 1,
|
|
90
|
+
name: "CHALLENGER 604",
|
|
91
|
+
description:
|
|
92
|
+
"Bombardier Challenger 604. Is our best long-range jet and can be equipped with an intensive care unit for one critical care patient or the option to carry 2 stable patients. ",
|
|
93
|
+
range: "7408",
|
|
94
|
+
speed: "854",
|
|
95
|
+
ceiling: "41000",
|
|
96
|
+
cabinHeight: 1.83,
|
|
97
|
+
cabinWidth: 2.11,
|
|
98
|
+
cabinLength: 8.66,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: 2,
|
|
102
|
+
name: "BEECHCRAFT KING AIR 200",
|
|
103
|
+
description:
|
|
104
|
+
"A twin turboprop aircraft with pressurized cabin. Is our best air ambulance for Europe and North Africa. It is equipped with a single stretcher for one stable ICU patient.",
|
|
105
|
+
range: "2200",
|
|
106
|
+
speed: "500",
|
|
107
|
+
ceiling: "35000",
|
|
108
|
+
cabinHeight: 1.46,
|
|
109
|
+
cabinWidth: 1.37,
|
|
110
|
+
cabinLength: 5.08,
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
export { FleetSection };
|
|
@@ -4,18 +4,68 @@
|
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
8
7
|
import React from 'react';
|
|
9
|
-
import { Container, Grid, Card, CardContent, Typography
|
|
8
|
+
import { Container, Grid, Card, CardContent, Typography } from '@mui/material';
|
|
9
|
+
import BedroomBabyIcon from '@mui/icons-material/BedroomBaby';
|
|
10
|
+
import BedroomParentIcon from '@mui/icons-material/BedroomParent';
|
|
11
|
+
import MonitorHeartIcon from '@mui/icons-material/MonitorHeart';
|
|
12
|
+
import VaccinesIcon from '@mui/icons-material/Vaccines';
|
|
13
|
+
import LocalHospitalIcon from '@mui/icons-material/LocalHospital';
|
|
14
|
+
import MedicalInformationIcon from '@mui/icons-material/MedicalInformation';
|
|
15
|
+
import MedicalServicesIcon from '@mui/icons-material/MedicalServices';
|
|
16
|
+
import ChildCareIcon from '@mui/icons-material/ChildCare';
|
|
17
|
+
import ScreenshotMonitorIcon from '@mui/icons-material/ScreenshotMonitor';
|
|
18
|
+
import MedicationIcon from '@mui/icons-material/Medication';
|
|
19
|
+
import BloodtypeIcon from '@mui/icons-material/Bloodtype';
|
|
20
|
+
import HealingIcon from '@mui/icons-material/Healing';
|
|
21
|
+
import LocalPharmacyIcon from '@mui/icons-material/LocalPharmacy';
|
|
22
|
+
import FlightIcon from '@mui/icons-material/Flight';
|
|
23
|
+
import AirlineSeatFlatIcon from '@mui/icons-material/AirlineSeatFlat';
|
|
24
|
+
import AccessibleIcon from '@mui/icons-material/Accessible';
|
|
25
|
+
import PropaneTankIcon from '@mui/icons-material/PropaneTank';
|
|
26
|
+
import MasksIcon from '@mui/icons-material/Masks';
|
|
27
|
+
import BoltIcon from '@mui/icons-material/Bolt';
|
|
10
28
|
|
|
11
|
-
function getIcon(
|
|
12
|
-
switch (
|
|
13
|
-
case "
|
|
14
|
-
return
|
|
15
|
-
case "
|
|
16
|
-
return
|
|
17
|
-
case "
|
|
18
|
-
return
|
|
29
|
+
function getIcon(icon) {
|
|
30
|
+
switch (icon) {
|
|
31
|
+
case "BedroomBabyIcon":
|
|
32
|
+
return BedroomBabyIcon;
|
|
33
|
+
case "BedroomParentIcon":
|
|
34
|
+
return BedroomParentIcon;
|
|
35
|
+
case "MonitorHeartIcon":
|
|
36
|
+
return MonitorHeartIcon;
|
|
37
|
+
case "VaccinesIcon":
|
|
38
|
+
return VaccinesIcon;
|
|
39
|
+
case "LocalHospitalIcon":
|
|
40
|
+
return LocalHospitalIcon;
|
|
41
|
+
case "MedicalInformationIcon":
|
|
42
|
+
return MedicalInformationIcon;
|
|
43
|
+
case "MedicalServicesIcon":
|
|
44
|
+
return MedicalServicesIcon;
|
|
45
|
+
case "ChildCareIcon":
|
|
46
|
+
return ChildCareIcon;
|
|
47
|
+
case "ScreenshotMonitorIcon":
|
|
48
|
+
return ScreenshotMonitorIcon;
|
|
49
|
+
case "MedicationIcon":
|
|
50
|
+
return MedicationIcon;
|
|
51
|
+
case "BloodtypeIcon":
|
|
52
|
+
return BloodtypeIcon;
|
|
53
|
+
case "HealingIcon":
|
|
54
|
+
return HealingIcon;
|
|
55
|
+
case "LocalPharmacyIcon":
|
|
56
|
+
return LocalPharmacyIcon;
|
|
57
|
+
case "FlightIcon":
|
|
58
|
+
return FlightIcon;
|
|
59
|
+
case "AirlineSeatFlatIcon":
|
|
60
|
+
return AirlineSeatFlatIcon;
|
|
61
|
+
case "AccessibleIcon":
|
|
62
|
+
return AccessibleIcon;
|
|
63
|
+
case "PropaneTankIcon":
|
|
64
|
+
return PropaneTankIcon;
|
|
65
|
+
case "MasksIcon":
|
|
66
|
+
return MasksIcon;
|
|
67
|
+
case "BoltIcon":
|
|
68
|
+
return BoltIcon;
|
|
19
69
|
default:
|
|
20
70
|
return null;
|
|
21
71
|
}
|
|
@@ -35,88 +85,42 @@ function IconSection(_ref) {
|
|
|
35
85
|
}, /*#__PURE__*/React.createElement(Grid, {
|
|
36
86
|
container: true,
|
|
37
87
|
spacing: 2
|
|
38
|
-
}, icon.map(icon =>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
75
|
-
width: "24",
|
|
76
|
-
height: "24",
|
|
77
|
-
viewBox: "0 0 24 24",
|
|
78
|
-
fill: "none",
|
|
79
|
-
stroke: "currentColor",
|
|
80
|
-
strokeWidth: "2",
|
|
81
|
-
strokeLinecap: "round",
|
|
82
|
-
strokeLinejoin: "round"
|
|
83
|
-
}), /*#__PURE__*/React.createElement("polyline", {
|
|
84
|
-
points: "20 6 9 17 4 12"
|
|
85
|
-
}));
|
|
86
|
-
}
|
|
87
|
-
function ClockIcon(props) {
|
|
88
|
-
return /*#__PURE__*/React.createElement("svg", _extends({}, props, {
|
|
89
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
90
|
-
width: "24",
|
|
91
|
-
height: "24",
|
|
92
|
-
viewBox: "0 0 24 24",
|
|
93
|
-
fill: "none",
|
|
94
|
-
stroke: "currentColor",
|
|
95
|
-
strokeWidth: "2",
|
|
96
|
-
strokeLinecap: "round",
|
|
97
|
-
strokeLinejoin: "round"
|
|
98
|
-
}), /*#__PURE__*/React.createElement("circle", {
|
|
99
|
-
cx: "12",
|
|
100
|
-
cy: "12",
|
|
101
|
-
r: "10"
|
|
102
|
-
}), /*#__PURE__*/React.createElement("polyline", {
|
|
103
|
-
points: "12 6 12 12 16 14"
|
|
104
|
-
}));
|
|
105
|
-
}
|
|
106
|
-
function CloudIcon(props) {
|
|
107
|
-
return /*#__PURE__*/React.createElement("svg", _extends({}, props, {
|
|
108
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
109
|
-
width: "24",
|
|
110
|
-
height: "24",
|
|
111
|
-
viewBox: "0 0 24 24",
|
|
112
|
-
fill: "none",
|
|
113
|
-
stroke: "currentColor",
|
|
114
|
-
strokeWidth: "2",
|
|
115
|
-
strokeLinecap: "round",
|
|
116
|
-
strokeLinejoin: "round"
|
|
117
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
118
|
-
d: "M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"
|
|
119
|
-
}));
|
|
88
|
+
}, icon.map(icon => {
|
|
89
|
+
const Icon = getIcon(icon.icon);
|
|
90
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
91
|
+
item: true,
|
|
92
|
+
xs: 12,
|
|
93
|
+
sm: 6,
|
|
94
|
+
md: 4,
|
|
95
|
+
lg: 3
|
|
96
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
97
|
+
key: icon.id,
|
|
98
|
+
sx: {
|
|
99
|
+
display: "flex",
|
|
100
|
+
flexDirection: "column",
|
|
101
|
+
flex: 1,
|
|
102
|
+
height: "100%"
|
|
103
|
+
}
|
|
104
|
+
}, /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(Typography, {
|
|
105
|
+
variant: "h6",
|
|
106
|
+
component: "div",
|
|
107
|
+
sx: {
|
|
108
|
+
display: "flex",
|
|
109
|
+
justifyContent: "start",
|
|
110
|
+
alignItems: "start",
|
|
111
|
+
minHeight: "4.2rem"
|
|
112
|
+
}
|
|
113
|
+
}, Icon !== null && /*#__PURE__*/React.createElement(Icon, {
|
|
114
|
+
sx: {
|
|
115
|
+
mr: 2,
|
|
116
|
+
mt: 0.2
|
|
117
|
+
}
|
|
118
|
+
}), icon.title), /*#__PURE__*/React.createElement(Typography, {
|
|
119
|
+
variant: "caption",
|
|
120
|
+
color: "text.secondary",
|
|
121
|
+
component: "div"
|
|
122
|
+
}, icon.text))));
|
|
123
|
+
})));
|
|
120
124
|
}
|
|
121
125
|
|
|
122
126
|
export { IconSection };
|