umwd-components 0.1.130 → 0.1.132

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.
Files changed (32) hide show
  1. package/dist/cjs/components/BulletList.js +0 -1
  2. package/dist/cjs/components/FeaturesSection.js +1 -9
  3. package/dist/cjs/components/HeroSection.js +6 -2
  4. package/dist/cjs/components/NavBar.js +0 -1
  5. package/dist/cjs/components/PersonaliaSection.js +17 -8
  6. package/dist/cjs/components/ScrollLink.js +0 -1
  7. package/dist/cjs/components/ScrollNavbar.js +26 -21
  8. package/dist/cjs/components/WebsitePlaceholder.js +0 -12
  9. package/dist/esm/components/BulletList.js +0 -1
  10. package/dist/esm/components/FeaturesSection.js +2 -10
  11. package/dist/esm/components/HeroSection.js +6 -2
  12. package/dist/esm/components/NavBar.js +0 -1
  13. package/dist/esm/components/PersonaliaSection.js +17 -8
  14. package/dist/esm/components/ScrollLink.js +0 -1
  15. package/dist/esm/components/ScrollNavbar.js +26 -21
  16. package/dist/esm/components/WebsitePlaceholder.js +0 -12
  17. package/package.json +1 -1
  18. package/src/components/BulletList.js +0 -1
  19. package/src/components/FeaturesSection.tsx +2 -2
  20. package/src/components/HeroSection.tsx +5 -2
  21. package/src/components/NavBar.js +0 -2
  22. package/src/components/PersonaliaSection.tsx +13 -5
  23. package/src/components/ScrollLink.tsx +0 -2
  24. package/src/components/ScrollNavbar.tsx +47 -16
  25. package/src/components/ThreeUp.js +0 -2
  26. package/src/components/WebsitePlaceholder.js +0 -13
  27. package/src/data/loaders.ts +0 -37
  28. package/src/stories/BulletList.stories.js +3 -7
  29. package/src/stories/Footer.stories.js +0 -1
  30. package/src/stories/Navbar.stories.js +0 -3
  31. package/src/stories/ScrollNavbar.stories.js +13 -4
  32. package/src/styles/themes.js +0 -4
@@ -19,7 +19,6 @@ function BulletList(_ref) {
19
19
  bullets,
20
20
  bulletSVG
21
21
  } = _ref;
22
- console.log("bulletSVG2", bulletSVG);
23
22
  return /*#__PURE__*/React.createElement(material.Stack, {
24
23
  spacing: 2
25
24
  }, bullets.map((bullet, index) => /*#__PURE__*/React.createElement(material.Typography, {
@@ -85,15 +85,7 @@ function FeatureSection(_ref) {
85
85
  variant: "body2",
86
86
  color: "text.secondary",
87
87
  component: "div"
88
- }, feature.subHeading)), /*#__PURE__*/React.createElement(material.CardActions, {
89
- sx: {
90
- mb: 0
91
- }
92
- }, /*#__PURE__*/React.createElement(material.Button, {
93
- size: "small"
94
- }, "Contact"), /*#__PURE__*/React.createElement(material.Button, {
95
- size: "small"
96
- }, "Learn More")));
88
+ }, feature.subHeading)));
97
89
  })));
98
90
  }
99
91
 
@@ -25,7 +25,6 @@ function HeroSection(_ref) {
25
25
  maxWidth
26
26
  } = data;
27
27
  const theme = material.useTheme();
28
- console.log(theme.palette.background.paper);
29
28
  const glassColor = utils.setOpacity(theme.palette.background.paper, 0.45);
