info-site-generator 1.1.4 → 1.1.6-corrected
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" id="mdi-arrow-left-thin" viewBox="0 0 24 24" fill="white"><path d="M10.05 16.94V12.94H18.97L19 10.93H10.05V6.94L5.05 11.94Z" /></svg>
|
|
@@ -6,13 +6,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = ArrowBack;
|
|
7
7
|
var _reactRouter = require("react-router");
|
|
8
8
|
var _arrowLeft = _interopRequireDefault(require("../assets/arrow-left.svg"));
|
|
9
|
+
var _arrowLeftWhite = _interopRequireDefault(require("../assets/arrow-left-white.svg"));
|
|
10
|
+
var _theme = require("../theme");
|
|
9
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
13
|
function ArrowBack() {
|
|
14
|
+
const [theme, _] = (0, _theme.useCurrentTheme)();
|
|
12
15
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouter.Link, {
|
|
13
16
|
to: "/all-content",
|
|
14
17
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
15
|
-
src: _arrowLeft.default,
|
|
18
|
+
src: theme == "dark" ? _arrowLeftWhite.default : _arrowLeft.default,
|
|
16
19
|
alt: "Back to content list",
|
|
17
20
|
width: 40,
|
|
18
21
|
height: 40
|
package/lib/components/Navbar.js
CHANGED
|
@@ -49,7 +49,7 @@ function Navbar(_ref) {
|
|
|
49
49
|
backgroundColor: data.brandColorDark
|
|
50
50
|
},
|
|
51
51
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouter.Link, {
|
|
52
|
-
className: "navbar-brand px-2",
|
|
52
|
+
className: "navbar-brand px-2 text-".concat(data.brandColorIsDark || theme == "dark" ? "light" : "dark"),
|
|
53
53
|
to: "/",
|
|
54
54
|
children: data.siteTitle
|
|
55
55
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
@@ -70,7 +70,7 @@ function Navbar(_ref) {
|
|
|
70
70
|
})
|
|
71
71
|
})
|
|
72
72
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
73
|
-
className: "hamburger hamburger--spin ".concat(active ? "is-active" : ""),
|
|
73
|
+
className: "hamburger hamburger--spin text-".concat(data.brandColorIsDark || theme == "dark" ? "light" : "dark", " ").concat(active ? "is-active" : ""),
|
|
74
74
|
type: "button",
|
|
75
75
|
onClick: () => setActive(!active),
|
|
76
76
|
"aria-label": "Toggle navigation",
|
|
@@ -92,17 +92,19 @@ function Navbar(_ref) {
|
|
|
92
92
|
id: "navbarSupportedContent",
|
|
93
93
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("ul", {
|
|
94
94
|
className: "navbar-nav me-auto mb-2 mb-lg-0",
|
|
95
|
-
children: [Object.values(data.pages).map(page =>
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
children: [Object.values(data.pages).map(page => {
|
|
96
|
+
return page.withLink && /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
97
|
+
className: "nav-item",
|
|
98
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouter.Link, {
|
|
99
|
+
className: "nav-link text-".concat(data.brandColorIsDark || theme == "dark" ? "light" : "dark"),
|
|
100
|
+
to: "/".concat(page.slug),
|
|
101
|
+
children: page.linkText || page.title
|
|
102
|
+
})
|
|
103
|
+
}, page.slug);
|
|
104
|
+
}), (_data$customNavLinks = data.customNavLinks) === null || _data$customNavLinks === void 0 ? void 0 : _data$customNavLinks.map(link => /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
103
105
|
className: "nav-item",
|
|
104
106
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
105
|
-
className: "nav-link",
|
|
107
|
+
className: "nav-link text-".concat(data.brandColorIsDark || theme == "dark" ? "light" : "dark"),
|
|
106
108
|
href: link.href,
|
|
107
109
|
target: "_blank",
|
|
108
110
|
rel: "noopener noreferrer",
|