gatsby-theme-q3 3.10.11 → 3.11.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.11.0](https://github.com/3merge/q/compare/v3.10.11...v3.11.0) (2022-10-13)
7
+
8
+
9
+ ### Features
10
+
11
+ * login public notice ([#433](https://github.com/3merge/q/issues/433)) ([8cf9a38](https://github.com/3merge/q/commit/8cf9a38f8bfc1cd5ee5b66b529d0b3bd6ff7bbe1))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.10.11](https://github.com/3merge/q/compare/v3.10.10...v3.10.11) (2022-10-11)
7
18
 
8
19
  **Note:** Version bump only for package gatsby-theme-q3
@@ -11,6 +11,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
12
  var _core = require("@material-ui/core");
13
13
 
14
+ var _lab = require("@material-ui/lab");
15
+
14
16
  var _gatsby = require("gatsby");
15
17
 
16
18
  var _q3UiLocale = require("q3-ui-locale");
@@ -111,7 +113,8 @@ const PublicTemplate = ({
111
113
  terms,
112
114
  privacy,
113
115
  logo,
114
- photo
116
+ photo,
117
+ publicNotice = null
115
118
  } = (0, _useSiteMetaData.default)({
116
119
  logo: '/logo.png',
117
120
  photo: '/background.jpg'
@@ -138,6 +141,15 @@ const PublicTemplate = ({
138
141
  }, /*#__PURE__*/_react.default.createElement("img", {
139
142
  alt: brand,
140
143
  src: logo
144
+ }))), publicNotice && /*#__PURE__*/_react.default.createElement(_core.Box, {
145
+ className: cls.container,
146
+ mb: 1
147
+ }, /*#__PURE__*/_react.default.createElement(_lab.Alert, {
148
+ severity: "warning"
149
+ }, /*#__PURE__*/_react.default.createElement(_core.Box, {
150
+ dangerouslySetInnerHTML: {
151
+ __html: publicNotice
152
+ }
141
153
  }))), /*#__PURE__*/_react.default.createElement(_core.Paper, {
142
154
  className: cls.container
143
155
  }, /*#__PURE__*/_react.default.createElement(_core.Grid, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-theme-q3",
3
- "version": "3.10.11",
3
+ "version": "3.11.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
@@ -28,7 +28,7 @@
28
28
  "gatsby-plugin-robots-txt": "^1.6.14",
29
29
  "gatsby-plugin-sharp": "^4.2.0",
30
30
  "gatsby-plugin-sitemap": "^5.2.0",
31
- "gatsby-theme-q3-mui": "^3.10.11",
31
+ "gatsby-theme-q3-mui": "^3.11.0",
32
32
  "gatsby-transformer-sharp": "^4.2.0",
33
33
  "lodash": "^4.17.20",
34
34
  "process": "^0.11.10",
@@ -42,5 +42,5 @@
42
42
  "transform-loader": "^0.2.4",
43
43
  "yarn": "^1.22.17"
44
44
  },
45
- "gitHead": "e2717376911144021dd054d5205ca774f69ee539"
45
+ "gitHead": "26c17c14e5edead18966067b8577b54a64992675"
46
46
  }
@@ -8,6 +8,7 @@ import {
8
8
  Hidden,
9
9
  makeStyles,
10
10
  } from '@material-ui/core';
11
+ import { Alert } from '@material-ui/lab';
11
12
  import { Link as ReachLink } from 'gatsby';
12
13
  import { useTranslation } from 'q3-ui-locale';
13
14
  import { isString } from 'lodash';
@@ -100,6 +101,7 @@ const PublicTemplate = ({ children, ...rest }) => {
100
101
  privacy,
101
102
  logo,
102
103
  photo,
104
+ publicNotice = null,
103
105
  } = useSiteMetaData({
104
106
  logo: '/logo.png',
105
107
  photo: '/background.jpg',
@@ -131,6 +133,17 @@ const PublicTemplate = ({ children, ...rest }) => {
131
133
  <img alt={brand} src={logo} />
132
134
  </ReachLink>
133
135
  </Box>
136
+ {publicNotice && (
137
+ <Box className={cls.container} mb={1}>
138
+ <Alert severity="warning">
139
+ <Box
140
+ dangerouslySetInnerHTML={{
141
+ __html: publicNotice,
142
+ }}
143
+ />
144
+ </Alert>
145
+ </Box>
146
+ )}
134
147
  <Paper className={cls.container}>
135
148
  <Grid container spacing={1}>
136
149
  <Hidden smDown>