30
29
  return /*#__PURE__*/React.createElement("header", {
31
30
  style: {
@@ -77,7 +76,12 @@ function HeroSection(_ref) {
77
76
  alt: logoImage.alternativeText,
78
77
  height: logoImage.height || 100,
79
78
  src: logoImage.url,
80
- width: logoImage.width || 100
79
+ width: logoImage.width || 100,
80
+ style: {
81
+ width: "90%",
82
+ height: "90%",
83
+ objectFit: "contain"
84
+ }
81
85
  }), /*#__PURE__*/React.createElement(material.Typography, {
82
86
  variant: "h2",
83
87
  align: "center",
@@ -57,7 +57,6 @@ function NavBar(_ref) {
57
57
  };
58
58
  const router = navigation.useRouter();
59
59
  const handleChange = (event, newValue) => {
60
- console.log(newValue);
61
60
  setCurrentTab(newValue);
62
61
  };
63
62
  const theme = material.useTheme();
@@ -48,7 +48,8 @@ function PersonaliaSection(_ref) {
48
48
  spacing: 3
49
49
  }, /*#__PURE__*/React.createElement(material.Grid, {
50
50
  item: true,
51
- xs: 7
51
+ xs: 12,
52
+ sm: 7
52
53
  }, /*#__PURE__*/React.createElement(material.Typography, {
53
54
  variant: "h5",
54
55
  sx: {
@@ -67,17 +68,25 @@ function PersonaliaSection(_ref) {
67
68
  content: partner.text
68
69
  })), /*#__PURE__*/React.createElement(material.Grid, {
69
70
  item: true,
70
- xs: 5
71
+ xs: 12,
72
+ sm: 5
71
73
  }, /*#__PURE__*/React.createElement(material.Stack, {
72
- spacing: 2
74
+ spacing: 2,
75
+ sx: {
76
+ overflow: "clip"
77
+ },
78
+ justifyContent: "center",
79
+ alignItems: "stretch"
73
80
  }, ((_partner$photo = partner.photo) === null || _partner$photo === void 0 ? void 0 : _partner$photo.url) && /*#__PURE__*/React.createElement(StrapiImage.StrapiImage, {
74
81
  src: partner.photo.url,
75
- alt: partner.photo.alternativeText
76
- // width={partner.photo.width}
77
- // height={partner.photo.height}
78
- ,
82
+ alt: partner.photo.alternativeText,
79
83
  width: 200,
80
- height: 200
84
+ height: 200,
85
+ style: {
86
+ borderRadius: "50%",
87
+ margin: "auto",
88
+ ...partner.photo.style
89
+ }
81
90
  }), ((_partner$links = partner.links) === null || _partner$links === void 0 ? void 0 : _partner$links.length) > 0 && partner.links.map(link => {
82
91
  return /*#__PURE__*/React.createElement(MuiLink.MuiLink, {
83
92
  href: link.url,
@@ -35,7 +35,6 @@ const ScrollLink = _ref => {
35
35
  });
36
36
  };
37
37
  const theme = material.useTheme();
38
- console.log(theme.palette.text);
39
38
  return /*#__PURE__*/React.createElement(Link, _rollupPluginBabelHelpers.extends({}, props, {
40
39
  onClick: handleScroll,
41
40
  style: {
@@ -72,7 +72,10 @@ function ScrollNavbar(_ref) {
72
72
  height: logo.height,
73
73
  alt: logo.alternativeText || "site logo",
74
74
  style: {
75
- maxHeight: "50px"
75
+ maxHeight: "55px",
76
+ marginRight: "20px",
77
+ width: "auto",
78
+ height: "auto"
76
79
  }
77
80
  }), site_title !== undefined && /*#__PURE__*/React.createElement(material.Typography, {
78
81
  variant: "h6",
@@ -112,7 +115,8 @@ function ScrollNavbar(_ref) {
112
115
  flexGrow: 1,
113
116
  display: {
114
117
  xs: "none",
115
- md: "flex"
118
+ md: "flex",
119
+ alignItems: "center"
116
120
  }
117
121
  }
118
122
  }, /*#__PURE__*/React.createElement(material.Tabs, {
@@ -120,7 +124,7 @@ function ScrollNavbar(_ref) {
120
124
  "aria-label": "wrapped label tabs example",
121
125
  textColor: "secondary",
122
126
  indicatorColor: "secondary",
123
- variant: "fullWidth"
127
+ role: "navigation"
124
128
  }, tabs.length > 0 && tabs.map((tab, index) => {
125
129
  return /*#__PURE__*/React.createElement(material.Box, {
126
130
  key: tab.name,
@@ -157,12 +161,13 @@ function ScrollNavbar(_ref) {
157
161
  }
158
162
  }, /*#__PURE__*/React.createElement("img", {
159
163
  src: logo.url,
160
- width: logo.width || "32px",
161
- height: logo.height || "32px",
164
+ width: logo.width || 32,
165
+ height: logo.height || 32,
162
166
  alt: logo.alternativeText || "site logo",
163
167
  style: {
164
- maxWidth: "60px",
165
- maxHeight: "60px"
168
+ maxHeight: "60px",
169
+ width: "auto",
170
+ height: "auto"
166
171
  }
167
172
  })), site_title !== undefined && /*#__PURE__*/React.createElement(material.Typography, {
168
173
  variant: "h5",
@@ -237,11 +242,12 @@ function ScrollNavbar(_ref) {
237
242
  }, /*#__PURE__*/React.createElement("img", {
238
243
  src: logo.url,
239
244
  alt: logo.alternativeText || "logo",
240
- width: logo.width || "32px",
241
- height: logo.height || "32px",
245
+ width: logo.width || 32,
246
+ height: logo.height || 32,
242
247
  style: {
243
- maxWidth: "60px",
244
- maxHeight: "60px"
248
+ maxHeight: "60px",
249
+ width: "auto",
250
+ height: "auto"
245
251
  }
246
252
  })), /*#__PURE__*/React.createElement(material.Typography, {
247
253
  variant: "h5",
@@ -267,18 +273,17 @@ function ScrollNavbar(_ref) {
267
273
  sx: {
268
274
  color: "primary.contrastText"
269
275
  }
270
- }))))), pages && pages.length > 0 && /*#__PURE__*/React.createElement(material.List, null, pages.map(page => {
276
+ }))))), tabs && tabs.length > 0 && /*#__PURE__*/React.createElement(material.List, null, tabs.map(tab => {
271
277
  return /*#__PURE__*/React.createElement(React.Fragment, {
272
- key: page.name
278
+ key: tab.name
273
279
  }, /*#__PURE__*/React.createElement(ScrollLink.default, {
274
- href: "#".concat(page.slug)
275
- }, /*#__PURE__*/React.createElement(material.ListItem
276
- /* onClick={() => {
277
- router.push(page.url);
278
- handleCloseMobileMenu();
279
- }} */, null, /*#__PURE__*/React.createElement(material.ListItemText, {
280
- primary: page.name
281
- }))), /*#__PURE__*/React.createElement(material.Divider, null));
280
+ href: "#".concat(tab.slug)
281
+ }, /*#__PURE__*/React.createElement(material.Box, {
282
+ onClick: handleCloseMobileMenu
283
+ //sx={{ width: "100%", height: "100%" }}
284
+ }, /*#__PURE__*/React.createElement(material.ListItem, null, /*#__PURE__*/React.createElement(material.ListItemText, {
285
+ primary: tab.name
286
+ })))), /*#__PURE__*/React.createElement(material.Divider, null));
282
287
  })))))));
283
288
  }
284
289
 
@@ -24,27 +24,18 @@ function WebsitePlaceholder(_ref) {
24
24
  children
25
25
  } = _ref;
26
26
  const theme = material.useTheme();
27
- console.log(theme.palette.mode);
28
-
29
- // const [keysPressed, setKeysPressed] = React.useState({});
30
- // let visible = true;
31
-
32
27
  const [visible, setVisible] = React.useState(true);
33
28
  let keysPressed = {};
34
29
  const keyDownHandler = event => {
35
- console.log("key down", event.key, keysPressed);
36
30
  keysPressed = {
37
31
  ...keysPressed,
38
32
  [event.key]: true
39
33
  };
40
34
  if (keysPressed["w"] === true && keysPressed["a"] === true && keysPressed["s"] === true && keysPressed["d"] === true) {
41
- console.log("You found the easter egg!", visible);
42
- // visible = Boolean(!visible);
43
35
  setVisible(!visible);
44
36
  }
45
37
  };
46
38
  const keyUpHandler = event => {
47
- console.log("key up", event.key);
48
39
  keysPressed[event.key] = false;
49
40
  };
50
41
  React.useEffect(() => {
@@ -55,9 +46,6 @@ function WebsitePlaceholder(_ref) {
55
46
  document.removeEventListener("keyup", keyUpHandler);
56
47
  };
57
48
  }, []);
58
- React.useEffect(() => {
59
- console.log("visible", visible);
60
- }, [visible]);
61
49
  return /*#__PURE__*/React.createElement(material.Box, {
62
50
  sx: [visible && {
63
51
  display: "grid",
@@ -15,7 +15,6 @@ function BulletList(_ref) {
15
15
  bullets,
16
16
  bulletSVG
17
17
  } = _ref;
18
- console.log("bulletSVG2", bulletSVG);
19
18
  return /*#__PURE__*/React__default.createElement(Stack, {
20
19
  spacing: 2
21
20
  }, bullets.map((bullet, index) => /*#__PURE__*/React__default.createElement(Typography, {
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import React__default from 'react';
8
- import { useTheme, Container, Stack, Card, CardContent, Box, Typography, CardActions, Button } from '@mui/material';
8
+ import { useTheme, Container, Stack, Card, CardContent, Box, Typography } from '@mui/material';
9
9
  import getIcon from '../lib/getIcon.js';
10
10
 
11
11
  function FeatureSection(_ref) {
@@ -83,15 +83,7 @@ function FeatureSection(_ref) {
83
83
  variant: "body2",
84
84
  color: "text.secondary",
85
85
  component: "div"
86
- }, feature.subHeading)), /*#__PURE__*/React__default.createElement(CardActions, {
87
- sx: {
88
- mb: 0
89
- }
90
- }, /*#__PURE__*/React__default.createElement(Button, {
91
- size: "small"
92
- }, "Contact"), /*#__PURE__*/React__default.createElement(Button, {
93
- size: "small"
94
- }, "Learn More")));
86
+ }, feature.subHeading)));
95
87
  })));
96
88
  }
97
89
 
@@ -23,7 +23,6 @@ function HeroSection(_ref) {
23
23
  maxWidth
24
24
  } = data;
25
25
  const theme = useTheme();
26
- console.log(theme.palette.background.paper);
27
26
  const glassColor = setOpacity(theme.palette.background.paper, 0.45);
28
27
  return /*#__PURE__*/React__default.createElement("header", {
29
28
  style: {
@@ -75,7 +74,12 @@ function HeroSection(_ref) {
75
74
  alt: logoImage.alternativeText,
76
75
  height: logoImage.height || 100,
77
76
  src: logoImage.url,
78
- width: logoImage.width || 100
77
+ width: logoImage.width || 100,
78
+ style: {
79
+ width: "90%",
80
+ height: "90%",
81
+ objectFit: "contain"
82
+ }
79
83
  }), /*#__PURE__*/React__default.createElement(Typography, {
80
84
  variant: "h2",
81
85
  align: "center",
@@ -53,7 +53,6 @@ function NavBar(_ref) {
53
53
  };
54
54
  const router = useRouter();
55
55
  const handleChange = (event, newValue) => {
56
- console.log(newValue);
57
56
  setCurrentTab(newValue);
58
57
  };
59
58
  const theme = useTheme();
@@ -46,7 +46,8 @@ function PersonaliaSection(_ref) {
46
46
  spacing: 3
47
47
  }, /*#__PURE__*/React__default.createElement(Grid, {
48
48
  item: true,
49
- xs: 7
49
+ xs: 12,
50
+ sm: 7
50
51
  }, /*#__PURE__*/React__default.createElement(Typography, {
51
52
  variant: "h5",
52
53
  sx: {
@@ -65,17 +66,25 @@ function PersonaliaSection(_ref) {
65
66
  content: partner.text
66
67
  })), /*#__PURE__*/React__default.createElement(Grid, {
67
68
  item: true,
68
- xs: 5
69
+ xs: 12,
70
+ sm: 5
69
71
  }, /*#__PURE__*/React__default.createElement(Stack, {
70
- spacing: 2
72
+ spacing: 2,
73
+ sx: {
74
+ overflow: "clip"
75
+ },
76
+ justifyContent: "center",
77
+ alignItems: "stretch"
71
78
  }, ((_partner$photo = partner.photo) === null || _partner$photo === void 0 ? void 0 : _partner$photo.url) && /*#__PURE__*/React__default.createElement(StrapiImage, {
72
79
  src: partner.photo.url,
73
- alt: partner.photo.alternativeText
74
- // width={partner.photo.width}
75
- // height={partner.photo.height}
76
- ,
80
+ alt: partner.photo.alternativeText,
77
81
  width: 200,
78
- height: 200
82
+ height: 200,
83
+ style: {
84
+ borderRadius: "50%",
85
+ margin: "auto",
86
+ ...partner.photo.style
87
+ }
79
88
  }), ((_partner$links = partner.links) === null || _partner$links === void 0 ? void 0 : _partner$links.length) > 0 && partner.links.map(link => {
80
89
  return /*#__PURE__*/React__default.createElement(MuiLink, {
81
90
  href: link.url,
@@ -31,7 +31,6 @@ const ScrollLink = _ref => {
31
31
  });
32
32
  };
33
33
  const theme = useTheme();
34
- console.log(theme.palette.text);
35
34
  return /*#__PURE__*/React__default.createElement(Link, _extends({}, props, {
36
35
  onClick: handleScroll,
37
36
  style: {
@@ -68,7 +68,10 @@ function ScrollNavbar(_ref) {
68
68
  height: logo.height,
69
69
  alt: logo.alternativeText || "site logo",
70
70
  style: {
71
- maxHeight: "50px"
71
+ maxHeight: "55px",
72
+ marginRight: "20px",
73
+ width: "auto",
74
+ height: "auto"
72
75
  }
73
76
  }), site_title !== undefined && /*#__PURE__*/React__default.createElement(Typography, {
74
77
  variant: "h6",
@@ -108,7 +111,8 @@ function ScrollNavbar(_ref) {
108
111
  flexGrow: 1,
109
112
  display: {
110
113
  xs: "none",
111
- md: "flex"
114
+ md: "flex",
115
+ alignItems: "center"
112
116
  }
113
117
  }
114
118
  }, /*#__PURE__*/React__default.createElement(Tabs, {
@@ -116,7 +120,7 @@ function ScrollNavbar(_ref) {
116
120
  "aria-label": "wrapped label tabs example",
117
121
  textColor: "secondary",
118
122
  indicatorColor: "secondary",
119
- variant: "fullWidth"
123
+ role: "navigation"
120
124
  }, tabs.length > 0 && tabs.map((tab, index) => {
121
125
  return /*#__PURE__*/React__default.createElement(Box, {
122
126
  key: tab.name,
@@ -153,12 +157,13 @@ function ScrollNavbar(_ref) {
153
157
  }
154
158
  }, /*#__PURE__*/React__default.createElement("img", {
155
159
  src: logo.url,
156
- width: logo.width || "32px",
157
- height: logo.height || "32px",
160
+ width: logo.width || 32,
161
+ height: logo.height || 32,
158
162
  alt: logo.alternativeText || "site logo",
159
163
  style: {
160
- maxWidth: "60px",
161
- maxHeight: "60px"
164
+ maxHeight: "60px",
165
+ width: "auto",
166
+ height: "auto"
162
167
  }
163
168
  })), site_title !== undefined && /*#__PURE__*/React__default.createElement(Typography, {
164
169
  variant: "h5",
@@ -233,11 +238,12 @@ function ScrollNavbar(_ref) {
233
238
  }, /*#__PURE__*/React__default.createElement("img", {
234
239
  src: logo.url,
235
240
  alt: logo.alternativeText || "logo",
236
- width: logo.width || "32px",
237
- height: logo.height || "32px",
241
+ width: logo.width || 32,
242
+ height: logo.height || 32,
238
243
  style: {
239
- maxWidth: "60px",
240
- maxHeight: "60px"
244
+ maxHeight: "60px",
245
+ width: "auto",
246
+ height: "auto"
241
247
  }
242
248
  })), /*#__PURE__*/React__default.createElement(Typography, {
243
249
  variant: "h5",
@@ -263,18 +269,17 @@ function ScrollNavbar(_ref) {
263
269
  sx: {
264
270
  color: "primary.contrastText"
265
271
  }
266
- }))))), pages && pages.length > 0 && /*#__PURE__*/React__default.createElement(List, null, pages.map(page => {
272
+ }))))), tabs && tabs.length > 0 && /*#__PURE__*/React__default.createElement(List, null, tabs.map(tab => {
267
273
  return /*#__PURE__*/React__default.createElement(Fragment, {
268
- key: page.name
274
+ key: tab.name
269
275
  }, /*#__PURE__*/React__default.createElement(ScrollLink, {
270
- href: "#".concat(page.slug)
271
- }, /*#__PURE__*/React__default.createElement(ListItem
272
- /* onClick={() => {
273
- router.push(page.url);
274
- handleCloseMobileMenu();
275
- }} */, null, /*#__PURE__*/React__default.createElement(ListItemText, {
276
- primary: page.name
277
- }))), /*#__PURE__*/React__default.createElement(Divider, null));
276
+ href: "#".concat(tab.slug)
277
+ }, /*#__PURE__*/React__default.createElement(Box, {
278
+ onClick: handleCloseMobileMenu
279
+ //sx={{ width: "100%", height: "100%" }}
280
+ }, /*#__PURE__*/React__default.createElement(ListItem, null, /*#__PURE__*/React__default.createElement(ListItemText, {
281
+ primary: tab.name
282
+ })))), /*#__PURE__*/React__default.createElement(Divider, null));
278
283
  })))))));
279
284
  }
280
285
 
@@ -20,27 +20,18 @@ function WebsitePlaceholder(_ref) {
20
20
  children
21
21
  } = _ref;
22
22
  const theme = useTheme();
23
- console.log(theme.palette.mode);
24
-
25
- // const [keysPressed, setKeysPressed] = React.useState({});
26
- // let visible = true;
27
-
28
23
  const [visible, setVisible] = React__default.useState(true);
29
24
  let keysPressed = {};
30
25
  const keyDownHandler = event => {
31
- console.log("key down", event.key, keysPressed);
32
26
  keysPressed = {
33
27
  ...keysPressed,
34
28
  [event.key]: true
35
29
  };
36
30
  if (keysPressed["w"] === true && keysPressed["a"] === true && keysPressed["s"] === true && keysPressed["d"] === true) {
37
- console.log("You found the easter egg!", visible);
38
- // visible = Boolean(!visible);
39
31
  setVisible(!visible);
40
32
  }
41
33
  };
42
34
  const keyUpHandler = event => {
43
- console.log("key up", event.key);
44
35
  keysPressed[event.key] = false;
45
36
  };
46
37
  React__default.useEffect(() => {
@@ -51,9 +42,6 @@ function WebsitePlaceholder(_ref) {
51
42
  document.removeEventListener("keyup", keyUpHandler);
52
43
  };
53
44
  }, []);
54
- React__default.useEffect(() => {
55
- console.log("visible", visible);
56
- }, [visible]);
57
45
  return /*#__PURE__*/React__default.createElement(Box, {
58
46
  sx: [visible && {
59
47
  display: "grid",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.130",
3
+ "version": "0.1.132",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -6,7 +6,6 @@ import { Stack, SvgIcon, Typography } from "@mui/material";
6
6
  import FiberManualRecordIcon from "@mui/icons-material/FiberManualRecord";
7
7
 
8
8
  function BulletList({ bullets, bulletSVG }) {
9
- console.log("bulletSVG2", bulletSVG);
10
9
  return (
11
10
  <Stack spacing={2}>
12
11
  {bullets.map((bullet, index) => (
@@ -118,10 +118,10 @@ export function FeatureSection({
118
118
  {feature.subHeading}
119
119
  </Typography>
120
120
  </CardContent>
121
- <CardActions sx={{ mb: 0 }}>
121
+ {/* <CardActions sx={{ mb: 0 }}>
122
122
  <Button size="small">Contact</Button>
123
123
  <Button size="small">Learn More</Button>
124
- </CardActions>
124
+ </CardActions> */}
125
125
  </Card>
126
126
  );
127
127
  })}
@@ -45,8 +45,6 @@ export function HeroSection({ data }: Readonly<HeroSectionProps>) {
45
45
 
46
46
  const theme = useTheme();
47
47
 
48
- console.log(theme.palette.background.paper);
49
-
50
48
  const glassColor = setOpacity(theme.palette.background.paper, 0.45);
51
49
 
52
50
  return (
@@ -94,6 +92,11 @@ export function HeroSection({ data }: Readonly<HeroSectionProps>) {
94
92
  height={logoImage.height || 100}
95
93
  src={logoImage.url}
96
94
  width={logoImage.width || 100}
95
+ style={{
96
+ width: "90%",
97
+ height: "90%",
98
+ objectFit: "contain",
99
+ }}
97
100
  />
98
101
  )}
99
102
 
@@ -74,8 +74,6 @@ function NavBar({
74
74
  const router = useRouter();
75
75
 
76
76
  const handleChange = (event, newValue) => {
77
- console.log(newValue);
78
-
79
77
  setCurrentTab(newValue);
80
78
  };
81
79
 
@@ -73,7 +73,7 @@ export function PersonaliaSection({
73
73
  <Grid item xs={12} md={6} key={partner.id}>
74
74
  <Paper sx={{ p: 2, height: "100%" }}>
75
75
  <Grid container spacing={3}>
76
- <Grid item xs={7}>
76
+ <Grid item xs={12} sm={7}>
77
77
  <Typography
78
78
  variant="h5"
79
79
  sx={{
@@ -96,16 +96,24 @@ export function PersonaliaSection({
96
96
  <BlockRendererClient content={partner.text} />
97
97
  )}
98
98
  </Grid>
99
- <Grid item xs={5}>
100
- <Stack spacing={2}>
99
+ <Grid item xs={12} sm={5}>
100
+ <Stack
101
+ spacing={2}
102
+ sx={{ overflow: "clip" }}
103
+ justifyContent={"center"}
104
+ alignItems={"stretch"}
105
+ >
101
106
  {partner.photo?.url && (
102
107
  <StrapiImage
103
108
  src={partner.photo.url}
104
109
  alt={partner.photo.alternativeText}
105
- // width={partner.photo.width}
106
- // height={partner.photo.height}
107
110
  width={200}
108
111
  height={200}
112
+ style={{
113
+ borderRadius: "50%",
114
+ margin: "auto",
115
+ ...partner.photo.style,
116
+ }}
109
117
  />
110
118
  )}
111
119
  {partner.links?.length > 0 &&
@@ -30,8 +30,6 @@ const ScrollLink = ({ children, ...props }: ScrollLinkProps) => {
30
30
 
31
31
  const theme = useTheme();
32
32
 
33
- console.log(theme.palette.text);
34
-
35
33
  return (
36
34
  <Link
37
35
  {...props}
@@ -22,6 +22,7 @@ import {
22
22
  import CloseIcon from "@mui/icons-material/Close";
23
23
  import MoreVertIcon from "@mui/icons-material/MoreVert";
24
24
  import ScrollLink from "./ScrollLink.tsx";
25
+ import { type ReactNode } from "react";
25
26
 
26
27
  interface ImageProps {
27
28
  id: number;
@@ -48,7 +49,7 @@ type TabInfo = {
48
49
  };
49
50
 
50
51
  interface NavbarProps {
51
- site_title: string;
52
+ site_title: string | ReactNode;
52
53
  logo: ImageProps;
53
54
  pages: Page[];
54
55
  tabs: TabInfo[];
@@ -102,7 +103,12 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
102
103
  width={logo.width}
103
104
  height={logo.height}
104
105
  alt={logo.alternativeText || "site logo"}
105
- style={{ maxHeight: "50px" }}
106
+ style={{
107
+ maxHeight: "55px",
108
+ marginRight: "20px",
109
+ width: "auto",
110
+ height: "auto",
111
+ }}
106
112
  />
107
113
  )}
108
114
  {site_title !== undefined && (
@@ -155,7 +161,7 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
155
161
  <Box
156
162
  sx={{
157
163
  flexGrow: 1,
158
- display: { xs: "none", md: "flex" },
164
+ display: { xs: "none", md: "flex", alignItems: "center" },
159
165
  }}
160
166
  >
161
167
  <Tabs
@@ -163,7 +169,7 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
163
169
  aria-label="wrapped label tabs example"
164
170
  textColor="secondary"
165
171
  indicatorColor="secondary"
166
- variant="fullWidth"
172
+ role="navigation"
167
173
  >
168
174
  {tabs.length > 0 &&
169
175
  tabs.map((tab: TabInfo, index: number) => {
@@ -192,10 +198,10 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
192
198
  <Box sx={{ display: "flex", mr: 1 }}>
193
199
  <img
194
200
  src={logo.url}
195
- width={logo.width || "32px"}
196
- height={logo.height || "32px"}
201
+ width={logo.width || 32}
202
+ height={logo.height || 32}
197
203
  alt={logo.alternativeText || "site logo"}
198
- style={{ maxWidth: "60px", maxHeight: "60px" }}
204
+ style={{ maxHeight: "60px", width: "auto", height: "auto" }}
199
205
  />
200
206
  </Box>
201
207
  )}
@@ -261,9 +267,13 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
261
267
  <img
262
268
  src={logo.url}
263
269
  alt={logo.alternativeText || "logo"}
264
- width={logo.width || "32px"}
265
- height={logo.height || "32px"}
266
- style={{ maxWidth: "60px", maxHeight: "60px" }}
270
+ width={logo.width || 32}
271
+ height={logo.height || 32}
272
+ style={{
273
+ maxHeight: "60px",
274
+ width: "auto",
275
+ height: "auto",
276
+ }}
267
277
  />
268
278
  </Box>
269
279
  <Typography
@@ -298,17 +308,38 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
298
308
  </Toolbar>
299
309
  </Container>
300
310
  </AppBar>
301
- {pages && pages.length > 0 && (
311
+ {tabs && tabs.length > 0 && (
312
+ <List>
313
+ {tabs.map((tab: TabInfo) => {
314
+ return (
315
+ <Fragment key={tab.name}>
316
+ <ScrollLink href={`#${tab.slug}`}>
317
+ <Box
318
+ onClick={handleCloseMobileMenu}
319
+ //sx={{ width: "100%", height: "100%" }}
320
+ >
321
+ <ListItem>
322
+ <ListItemText primary={tab.name} />
323
+ </ListItem>
324
+ </Box>
325
+ </ScrollLink>
326
+ <Divider />
327
+ </Fragment>
328
+ );
329
+ })}
330
+ </List>
331
+ )}
332
+ {/* {pages && pages.length > 0 && (
302
333
  <List>
303
334
  {pages.map((page: Page) => {
304
335
  return (
305
336
  <Fragment key={page.name}>
306
337
  <ScrollLink href={`#${page.slug}`}>
307
338
  <ListItem
308
- /* onClick={() => {
309
- router.push(page.url);
310
- handleCloseMobileMenu();
311
- }} */
339
+ // onClick={() => {
340
+ // router.push(page.url);
341
+ // handleCloseMobileMenu();
342
+ //}}
312
343
  >
313
344
  <ListItemText primary={page.name} />
314
345
  </ListItem>
@@ -318,7 +349,7 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
318
349
  );
319
350
  })}
320
351
  </List>
321
- )}
352
+ )} */}
322
353
  </Dialog>
323
354
  </Box>
324
355
  </Toolbar>
@@ -5,8 +5,6 @@ import Card from "./Card";
5
5
  import { Stack } from "@mui/material";
6
6
 
7
7
  function ThreeUp({ card1, card2, card3 }) {
8
- console.log("card1", card1);
9
-
10
8
  return (
11
9
  <Stack direction={"row"} spacing={2} justifyContent={"space-between"}>
12
10
  {card1 && (
@@ -15,17 +15,11 @@ function WebsitePlaceholder({
15
15
  }) {
16
16
  const theme = useTheme();
17
17
 
18
- console.log(theme.palette.mode);
19
-
20
- // const [keysPressed, setKeysPressed] = React.useState({});
21
- // let visible = true;
22
-
23
18
  const [visible, setVisible] = React.useState(true);
24
19
 
25
20
  let keysPressed = {};
26
21
 
27
22
  const keyDownHandler = (event) => {
28
- console.log("key down", event.key, keysPressed);
29
23
  keysPressed = { ...keysPressed, [event.key]: true };
30
24
 
31
25
  if (
@@ -34,14 +28,11 @@ function WebsitePlaceholder({
34
28
  keysPressed["s"] === true &&
35
29
  keysPressed["d"] === true
36
30
  ) {
37
- console.log("You found the easter egg!", visible);
38
- // visible = Boolean(!visible);
39
31
  setVisible(!visible);
40
32
  }
41
33
  };
42
34
 
43
35
  const keyUpHandler = (event) => {
44
- console.log("key up", event.key);
45
36
  keysPressed[event.key] = false;
46
37
  };
47
38
 
@@ -55,10 +46,6 @@ function WebsitePlaceholder({
55
46
  };
56
47
  }, []);
57
48
 
58
- React.useEffect(() => {
59
- console.log("visible", visible);
60
- }, [visible]);
61
-
62
49
  return (
63
50
  <Box
64
51
  sx={[
@@ -35,7 +35,6 @@ export async function getHomePageData() {
35
35
  populate: {
36
36
  image: {
37
37
  populate: true,
38
- /* fields: ["url", "alternativeText"], */
39
38
  },
40
39
  link: {
41
40
  populate: true,
@@ -59,25 +58,18 @@ export async function getPagedata(slug: string) {
59
58
  baseUrl
60
59
  );
61
60
 
62
- // /slugify/slugs/page/${params.slug}?populate[blocks][populate]=%2A
63
-
64
- console.log(url);
65
-
66
61
  url.search = qs.stringify({
67
62
  populate: {
68
63
  blocks: {
69
64
  populate: {
70
65
  logoImage: {
71
66
  populate: true,
72
- // fields: ["url", "alternativeText"],
73
67
  },
74
68
  bgImage: {
75
69
  populate: true,
76
- // fields: ["url", "alternativeText"],
77
70
  },
78
71
  image: {
79
72
  populate: true,
80
- // fields: ["url", "alternativeText"],
81
73
  },
82
74
  link: {
83
75
  populate: true,
@@ -121,15 +113,12 @@ export async function getAllPages() {
121
113
  populate: {
122
114
  bgImage: {
123
115
  populate: true,
124
- // fields: ["url", "alternativeText"],
125
116
  },
126
117
  logoImage: {
127
118
  populate: true,
128
- // fields: ["url", "alternativeText"],
129
119
  },
130
120
  image: {
131
121
  populate: true,
132
- // fields: ["url", "alternativeText"],
133
122
  },
134
123
  link: {
135
124
  populate: true,
@@ -162,29 +151,3 @@ export async function getAllPages() {
162
151
 
163
152
  return await fetchData(url.href);
164
153
  }
165
-
166
- /* export async function getGlobalPageData() {
167
- noStore();
168
- const url = new URL("/api/global", baseUrl);
169
-
170
- url.search = qs.stringify({
171
- populate: [
172
- "header.logoText",
173
- "header.ctaButton",
174
- "footer.logoText",
175
- "footer.socialLink",
176
- ],
177
- });
178
-
179
- return await fetchData(url.href);
180
- }
181
-
182
- export async function getGlobalPageMetadata() {
183
- const url = new URL("/api/global", baseUrl);
184
-
185
- url.search = qs.stringify({
186
- fields: ["title", "description"],
187
- });
188
-
189
- return await fetchData(url.href);
190
- } */
@@ -1,15 +1,11 @@
1
1
  import BulletList from "../components/BulletList";
2
2
  import React from "react";
3
- // import bulletSVG from "../../public/AMH/BulletSVG.svg";
4
- // import { ReactComponent as bulletSVG } from "../../public/AMH/BulletSVG.js";
5
3
 
6
4
  export default {
7
5
  title: "UMWD/BulletList",
8
6
  component: BulletList,
9
7
  };
10
8
 
11
- //console.log(<bulletSVG />);
12
-
13
9
  const Template = ({ bullets, bulletSVG, ...args }) => (
14
10
  <BulletList bullets={bullets} bulletSVG={bulletSVG} />
15
11
  );
@@ -27,7 +23,7 @@ AMH.args = {
27
23
  <svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24">
28
24
  <g id="Layer_32">
29
25
  <path
30
- class="st27"
26
+ className="st27"
31
27
  fill="#DD1805"
32
28
  d="M22.15,12c-1.39-0.61-8-3.55-12.14-6.33C5.18,2.43,4.03,0.28,3.19,0.23c-0.4-0.02-1.26,1.04-1.34,1.42
33
29
  L9,10.62c0,0,5.12,1.04,8.08,1.38C14.12,12.34,9,13.38,9,13.38l-7.16,8.96c0.08,0.38,0.94,1.44,1.34,1.42
@@ -51,7 +47,7 @@ OREFS.args = {
51
47
  <svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24">
52
48
  <g id="Layer_32">
53
49
  <path
54
- class="st27"
50
+ className="st27"
55
51
  fill="#DD1805"
56
52
  d="M22.15,12c-1.39-0.61-8-3.55-12.14-6.33C5.18,2.43,4.03,0.28,3.19,0.23c-0.4-0.02-1.26,1.04-1.34,1.42
57
53
  L9,10.62c0,0,5.12,1.04,8.08,1.38C14.12,12.34,9,13.38,9,13.38l-7.16,8.96c0.08,0.38,0.94,1.44,1.34,1.42
@@ -75,7 +71,7 @@ UMWD.args = {
75
71
  <svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24">
76
72
  <g id="Layer_32">
77
73
  <path
78
- class="st27"
74
+ className="st27"
79
75
  fill="#DD1805"
80
76
  d="M22.15,12c-1.39-0.61-8-3.55-12.14-6.33C5.18,2.43,4.03,0.28,3.19,0.23c-0.4-0.02-1.26,1.04-1.34,1.42
81
77
  L9,10.62c0,0,5.12,1.04,8.08,1.38C14.12,12.34,9,13.38,9,13.38l-7.16,8.96c0.08,0.38,0.94,1.44,1.34,1.42
@@ -14,7 +14,6 @@ export default {
14
14
  };
15
15
 
16
16
  const Template = ({ ...args }) => {
17
- console.log(thumbnail);
18
17
  return <Footer {...args} />;
19
18
  };
20
19
 
@@ -7,12 +7,9 @@ import { useTheme } from "@mui/material";
7
7
  export default {
8
8
  title: "UMWD/NavBar",
9
9
  component: NavBar,
10
- // argTypes: { numberOfChildren: { type: "number" } },
11
10
  };
12
11
 
13
12
  const Template = ({ ...args }) => {
14
- console.log(thumbnail);
15
-
16
13
  return <NavBar {...args} />;
17
14
  };
18
15
 
@@ -12,8 +12,8 @@ const Template = ({ ...args }) => {
12
12
  <>
13
13
  <ScrollNavbar {...args} />
14
14
  {args.data.tabs.map((tab, index) => {
15
- const bgColor = `rgb( ${(index + 1) * 40}, ${(index + 1) * 50}, ${
16
- (index + 1) * 30
15
+ const bgColor = `rgb( ${(index + 1) * 20}, ${(index + 1) * 20}, ${
16
+ (index + 1) * 20
17
17
  })`;
18
18
 
19
19
  return (
@@ -44,12 +44,21 @@ AMH.args = {
44
44
  data: {
45
45
  logo: {
46
46
  id: "1",
47
- url: logoText.src,
47
+ url: "http://127.0.0.1:1337/uploads/logo_small_f0fcf59dad.png",
48
48
  alternativeText: "Logo",
49
49
  style: {},
50
50
  width: logoText.width,
51
51
  height: logoText.height,
52
52
  },
53
+ site_title: (
54
+ <h1
55
+ style={{ fontFamily: "Montserrat", fontWeight: 400, fontSize: "24px" }}
56
+ >
57
+ <span style={{ fontWeight: 600 }}>A</span>ero
58
+ <span style={{ fontWeight: 600 }}>M</span>edical{" "}
59
+ <span style={{ fontWeight: 600 }}>H</span>olland
60
+ </h1>
61
+ ), //"AeroMedical Holland",
53
62
  tabs: [
54
63
  {
55
64
  name: "Home",
@@ -73,6 +82,6 @@ AMH.args = {
73
82
  },
74
83
  ],
75
84
  maxWidth: "lg",
76
- minHeight: "100px",
85
+ minHeight: "90px",
77
86
  },
78
87
  };
@@ -93,12 +93,10 @@ export const darkTheme = createTheme({
93
93
  width: "0.8em",
94
94
  },
95
95
  "*::-webkit-scrollbar-track": {
96
- "-webkit-box-shadow": "inset 0 0 6px rgba(0,0,0,0.00)",
97
96
  backgroundColor: "#000606",
98
97
  },
99
98
  "*::-webkit-scrollbar-thumb": {
100
99
  backgroundColor: "#DD1805",
101
- outline: "1px solid slategrey",
102
100
  },
103
101
  },
104
102
  },
@@ -190,12 +188,10 @@ export const lightTheme = createTheme({
190
188
  width: "0.8em",
191
189
  },
192
190
  "*::-webkit-scrollbar-track": {
193
- "-webkit-box-shadow": "inset 0 0 6px rgba(0,0,0,0.00)",
194
191
  backgroundColor: "#a5c5ba",
195
192
  },
196
193
  "*::-webkit-scrollbar-thumb": {
197
194
  backgroundColor: "#DD1805",
198
- outline: "1px solid slategrey",
199
195
  },
200
196
  },
201
197
  },