feat: tweaks to guestbook messages after port
This commit is contained in:
parent
6d7f022230
commit
920bb7bbeb
2 changed files with 29 additions and 5 deletions
|
|
@ -89,11 +89,15 @@ function extractDomain(url: string): string {
|
||||||
|
|
||||||
<details open>
|
<details open>
|
||||||
<summary>guestbook</summary>
|
<summary>guestbook</summary>
|
||||||
<pre set:html={[
|
<div class="guestbook-entries">
|
||||||
...guestbookEntries.map(e => `<span class="muted">${formatDate(e.createdAt)}</span> ${e.url ? `<a href="${e.url}">${e.name}</a>` : e.name}: ${e.message}`),
|
{guestbookEntries.map(e => (
|
||||||
'',
|
<div class="guestbook-entry">
|
||||||
'<a href="#" id="sign-guestbook">sign</a><span id="guestbook-status"></span>'
|
<span class="date">{formatDate(e.createdAt)}</span>
|
||||||
].join('\n')} />
|
<span set:html={`${e.url ? `<a href="${e.url}">${e.name}</a>` : e.name}: ${e.message}`} />
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
<pre class="guestbook-sign"><a href="#" id="sign-guestbook">sign</a><span id="guestbook-status"></span></pre>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
||||||
|
|
@ -46,3 +46,23 @@ summary::-webkit-details-marker {
|
||||||
details pre {
|
details pre {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.guestbook-entries {
|
||||||
|
font-family: monospace;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.guestbook-entry {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto 1fr;
|
||||||
|
gap: 0 4ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.guestbook-entry .date {
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.guestbook-sign {
|
||||||
|
font-family: monospace;
|
||||||
|
white-space: pre;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue