@lexho111/plainblog 0.6.7 → 0.6.8

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/Formatter.js CHANGED
@@ -26,7 +26,7 @@ export function formatHTML(data) {
26
26
  const button = "";
27
27
  let form1 = "";
28
28
  if (data.loggedin) {
29
- form1 = `<form action="/" method="POST">
29
+ form1 = `<form id="createNew" action="/" method="POST">
30
30
  <h3>Add a New Article</h3>
31
31
  <input type="text" id="title" class="form_element new_title wide" name="title" placeholder="Article Title" required>
32
32
  <textarea id="content" class="form_element new_content wide" name="content" placeholder="Article Content" required></textarea>
@@ -34,7 +34,7 @@ export function formatHTML(data) {
34
34
  </form>
35
35
  <hr>`;
36
36
  }
37
- const form = ""; //form1;
37
+ const form = form1;
38
38
  return `${header(data.title)}
39
39
  <body>
40
40
  <nav>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexho111/plainblog",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "A tool for creating and serving a minimalist, single-page blog.",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/src/styles.css CHANGED
@@ -62,11 +62,16 @@ button {
62
62
  }
63
63
 
64
64
  .new_content {
65
- height: 500px;
65
+ height: 400px;
66
66
  resize: none;
67
67
  padding: 10px;
68
68
  }
69
69
 
70
+ #createNew {
71
+ width: 100%;
72
+ max-width: 93%;
73
+ }
74
+
70
75
  #search {
71
76
  float: right;
72
77
  margin: 5px;