umwd-components 0.1.129 → 0.1.131

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.
@@ -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,
@@ -12,6 +12,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
12
12
  var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.js');
13
13
  var Link = require('next/link');
14
14
  var React = require('react');
15
+ var material = require('@mui/material');
15
16
 
16
17
  // mirror the props of next/link component
17
18
 
@@ -23,23 +24,22 @@ const ScrollLink = _ref => {
23
24
  } = _ref;
24
25
  const handleScroll = e => {
25
26
  e.preventDefault();
26
- //remove everything before the hash
27
+
28
+ // remove everything before the hash
27
29
  const targetId = e.currentTarget.href.replace(/.*\#/, "");
28
- //console.log("targetId", targetId);
29
30
  const elem = document.getElementById(targetId);
30
- //console.log("elem", elem);
31
- //console.log(elem?.getBoundingClientRect().top);
32
- //console.log(window.scrollY);
33
31
  const scrollDistance = window.scrollY + (elem === null || elem === void 0 ? void 0 : elem.getBoundingClientRect().top);
34
- //console.log(scrollDistance);
35
32
  window.scrollTo({
36
- //top: elem?.getBoundingClientRect().top,
37
33
  top: scrollDistance,
38
34
  behavior: "smooth"
39
35
  });
40
36
  };
37
+ const theme = material.useTheme();
41
38
  return /*#__PURE__*/React.createElement(Link, _rollupPluginBabelHelpers.extends({}, props, {
42
- onClick: handleScroll
39
+ onClick: handleScroll,
40
+ style: {
41
+ color: theme.palette.primary.contrastText
42
+ }
43
43
  }), children);
44
44
  };
45
45
 
@@ -72,7 +72,9 @@ function ScrollNavbar(_ref) {
72
72
  height: logo.height,
73
73
  alt: logo.alternativeText || "site logo",
74
74
  style: {
75
- maxHeight: "50px"
75
+ maxHeight: "50px",
76
+ width: "auto",
77
+ height: "auto"
76
78
  }
77
79
  }), site_title !== undefined && /*#__PURE__*/React.createElement(material.Typography, {
78
80
  variant: "h6",
@@ -120,7 +122,7 @@ function ScrollNavbar(_ref) {
120
122
  "aria-label": "wrapped label tabs example",
121
123
  textColor: "secondary",
122
124
  indicatorColor: "secondary",
123
- variant: "fullWidth"
125
+ role: "navigation"
124
126
  }, tabs.length > 0 && tabs.map((tab, index) => {
125
127
  return /*#__PURE__*/React.createElement(material.Box, {
126
128
  key: tab.name,
@@ -157,12 +159,13 @@ function ScrollNavbar(_ref) {
157
159
  }
158
160
  }, /*#__PURE__*/React.createElement("img", {
159
161
  src: logo.url,
160
- width: logo.width || "32px",
161
- height: logo.height || "32px",
162
+ width: logo.width || 32,
163
+ height: logo.height || 32,
162
164
  alt: logo.alternativeText || "site logo",
163
165
  style: {
164
- maxWidth: "60px",
165
- maxHeight: "60px"
166
+ maxHeight: "60px",
167
+ width: "auto",
168
+ height: "auto"
166
169
  }
167
170
  })), site_title !== undefined && /*#__PURE__*/React.createElement(material.Typography, {
168
171
  variant: "h5",
@@ -237,11 +240,12 @@ function ScrollNavbar(_ref) {
237
240
  }, /*#__PURE__*/React.createElement("img", {
238
241
  src: logo.url,
239
242
  alt: logo.alternativeText || "logo",
240
- width: logo.width || "32px",
241
- height: logo.height || "32px",
243
+ width: logo.width || 32,
244
+ height: logo.height || 32,
242
245
  style: {
243
- maxWidth: "60px",
244
- maxHeight: "60px"
246
+ maxHeight: "60px",
247
+ width: "auto",
248
+ height: "auto"
245
249
  }
246
250
  })), /*#__PURE__*/React.createElement(material.Typography, {
247
251
  variant: "h5",
@@ -267,18 +271,17 @@ function ScrollNavbar(_ref) {
267
271
  sx: {
268
272
  color: "primary.contrastText"
269
273
  }
270
- }))))), pages && pages.length > 0 && /*#__PURE__*/React.createElement(material.List, null, pages.map(page => {
274
+ }))))), tabs && tabs.length > 0 && /*#__PURE__*/React.createElement(material.List, null, tabs.map(tab => {
271
275
  return /*#__PURE__*/React.createElement(React.Fragment, {
272
- key: page.name
276
+ key: tab.name
273
277
  }, /*#__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));
278
+ href: "#".concat(tab.slug)
279
+ }, /*#__PURE__*/React.createElement(material.Box, {
280
+ onClick: handleCloseMobileMenu
281
+ //sx={{ width: "100%", height: "100%" }}
282
+ }, /*#__PURE__*/React.createElement(material.ListItem, null, /*#__PURE__*/React.createElement(material.ListItemText, {
283
+ primary: tab.name
284
+ })))), /*#__PURE__*/React.createElement(material.Divider, null));
282
285
  })))))));
