diff --git a/esbuildconf.js b/esbuildconf.js index 0988ebd..4428cd9 100644 --- a/esbuildconf.js +++ b/esbuildconf.js @@ -9,7 +9,9 @@ export const options = { 'src/main.js', 'src/main.css', 'src/index.html', - 'src/bubble.svg' + 'src/assets/bubble.svg', + 'src/assets/comment.svg', + 'src/assets/heart-fill.svg', ], outdir: 'dist', //entryNames: '[name]-[hash]', TODO: replace urls in index.html with hashed paths diff --git a/src/bubble.svg b/src/assets/bubble.svg similarity index 100% rename from src/bubble.svg rename to src/assets/bubble.svg diff --git a/src/assets/comment.svg b/src/assets/comment.svg new file mode 100644 index 0000000..1936a6d --- /dev/null +++ b/src/assets/comment.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/heart-fill.svg b/src/assets/heart-fill.svg new file mode 100644 index 0000000..2c1f312 --- /dev/null +++ b/src/assets/heart-fill.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/heart.svg b/src/assets/heart.svg new file mode 100644 index 0000000..b142374 --- /dev/null +++ b/src/assets/heart.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/cards.css b/src/cards.css index 39fce5d..faa77c2 100644 --- a/src/cards.css +++ b/src/cards.css @@ -8,13 +8,14 @@ } .mbox-img { - --size: 4ch; + --size: 5rem; align-self: start; flex-basis: var(--size); height: var(--size); margin-right: 1rem; margin-top: .5ch; max-width: var(--size); + max-width: var(--size); } .mbox-recommend-server .mbox-img { --size: 2.5ch; @@ -38,7 +39,6 @@ } .mbox-header time, .mbox-username { - color: var(--color-accent); } .mbox-recommend-server .mbox-body { diff --git a/src/domutil.js b/src/domutil.js index 2a0f656..8c780a5 100644 --- a/src/domutil.js +++ b/src/domutil.js @@ -13,7 +13,7 @@ export function elem(name = 'div', {data, ...props} = {}, children = []) { const el = document.createElement(name); Object.assign(el, props); - if (typeof children === 'string') { + if (['number', 'string'].includes(typeof children)) { el.append(children); } else { el.append(...children); diff --git a/src/form.css b/src/form.css index 605a141..36324e6 100644 --- a/src/form.css +++ b/src/form.css @@ -4,7 +4,6 @@ form { input, textarea { color: var(--color); - font-family: monospace; font-size: 1.6rem; margin-bottom: 1.2rem; padding: 1.3rem 1.8rem; @@ -12,8 +11,8 @@ textarea { button, label { + cursor: pointer; display: block; - font-family: monospace; font-size: 1.6rem; margin-bottom: 0; padding: 1.3rem 1.8rem; @@ -34,8 +33,8 @@ input[type="text"] { } input[type="password"]:focus, input[type="text"]:focus { - border-color: #d4d4d4; - outline-offset: 1px; + border-color: var(--focus-border-color); + outline-offset: 2px; } .buttons { @@ -58,11 +57,18 @@ button { button:focus { } -.button-inline { +.btn-inline { + align-items: center; background: transparent; color: var(--color); - display: inline; - padding: .3rem; + display: inline-flex; + gap: .5ch; + line-height: 1; + padding: .6rem; +} +.btn-inline img { + max-height: 18px; + max-width: 18px; } button:disabled { diff --git a/src/index.html b/src/index.html index b939838..8b81010 100644 --- a/src/index.html +++ b/src/index.html @@ -6,14 +6,22 @@
-