This commit is contained in:
Leandro Facchinetti 2021-03-18 21:28:32 +00:00
parent 386b256b1a
commit 30709555f6
1 changed files with 17 additions and 3 deletions

View File

@ -96,13 +96,13 @@ export default function killTheNewsletter(
@at-root { @at-root {
body { body {
font-size: 0.875rem; font-size: 0.875rem;
-webkit-text-size-adjust: 100%;
line-height: 1.5; line-height: 1.5;
font-family: --apple-system, BlinkMacSystemFont, "Segoe UI", font-family: --apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
"Helvetica Neue", sans-serif; "Helvetica Neue", sans-serif;
color: #000000d4; color: #000000d4;
background-color: white; background-color: white;
-webkit-text-size-adjust: 100%;
max-width: 450px; max-width: 450px;
padding: 0 1rem; padding: 0 1rem;
margin: 1rem auto; margin: 1rem auto;
@ -243,19 +243,33 @@ export default function killTheNewsletter(
webApplication.get<{}, HTML, {}, {}, {}>("/", (req, res) => { webApplication.get<{}, HTML, {}, {}, {}>("/", (req, res) => {
res.send( res.send(
layout(html` layout(html`
<form method="POST" action="${webApplication.get("url")}/"> <form
method="POST"
action="${webApplication.get("url")}"
style="${css`
max-width: 300px;
margin: 0 auto;
input,
button {
box-sizing: border-box;
width: 100%;
}
`}"
>
<p> <p>
<input <input
type="text" type="text"
name="name" name="name"
placeholder="Newsletter name…" placeholder="Newsletter name…"
size="40"
maxlength="500" maxlength="500"
required required
pattern=".*\\S.*" pattern=".*\\S.*"
autocomplete="off" autocomplete="off"
autofocus autofocus
/> />
</p>
<p>
<button>Create Inbox</button> <button>Create Inbox</button>
</p> </p>
</form> </form>