283
286
  }
284
287
 
@@ -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,
@@ -8,6 +8,7 @@
8
8
  import { extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import Link from 'next/link';
10
10
  import React__default from 'react';
11
+ import { useTheme } from '@mui/material';
11
12
 
12
13
  // mirror the props of next/link component
13
14
 
@@ -19,23 +20,22 @@ const ScrollLink = _ref => {
19
20
  } = _ref;
20
21
  const handleScroll = e => {
21
22
  e.preventDefault();
22
- //remove everything before the hash
23
+
24
+ // remove everything before the hash
23
25
  const targetId = e.currentTarget.href.replace(/.*\#/, "");
24
- //console.log("targetId", targetId);
25
26
  const elem = document.getElementById(targetId);
26
- //console.log("elem", elem);
27
- //console.log(elem?.getBoundingClientRect().top);
28
- //console.log(window.scrollY);
29
27
  const scrollDistance = window.scrollY + (elem === null || elem === void 0 ? void 0 : elem.getBoundingClientRect().top);
30
- //console.log(scrollDistance);
31
28
  window.scrollTo({
32
- //top: elem?.getBoundingClientRect().top,
33
29
  top: scrollDistance,
34
30
  behavior: "smooth"
35
31
  });
36
32
  };
33
+ const theme = useTheme();
37
34
  return /*#__PURE__*/React__default.createElement(Link, _extends({}, props, {
38
- onClick: handleScroll
35
+ onClick: handleScroll,
36
+ style: {
37
+ color: theme.palette.primary.contrastText
38
+ }
39
39
  }), children);
40
40
  };
41
41
 
@@ -68,7 +68,9 @@ function ScrollNavbar(_ref) {
68
68
  height: logo.height,
69
69
  alt: logo.alternativeText || "site logo",
70
70
  style: {
71
- maxHeight: "50px"
71
+ maxHeight: "50px",
72
+ width: "auto",
73
+ height: "auto"
72
74
  }
73
75
  }), site_title !== undefined && /*#__PURE__*/React__default.createElement(Typography, {
74
76
  variant: "h6",
@@ -116,7 +118,7 @@ function ScrollNavbar(_ref) {
116
118
  "aria-label": "wrapped label tabs example",
117
119
  textColor: "secondary",
118
120
  indicatorColor: "secondary",
119
- variant: "fullWidth"
121
+ role: "navigation"
120
122
  }, tabs.length > 0 && tabs.map((tab, index) => {
121
123
  return /*#__PURE__*/React__default.createElement(Box, {
122
124
  key: tab.name,
@@ -153,12 +155,13 @@ function ScrollNavbar(_ref) {
153
155
  }
154
156
  }, /*#__PURE__*/React__default.createElement("img", {
155
157
  src: logo.url,
156
- width: logo.width || "32px",
157
- height: logo.height || "32px",
158
+ width: logo.width || 32,
159
+ height: logo.height || 32,
158
160
  alt: logo.alternativeText || "site logo",
159
161
  style: {
160
- maxWidth: "60px",
161
- maxHeight: "60px"
162
+ maxHeight: "60px",
163
+ width: "auto",
164
+ height: "auto"
162
165
  }
163
166
  })), site_title !== undefined && /*#__PURE__*/React__default.createElement(Typography, {
164
167
  variant: "h5",
@@ -233,11 +236,12 @@ function ScrollNavbar(_ref) {
233
236
  }, /*#__PURE__*/React__default.createElement("img", {
234
237
  src: logo.url,
235
238
  alt: logo.alternativeText || "logo",
236
- width: logo.width || "32px",
237
- height: logo.height || "32px",
239
+ width: logo.width || 32,
240
+ height: logo.height || 32,
238
241
  style: {
239
- maxWidth: "60px",
240
- maxHeight: "60px"
242
+ maxHeight: "60px",
243
+ width: "auto",
244
+ height: "auto"
241
245
  }
242
246
  })), /*#__PURE__*/React__default.createElement(Typography, {
243
247
  variant: "h5",
@@ -263,18 +267,17 @@ function ScrollNavbar(_ref) {
263
267
  sx: {
264
268
  color: "primary.contrastText"
265
269
  }
266
- }))))), pages && pages.length > 0 && /*#__PURE__*/React__default.createElement(List, null, pages.map(page => {
270
+ }))))), tabs && tabs.length > 0 && /*#__PURE__*/React__default.createElement(List, null, tabs.map(tab => {
267
271
  return /*#__PURE__*/React__default.createElement(Fragment, {
268
- key: page.name
272
+ key: tab.name
269
273
  }, /*#__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));
274
+ href: "#".concat(tab.slug)
275
+ }, /*#__PURE__*/React__default.createElement(Box, {
276
+ onClick: handleCloseMobileMenu
277
+ //sx={{ width: "100%", height: "100%" }}
278
+ }, /*#__PURE__*/React__default.createElement(ListItem, null, /*#__PURE__*/React__default.createElement(ListItemText, {
279
+ primary: tab.name
280
+ })))), /*#__PURE__*/React__default.createElement(Divider, null));
278
281
  })))))));
