create-berna-stencil 1.0.46 → 1.0.47
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/_tools/res/templates/template.scss +6 -0
- package/bin/create.js +1 -1
- package/package.json +1 -1
- package/src/backend/api/protected/subfolder/example-protected.php +0 -4
- package/src/backend/api/public/example-public.php +0 -4
- package/src/frontend/components/layouts/includes.njk +0 -3
- package/src/frontend/data/site.json +43 -53
- package/src/frontend/scss/pages/404.scss +3 -1
- package/src/frontend/scss/pages/homepage.scss +3 -1
- package/src/frontend/_routes/example-page.njk +0 -9
- package/src/frontend/js/pages/examplePage.js +0 -19
- package/src/frontend/scss/pages/examplePage.scss +0 -17
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
// CSS MODULES IMPORTS
|
|
3
3
|
//==========================
|
|
4
4
|
|
|
5
|
+
// Use @use with a namespace to avoid framework variable conflicts:
|
|
6
|
+
// Example: root.$primary
|
|
5
7
|
@use "../modules/root" as root;
|
|
6
8
|
|
|
9
|
+
// This global module contains the import framework, necessary modules for each page and any other common styles
|
|
7
10
|
@import "../modules/global";
|
|
11
|
+
|
|
8
12
|
// Import any other module you need by import down here
|
|
9
13
|
@import "../modules/notification";
|
|
10
14
|
|
|
@@ -12,6 +16,8 @@
|
|
|
12
16
|
// PAGE CUSTOM CSS RULES
|
|
13
17
|
//==========================
|
|
14
18
|
|
|
19
|
+
// Add any custom rule specific to this page below
|
|
20
|
+
// These rules override the framework and module styles
|
|
15
21
|
// body {
|
|
16
22
|
// background-color: root.$primary;
|
|
17
23
|
// }
|
package/bin/create.js
CHANGED
package/package.json
CHANGED
|
@@ -1,54 +1,44 @@
|
|
|
1
|
-
{
|
|
2
|
-
"site_name": "Site name",
|
|
3
|
-
"title": "Site title",
|
|
4
|
-
"description": "Site description",
|
|
5
|
-
"keywords": "keyword1, keyword2, keyword3",
|
|
6
|
-
"domain": "yoursite.com",
|
|
7
|
-
"url": "https://yoursite.com",
|
|
8
|
-
"lang": "en",
|
|
9
|
-
"author": "Name and surname",
|
|
10
|
-
"data_bs_theme": "dark",
|
|
11
|
-
"favicon": "/assets/brand/favicon.svg",
|
|
12
|
-
"logo": "/assets/brand/logo.svg",
|
|
13
|
-
"copyright": {
|
|
14
|
-
"year": "2026",
|
|
15
|
-
"text": "Copyright text"
|
|
16
|
-
},
|
|
17
|
-
"legal": {
|
|
18
|
-
"privacy": "",
|
|
19
|
-
"cookie": "",
|
|
20
|
-
"cookieControls": "",
|
|
21
|
-
"terms": ""
|
|
22
|
-
},
|
|
23
|
-
"pages": {
|
|
24
|
-
"404": {
|
|
25
|
-
"seo": {
|
|
26
|
-
"title": "404 - Not found"
|
|
27
|
-
},
|
|
28
|
-
"cdn": {
|
|
29
|
-
"css": [],
|
|
30
|
-
"js": []
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"homepage": {
|
|
34
|
-
"seo": {
|
|
35
|
-
"title": "Homepage",
|
|
36
|
-
"description": "Description"
|
|
37
|
-
},
|
|
38
|
-
"cdn": {
|
|
39
|
-
"css": [],
|
|
40
|
-
"js": []
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
"seo": {
|
|
45
|
-
"title": "Example Page",
|
|
46
|
-
"description": "description"
|
|
47
|
-
},
|
|
48
|
-
"cdn": {
|
|
49
|
-
"css": [],
|
|
50
|
-
"js": []
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"site_name": "Site name",
|
|
3
|
+
"title": "Site title",
|
|
4
|
+
"description": "Site description",
|
|
5
|
+
"keywords": "keyword1, keyword2, keyword3",
|
|
6
|
+
"domain": "yoursite.com",
|
|
7
|
+
"url": "https://yoursite.com",
|
|
8
|
+
"lang": "en",
|
|
9
|
+
"author": "Name and surname",
|
|
10
|
+
"data_bs_theme": "dark",
|
|
11
|
+
"favicon": "/assets/brand/favicon.svg",
|
|
12
|
+
"logo": "/assets/brand/logo.svg",
|
|
13
|
+
"copyright": {
|
|
14
|
+
"year": "2026",
|
|
15
|
+
"text": "Copyright text"
|
|
16
|
+
},
|
|
17
|
+
"legal": {
|
|
18
|
+
"privacy": "",
|
|
19
|
+
"cookie": "",
|
|
20
|
+
"cookieControls": "",
|
|
21
|
+
"terms": ""
|
|
22
|
+
},
|
|
23
|
+
"pages": {
|
|
24
|
+
"404": {
|
|
25
|
+
"seo": {
|
|
26
|
+
"title": "404 - Not found"
|
|
27
|
+
},
|
|
28
|
+
"cdn": {
|
|
29
|
+
"css": [],
|
|
30
|
+
"js": []
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"homepage": {
|
|
34
|
+
"seo": {
|
|
35
|
+
"title": "Homepage",
|
|
36
|
+
"description": "Description"
|
|
37
|
+
},
|
|
38
|
+
"cdn": {
|
|
39
|
+
"css": [],
|
|
40
|
+
"js": []
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
54
44
|
}
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
//==========================
|
|
4
4
|
|
|
5
5
|
// Use @use with a namespace to avoid framework variable conflicts:
|
|
6
|
+
// Example: root.$primary
|
|
6
7
|
@use "../modules/root" as root;
|
|
7
8
|
|
|
8
|
-
//
|
|
9
|
+
// This global module contains the import framework, necessary modules for each page and any other common styles
|
|
9
10
|
@import "../modules/global";
|
|
11
|
+
|
|
10
12
|
// Import any other module you need by import down here
|
|
11
13
|
@import "../modules/notification";
|
|
12
14
|
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
//==========================
|
|
4
4
|
|
|
5
5
|
// Use @use with a namespace to avoid framework variable conflicts:
|
|
6
|
+
// Example: root.$primary
|
|
6
7
|
@use "../modules/root" as root;
|
|
7
8
|
|
|
8
|
-
//
|
|
9
|
+
// This global module contains the import framework, necessary modules for each page and any other common styles
|
|
9
10
|
@import "../modules/global";
|
|
11
|
+
|
|
10
12
|
// Import any other module you need by import down here
|
|
11
13
|
@import "../modules/notification";
|
|
12
14
|
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "examplePage"
|
|
3
|
-
permalink: "/example-page/"
|
|
4
|
-
layout: includes.njk
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<!-- !IMPORTANT -->
|
|
8
|
-
<!-- DO NOT ADD ANYTHING HERE -->
|
|
9
|
-
<!-- You should create a new component.njk into src/components and include that in components/layouts/includes.njk -->
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
//==========================
|
|
2
|
-
// JAVASCRIPT MODULES IMPORTS
|
|
3
|
-
//==========================
|
|
4
|
-
|
|
5
|
-
// Call anywhere
|
|
6
|
-
import { showNotification } from '../modules/notification.js';
|
|
7
|
-
|
|
8
|
-
// Uncomment to enable optional modules (call inside DOMContentLoaded)
|
|
9
|
-
// import { initTextAreaAutoExpand } from '../modules/forms/textAreaAutoExpand.js';
|
|
10
|
-
// import { initNormalizePhoneNumber } from '../modules/forms/normalizePhoneNumber.js';
|
|
11
|
-
|
|
12
|
-
//==========================
|
|
13
|
-
// PAGE CUSTOM JAVASCRIPT
|
|
14
|
-
//==========================
|
|
15
|
-
|
|
16
|
-
document.addEventListener("DOMContentLoaded", () => {
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
showNotification("Example notification", "success", 3000);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//==========================
|
|
2
|
-
// CSS MODULES IMPORTS
|
|
3
|
-
//==========================
|
|
4
|
-
|
|
5
|
-
@use "../modules/root" as root;
|
|
6
|
-
|
|
7
|
-
@import "../modules/global";
|
|
8
|
-
// Import any other module you need by import down here
|
|
9
|
-
@import "../modules/notification";
|
|
10
|
-
|
|
11
|
-
//==========================
|
|
12
|
-
// PAGE CUSTOM CSS RULES
|
|
13
|
-
//==========================
|
|
14
|
-
|
|
15
|
-
// body {
|
|
16
|
-
// background-color: root.$primary;
|
|
17
|
-
// }
|