Skip to content

Commit 4f7e30a

Browse files
authored
Update Wiki.html
A few style improvements
1 parent 2ab6687 commit 4f7e30a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Wiki/Wiki.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
if (pages.length === 0) {
8181
pagesDiv.innerHTML = '<p>No wiki pages found.</p>';
8282
}
83-
8483
pages.forEach(page => {
8584
pagesDiv.innerHTML += `
8685
<div class="card">
@@ -89,6 +88,7 @@
8988
<p>${page.body}</p>
9089
</div>
9190
<div class="actions">
91+
<b>Page Actions</b>
9292
<button onclick="editPage(${page.id}, '${page.title}', '${page.body}')">✏️ Edit</button>
9393
<button onclick="deletePage(${page.id})">🗑️ Delete</button>
9494
</div>
@@ -187,16 +187,18 @@
187187
</style>
188188
</head>
189189
<body>
190-
<h1>Coding Hut Wiki</h1>
190+
<center><h1>Coding Hut Wiki</h1></center>
191191
<div class="container">
192192
<h2>Create New Wiki Page</h2>
193+
You can create a new wiki page using the below form.
193194
<div class="form-container">
194195
<input type="text" id="createTitle" placeholder="Enter title" />
195196
<textarea id="createContent" placeholder="Enter content"></textarea>
196-
<button onclick="createPage()">➕ Create Wiki</button>
197+
<button onclick="createPage()">➕ Create Wiki Page</button>
197198
</div>
198199

199200
<h2>Wiki Pages</h2>
201+
The wiki pages will appear below, we may have a search function in the future as well.
200202
<div id="pages">
201203
<!-- List of pages will appear here -->
202204
</div>

0 commit comments

Comments
 (0)