@lexho111/plainblog 0.5.5 → 0.5.7
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/Blog.js +1 -0
- package/README.md +1 -0
- package/package.json +2 -1
- package/public/styles.min.css +67 -30
package/Blog.js
CHANGED
|
@@ -212,6 +212,7 @@ export default class Blog {
|
|
|
212
212
|
const dbTitle = await this.#databaseModel.getBlogTitle();
|
|
213
213
|
const dbArticles = await this.#databaseModel.findAll();
|
|
214
214
|
//console.log(`articles: ${JSON.stringify(dbarticles)}`)
|
|
215
|
+
console.log(`dbArticles.length: ${dbArticles.length}`)
|
|
215
216
|
if(dbArticles.length == 0) {
|
|
216
217
|
dbArticles.push(new Article("Sample Entry #1", "Prow scuttle parrel provost Sail ho shrouds spirits boom mizzenmast yardarm. Pinnace holystone mizzenmast quarter crow's nest nipperkin grog yardarm hempen halter furl. Swab barque interloper chantey doubloon starboard grog black jack gangway rutters.", new Date()));
|
|
217
218
|
dbArticles.push(new Article("Sample Entry #2", "Deadlights jack lad schooner scallywag dance the hempen jig carouser broadside cable strike colors. Bring a spring upon her cable holystone blow the man down spanker Shiver me timbers to go on account lookout wherry doubloon chase. Belay yo-ho-ho keelhaul squiffy black spot yardarm spyglass sheet transom heave to.", new Date()));
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lexho111/plainblog",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
4
4
|
"description": "A tool for creating and serving a minimalist, single-page blog.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"child_process": "^1.0.2",
|
|
22
22
|
"fs": "^0.0.1-security",
|
|
23
23
|
"http": "^0.0.1-security",
|
|
24
|
+
"node-fetch": "^3.3.2",
|
|
24
25
|
"path": "^0.12.7",
|
|
25
26
|
"postcss": "^8.4.35",
|
|
26
27
|
"sass": "^1.97.1",
|
package/public/styles.min.css
CHANGED
|
@@ -1,31 +1,68 @@
|
|
|
1
|
-
body {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
body { font-family: Arial; }body { font-family: Arial, sans-serif; } h1 { color: #333; } .grid {
|
|
2
|
+
border: 0 solid #000;
|
|
3
|
+
display: grid;
|
|
4
|
+
gap: 0.25rem;
|
|
5
|
+
grid-template-columns: 1fr;
|
|
6
|
+
}
|
|
7
|
+
.grid article {
|
|
8
|
+
border: 0 solid #ccc;
|
|
9
|
+
border-radius: 4px;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
overflow-wrap: break-word;
|
|
12
|
+
padding: 0.25rem;
|
|
13
|
+
}
|
|
14
|
+
.grid article h2 {
|
|
15
|
+
color: rgb(53, 53, 53);
|
|
16
|
+
margin-bottom: 5px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.grid article .datetime {
|
|
20
|
+
margin: 0;
|
|
21
|
+
color: rgb(117, 117, 117);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.grid article p {
|
|
25
|
+
margin-top: 10px;
|
|
26
|
+
margin-bottom: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
article a {
|
|
30
|
+
color: rgb(105, 105, 105);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
article a:visited {
|
|
34
|
+
color: rgb(105, 105, 105);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
h1 {
|
|
38
|
+
color: #696969;
|
|
39
|
+
}
|
|
40
|
+
nav a {
|
|
41
|
+
color: #3b40c1;
|
|
42
|
+
font-size: 20px;
|
|
43
|
+
text-decoration: underline;
|
|
44
|
+
}
|
|
45
|
+
nav a:visited {
|
|
46
|
+
color: #3b40c1;
|
|
47
|
+
text-decoration-color: #3b40c1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
#wrapper {
|
|
51
|
+
max-width: 500px;
|
|
52
|
+
width: 100%;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Mobile Layout (screens smaller than 1000px) */
|
|
56
|
+
@media screen and (max-width: 1000px) {
|
|
57
|
+
* {
|
|
58
|
+
font-size: 4vw;
|
|
59
|
+
}
|
|
60
|
+
#wrapper {
|
|
61
|
+
max-width: 100%;
|
|
62
|
+
width: 100%;
|
|
63
|
+
padding: 0 10px; /* Prevents text from touching the edges */
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
5
67
|
|
|
6
|
-
|
|
7
|
-
text-decoration: underline;
|
|
8
|
-
color: rgb(59, 64, 193);
|
|
9
|
-
font-size: 20px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.datetime {
|
|
13
|
-
font-style: normal;
|
|
14
|
-
color: rgb(67, 67, 67);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
h2 {
|
|
18
|
-
margin: 0;
|
|
19
|
-
margin-bottom: 5px;
|
|
20
|
-
color: darkgray;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
p {
|
|
24
|
-
margin-top: 10px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
span {
|
|
28
|
-
margin: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/* source-hash: fa9deb7a7f0781f463cd3e8fd3c3ceddec518535b0a6d13af7309ef9a2f76c32 */
|
|
68
|
+
/* source-hash: a07f631befba4b6bc703f8709f5ef455faafeff4e5f00b62f835576eea7fb529 */
|