279
282
  }
280
283
 
@@ -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.129",
3
+ "version": "0.1.131",
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,11 +30,13 @@ 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
- <Link {...props} onClick={handleScroll}>
37
- <Box sx={{ color: theme.palette.primary.contrastText }}>{children}</Box>
34
+ <Link
35
+ {...props}
36
+ onClick={handleScroll}
37
+ style={{ color: theme.palette.primary.contrastText }}
38
+ >
39
+ {children}
38
40
  </Link>
39
41
  );
40
42
  };
@@ -102,7 +102,7 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
102
102
  width={logo.width}
103
103
  height={logo.height}
104
104
  alt={logo.alternativeText || "site logo"}
105
- style={{ maxHeight: "50px" }}
105
+ style={{ maxHeight: "50px", width: "auto", height: "auto" }}
106
106
  />
107
107
  )}
108
108
  {site_title !== undefined && (
@@ -163,7 +163,7 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
163
163
  aria-label="wrapped label tabs example"
164
164
  textColor="secondary"
165
165
  indicatorColor="secondary"
166
- variant="fullWidth"
166
+ role="navigation"
167
167
  >
168
168
  {tabs.length > 0 &&
169
169
  tabs.map((tab: TabInfo, index: number) => {
@@ -192,10 +192,10 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
192
192
  <Box sx={{ display: "flex", mr: 1 }}>
193
193
  <img
194
194
  src={logo.url}
195
- width={logo.width || "32px"}
196
- height={logo.height || "32px"}
195
+ width={logo.width || 32}
196
+ height={logo.height || 32}
197
197
  alt={logo.alternativeText || "site logo"}
198
- style={{ maxWidth: "60px", maxHeight: "60px" }}
198
+ style={{ maxHeight: "60px", width: "auto", height: "auto" }}
199
199
  />
200
200
  </Box>
201
201
  )}
@@ -261,9 +261,13 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
261
261
  <img
262
262
  src={logo.url}
263
263
  alt={logo.alternativeText || "logo"}
264
- width={logo.width || "32px"}
265
- height={logo.height || "32px"}
266
- style={{ maxWidth: "60px", maxHeight: "60px" }}
264
+ width={logo.width || 32}
265
+ height={logo.height || 32}
266
+ style={{
267
+ maxHeight: "60px",
268
+ width: "auto",
269
+ height: "auto",
270
+ }}
267
271
  />
268
272
  </Box>
269
273
  <Typography
@@ -298,17 +302,38 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
298
302
  </Toolbar>
299
303
  </Container>
300
304
  </AppBar>
301
- {pages && pages.length > 0 && (
305
+ {tabs && tabs.length > 0 && (
306
+ <List>
307
+ {tabs.map((tab: TabInfo) => {
308
+ return (
309
+ <Fragment key={tab.name}>
310
+ <ScrollLink href={`#${tab.slug}`}>
311
+ <Box
312
+ onClick={handleCloseMobileMenu}
313
+ //sx={{ width: "100%", height: "100%" }}
314
+ >
315
+ <ListItem>
316
+ <ListItemText primary={tab.name} />
317
+ </ListItem>
318
+ </Box>
319
+ </ScrollLink>
320
+ <Divider />
321
+ </Fragment>
322
+ );
323
+ })}
324
+ </List>
325
+ )}
326
+ {/* {pages && pages.length > 0 && (
302
327
  <List>
303
328
  {pages.map((page: Page) => {
304
329
  return (
305
330
  <Fragment key={page.name}>
306
331
  <ScrollLink href={`#${page.slug}`}>
307
332
  <ListItem
308
- /* onClick={() => {
309
- router.push(page.url);
310
- handleCloseMobileMenu();
311
- }} */
333
+ // onClick={() => {
334
+ // router.push(page.url);
335
+ // handleCloseMobileMenu();
336
+ //}}
312
337
  >
313
338
  <ListItemText primary={page.name} />
314
339
  </ListItem>
@@ -318,7 +343,7 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
318
343
  );
319
344
  })}
320
345
  </List>
321
- )}
346
+ )} */}
322
347
  </Dialog>
323
348
  </Box>
324
349
  </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
 
@@ -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
  },