create-berna-stencil 1.0.34 → 1.0.36
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/bin/create.js +1 -1
- package/package.json +1 -1
- package/src/404.njk +1 -1
- package/src/components/global/header.njk +3 -3
- package/src/components/welcome.njk +94 -204
- package/src/data/lang.json +21 -15
- package/src/scss/modules/_buttons.scss +17 -0
- package/src/scss/modules/_footer.scss +1 -5
- package/src/scss/modules/_global.scss +3 -0
- package/src/scss/modules/_header.scss +1 -0
package/bin/create.js
CHANGED
package/package.json
CHANGED
package/src/404.njk
CHANGED
|
@@ -7,7 +7,7 @@ layout: base.njk
|
|
|
7
7
|
<!-- !IMPORTANT -->
|
|
8
8
|
<!-- This is the only page that you need to modify statically -->
|
|
9
9
|
|
|
10
|
-
<div class="
|
|
10
|
+
<div class="fade-in d-flex flex-column justify-content-center align-items-center" style="min-height: 60vh">
|
|
11
11
|
<h1 data-lang-key="error404Message"></h1>
|
|
12
12
|
<div><a href="/" data-lang-key="error404Return"></a></div>
|
|
13
13
|
</div>
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<img src="{{ site.logo }}" alt="{{ site.title }}" height="40">
|
|
5
5
|
</a>
|
|
6
6
|
<div class="nav-links">
|
|
7
|
-
<a class="btn
|
|
8
|
-
<a class="btn
|
|
9
|
-
<a class="btn
|
|
7
|
+
<a class="btn" href="/">Homepage</a>
|
|
8
|
+
<a class="btn" href="/about-us">About-us</a>
|
|
9
|
+
<a class="btn" href="/contact-us">Contact us</a>
|
|
10
10
|
</div>
|
|
11
11
|
<div class="nav-links">
|
|
12
12
|
<select id="lang-select" class="form-select">
|
|
@@ -1,208 +1,98 @@
|
|
|
1
|
-
<div class="container
|
|
2
|
-
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
<div class="container my-3">
|
|
2
|
+
<h1>Welcome to <span class="berna-stencil">Berna-Stencil</span></h1>
|
|
3
|
+
<div class="slogan" data-lang-key="welcomeSlogan"></div>
|
|
4
|
+
|
|
5
|
+
<div class="grid">
|
|
6
|
+
<a
|
|
7
|
+
href="https://bernastencil.com"
|
|
8
|
+
class="card"
|
|
9
|
+
target="_blank"
|
|
10
|
+
rel="noopener noreferrer"
|
|
11
|
+
>
|
|
12
|
+
<i class="bi bi-book card-icon" aria-hidden="true"></i>
|
|
13
|
+
<h3 data-lang-key="documentationCardTitle"></h3>
|
|
14
|
+
<p data-lang-key="documentatioCardParagraph">
|
|
15
|
+
Everything you need to get started, from setup to advanced topics and
|
|
16
|
+
customizations.
|
|
17
|
+
</p>
|
|
18
|
+
<span class="card-link"
|
|
19
|
+
data-lang-key="documentationCardLink"></i
|
|
20
|
+
></span>
|
|
21
|
+
</a>
|
|
22
|
+
|
|
23
|
+
<a
|
|
24
|
+
href="https://github.com/rhaastrake/berna-stencil"
|
|
25
|
+
class="card"
|
|
26
|
+
target="_blank"
|
|
27
|
+
rel="noopener noreferrer"
|
|
28
|
+
>
|
|
29
|
+
<i class="bi bi-github card-icon" aria-hidden="true"></i>
|
|
30
|
+
<h3 data-lang-key="githubCardTitle">Github repository</h3>
|
|
31
|
+
<p data-lang-key="githubCardParagraph">Community-driven. Contributions, issues and PRs are welcome.</p>
|
|
32
|
+
<span class="card-link"
|
|
33
|
+
data-lang-key="githubCardLink">Open the repository</i
|
|
34
|
+
></span>
|
|
35
|
+
</a>
|
|
27
36
|
</div>
|
|
28
|
-
|
|
29
|
-
<hr class="gs-divider" />
|
|
30
|
-
|
|
31
|
-
<ul class="gs-features">
|
|
32
|
-
<li><i class="bi bi-bolt"></i>Eleventy + Nunjucks templating</li>
|
|
33
|
-
<li><i class="bi bi-palette"></i>SCSS with per-page stylesheets</li>
|
|
34
|
-
<li><i class="bi bi-terminal-2"></i>CLI scaffolder for pages</li>
|
|
35
|
-
<li><i class="bi bi-world"></i>Built-in i18n switcher</li>
|
|
36
|
-
<li><i class="bi bi-layout"></i>Component-based layouts</li>
|
|
37
|
-
<li><i class="bi bi-brand-npm"></i>CDN per-page asset management</li>
|
|
38
|
-
</ul>
|
|
39
|
-
|
|
40
|
-
<div class="gs-links">
|
|
41
|
-
<a href="https://github.com/rhaastrake/berna-stencil"><i class="bi bi-github"></i> GitHub</a>
|
|
42
|
-
<a href="https://github.com/rhaastrake/berna-stencil#readme"><i class="bi bi-book"></i> Docs</a>
|
|
43
|
-
<a href="https://github.com/rhaastrake/berna-stencil/issues"><i class="bi bi-bug"></i> Issues</a>
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
37
|
</div>
|
|
47
|
-
|
|
48
38
|
<style>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
max-width: 680px;
|
|
56
|
-
|
|
57
|
-
.gs-badge {
|
|
58
|
-
display: inline-block;
|
|
59
|
-
font-size: 11px;
|
|
60
|
-
letter-spacing: 0.08em;
|
|
61
|
-
text-transform: uppercase;
|
|
62
|
-
color: #888;
|
|
63
|
-
border: 0.5px solid #333;
|
|
64
|
-
border-radius: 20px;
|
|
65
|
-
padding: 3px 10px;
|
|
66
|
-
margin-bottom: 1.25rem;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.gs-title {
|
|
70
|
-
font-size: 22px;
|
|
71
|
-
font-weight: 500;
|
|
72
|
-
color: #f5f5f5;
|
|
73
|
-
margin: 0 0 0.4rem;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.gs-sub {
|
|
77
|
-
font-size: 14px;
|
|
78
|
-
color: #666;
|
|
79
|
-
margin: 0 0 2rem;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.gs-block {
|
|
83
|
-
background: #161616;
|
|
84
|
-
border: 0.5px solid #2a2a2a;
|
|
85
|
-
border-radius: 10px;
|
|
86
|
-
padding: 1rem 1.25rem;
|
|
87
|
-
margin-bottom: 1.5rem;
|
|
88
|
-
|
|
89
|
-
hr {
|
|
90
|
-
border: none;
|
|
91
|
-
border-top: 0.5px solid #2a2a2a;
|
|
92
|
-
margin: 1rem 0;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.gs-block-label {
|
|
97
|
-
font-size: 11px;
|
|
98
|
-
color: #555;
|
|
99
|
-
letter-spacing: 0.06em;
|
|
100
|
-
text-transform: uppercase;
|
|
101
|
-
margin-bottom: 0.5rem;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.gs-cmd {
|
|
105
|
-
display: flex;
|
|
106
|
-
align-items: center;
|
|
107
|
-
justify-content: space-between;
|
|
108
|
-
gap: 1rem;
|
|
109
|
-
|
|
110
|
-
code {
|
|
111
|
-
font-size: 13px;
|
|
112
|
-
color: #c9c9c9;
|
|
113
|
-
|
|
114
|
-
.prompt { color: #444; }
|
|
115
|
-
.cmd { color: #a3e4bc; }
|
|
116
|
-
.arg { color: #7ec8e3; }
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.gs-copy {
|
|
121
|
-
background: none;
|
|
122
|
-
border: 0.5px solid #333;
|
|
123
|
-
border-radius: 6px;
|
|
124
|
-
padding: 4px 10px;
|
|
125
|
-
color: #666;
|
|
126
|
-
font-size: 11px;
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
white-space: nowrap;
|
|
129
|
-
flex-shrink: 0;
|
|
130
|
-
transition: color 0.15s, border-color 0.15s;
|
|
131
|
-
|
|
132
|
-
&:hover {
|
|
133
|
-
color: #ccc;
|
|
134
|
-
border-color: #555;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.gs-guide-links {
|
|
139
|
-
display: flex;
|
|
140
|
-
flex-wrap: wrap;
|
|
141
|
-
gap: 0.5rem 1.5rem;
|
|
142
|
-
|
|
143
|
-
a {
|
|
144
|
-
display: flex;
|
|
145
|
-
align-items: center;
|
|
146
|
-
gap: 5px;
|
|
147
|
-
font-size: 12px;
|
|
148
|
-
color: #555;
|
|
149
|
-
text-decoration: none;
|
|
150
|
-
transition: color 0.15s;
|
|
151
|
-
|
|
152
|
-
i { font-size: 13px; }
|
|
153
|
-
|
|
154
|
-
&:hover { color: #999; }
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.gs-divider {
|
|
159
|
-
border: none;
|
|
160
|
-
border-top: 0.5px solid #1e1e1e;
|
|
161
|
-
margin: 1.5rem 0;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.gs-features {
|
|
165
|
-
list-style: none;
|
|
166
|
-
padding: 0;
|
|
167
|
-
margin: 0 0 1.5rem;
|
|
168
|
-
display: grid;
|
|
169
|
-
grid-template-columns: 1fr 1fr;
|
|
170
|
-
gap: 0.75rem;
|
|
171
|
-
|
|
172
|
-
li {
|
|
173
|
-
display: flex;
|
|
174
|
-
align-items: flex-start;
|
|
175
|
-
gap: 10px;
|
|
176
|
-
font-size: 13px;
|
|
177
|
-
color: #666;
|
|
178
|
-
|
|
179
|
-
i {
|
|
180
|
-
font-size: 15px;
|
|
181
|
-
color: #444;
|
|
182
|
-
margin-top: 1px;
|
|
183
|
-
flex-shrink: 0;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.gs-links {
|
|
189
|
-
display: flex;
|
|
190
|
-
gap: 1.5rem;
|
|
191
|
-
flex-wrap: wrap;
|
|
192
|
-
|
|
193
|
-
a {
|
|
194
|
-
display: flex;
|
|
195
|
-
align-items: center;
|
|
196
|
-
gap: 6px;
|
|
197
|
-
font-size: 13px;
|
|
198
|
-
color: #555;
|
|
199
|
-
text-decoration: none;
|
|
200
|
-
transition: color 0.15s;
|
|
201
|
-
|
|
202
|
-
i { font-size: 15px; }
|
|
203
|
-
|
|
204
|
-
&:hover { color: #aaa; }
|
|
205
|
-
}
|
|
39
|
+
h1 {
|
|
40
|
+
text-align: center;
|
|
41
|
+
font-weight: 400;
|
|
42
|
+
.berna-stencil {
|
|
43
|
+
color: #42b883;
|
|
44
|
+
font-weight: 600;
|
|
206
45
|
}
|
|
207
|
-
}
|
|
208
|
-
|
|
46
|
+
}
|
|
47
|
+
.slogan {
|
|
48
|
+
text-align: center;
|
|
49
|
+
color: #4b71a0;
|
|
50
|
+
font-size: 1.5rem;
|
|
51
|
+
margin-bottom: 1rem;
|
|
52
|
+
}
|
|
53
|
+
.card {
|
|
54
|
+
background: #0d1526;
|
|
55
|
+
border: 0.8px solid #1e2d4a;
|
|
56
|
+
border-radius: 10px;
|
|
57
|
+
padding: 18px;
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
gap: 0.75rem;
|
|
61
|
+
margin-top: 1rem;
|
|
62
|
+
margin-bottom: 1rem;
|
|
63
|
+
transition:
|
|
64
|
+
border-color 0.2s,
|
|
65
|
+
transform 0.15s;
|
|
66
|
+
}
|
|
67
|
+
.card:hover {
|
|
68
|
+
border-color: #42b883;
|
|
69
|
+
transform: translateY(-2px);
|
|
70
|
+
}
|
|
71
|
+
.card-icon {
|
|
72
|
+
font-size: 2rem;
|
|
73
|
+
color: #42b883;
|
|
74
|
+
}
|
|
75
|
+
.card h3 {
|
|
76
|
+
font-size: 1.5rem;
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
color: #cbd5e1;
|
|
79
|
+
letter-spacing: 0.01em;
|
|
80
|
+
}
|
|
81
|
+
.card p {
|
|
82
|
+
font-size: 1rem;
|
|
83
|
+
color: #38649b;
|
|
84
|
+
line-height: 1.6;
|
|
85
|
+
}
|
|
86
|
+
.card-link {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
gap: 4px;
|
|
90
|
+
font-size: 1rem;
|
|
91
|
+
color: #42b883;
|
|
92
|
+
opacity: 0.8;
|
|
93
|
+
transition: opacity 0.15s;
|
|
94
|
+
}
|
|
95
|
+
.card:hover .card-link {
|
|
96
|
+
opacity: 1;
|
|
97
|
+
}
|
|
98
|
+
</style>
|
package/src/data/lang.json
CHANGED
|
@@ -2,29 +2,35 @@
|
|
|
2
2
|
"en": {
|
|
3
3
|
"enLangName": "English",
|
|
4
4
|
"itLangName": "Italian",
|
|
5
|
-
"forms": {
|
|
6
|
-
"formInvalidFields": "Please fill in all required fields correctly",
|
|
7
|
-
"emailSending": "Sending email",
|
|
8
|
-
"emailSuccess": "Email sent successfully",
|
|
9
|
-
"emailError": "An error occurred while sending the email"
|
|
10
|
-
},
|
|
11
5
|
|
|
12
6
|
"error404Message": "Oops! Page not found",
|
|
13
|
-
"error404Return": "Return to homepage"
|
|
7
|
+
"error404Return": "Return to homepage",
|
|
14
8
|
|
|
9
|
+
"welcomeSlogan": "The framework you need, simplified",
|
|
10
|
+
|
|
11
|
+
"documentationCardTitle": "Documentation",
|
|
12
|
+
"documentatioCardParagraph": "Everything you need to get started, from setup to advanced topics and customizations",
|
|
13
|
+
"documentationCardLink": "Go to documentation",
|
|
14
|
+
|
|
15
|
+
"githubCardTitle": "Github repository",
|
|
16
|
+
"githubCardParagraph": "Community-driven. Contributions, issues and PRs are welcome.",
|
|
17
|
+
"githubCardLink": "Open the repository"
|
|
15
18
|
},
|
|
16
19
|
"it": {
|
|
17
20
|
"enLangName": "Inglese",
|
|
18
21
|
"itLangName": "Italiano",
|
|
19
|
-
"forms": {
|
|
20
|
-
"formInvalidFields": "Per favore, compila correttamente tutti i campi obbligatori",
|
|
21
|
-
"emailSending": "Invio in corso",
|
|
22
|
-
"emailSuccess": "Email inviata con successo",
|
|
23
|
-
"emailError": "Si è verificato un errore durante l'invio dell'email"
|
|
24
|
-
},
|
|
25
22
|
|
|
26
23
|
"error404Message": "Oops! Pagina non trovata",
|
|
27
|
-
"error404Return": "Ritorna alla homepage"
|
|
28
|
-
|
|
24
|
+
"error404Return": "Ritorna alla homepage",
|
|
25
|
+
|
|
26
|
+
"welcomeSlogan": "Il framework di cui hai bisogno, in modo semplice",
|
|
27
|
+
|
|
28
|
+
"documentationCardTitle": "Documentazione",
|
|
29
|
+
"documentatioCardParagraph": "Tutto ciò di cui hai bisogno per iniziare, dalla configurazione agli argomenti avanzati e personalizzazioni",
|
|
30
|
+
"documentationCardLink": "Vai alla documentazione",
|
|
31
|
+
|
|
32
|
+
"githubCardTitle": "Repository Github",
|
|
33
|
+
"githubCardParagraph": "Guidato dalla comunità. Contributi, segnalazioni e PR sono benvenuti.",
|
|
34
|
+
"githubCardLink": "Vai alla repository"
|
|
29
35
|
}
|
|
30
36
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//==========================
|
|
2
|
+
// CSS RULES FOR BUTTONS
|
|
3
|
+
//==========================
|
|
4
|
+
|
|
5
|
+
// Getting root rules from _root.scss
|
|
6
|
+
@use 'root' as root;
|
|
7
|
+
|
|
8
|
+
.btn {
|
|
9
|
+
color: #42b883;
|
|
10
|
+
border-radius: 12px;
|
|
11
|
+
padding: 8px 20px;
|
|
12
|
+
transition: background 0.2s, color 0.2s;
|
|
13
|
+
}
|
|
14
|
+
.btn:hover {
|
|
15
|
+
background: #42b883;
|
|
16
|
+
color: #0d1526;
|
|
17
|
+
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
footer {
|
|
8
8
|
width: 100%;
|
|
9
9
|
padding: root.$header-padding-y root.$header-padding-x;
|
|
10
|
-
background-color:
|
|
10
|
+
background-color: #243947;
|
|
11
11
|
|
|
12
12
|
h6 {
|
|
13
13
|
margin-bottom: 0.75rem;
|
|
@@ -19,10 +19,6 @@ footer {
|
|
|
19
19
|
margin: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
a {
|
|
23
|
-
text-decoration: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
22
|
hr {
|
|
27
23
|
margin: 1rem 0;
|
|
28
24
|
}
|