98 lines
2.4 KiB
HTML
98 lines
2.4 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Hello World</title>
|
|
<style>
|
|
:root {
|
|
color-scheme: light dark;
|
|
}
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
display: grid;
|
|
place-items: center;
|
|
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
|
|
Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
|
|
padding: 24px;
|
|
}
|
|
h1 {
|
|
font-size: clamp(2rem, 6vw, 4rem);
|
|
letter-spacing: -0.03em;
|
|
margin: 0;
|
|
}
|
|
.card {
|
|
width: min(520px, 100%);
|
|
border: 1px solid color-mix(in oklab, CanvasText 18%, transparent);
|
|
border-radius: 14px;
|
|
padding: 18px;
|
|
}
|
|
.stack {
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
.row {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto 1fr;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
label {
|
|
display: grid;
|
|
gap: 6px;
|
|
font-size: 0.95rem;
|
|
}
|
|
input {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border-radius: 10px;
|
|
border: 1px solid color-mix(in oklab, CanvasText 18%, transparent);
|
|
background: Canvas;
|
|
color: CanvasText;
|
|
font-size: 1rem;
|
|
}
|
|
.op {
|
|
font-size: 1.6rem;
|
|
opacity: 0.8;
|
|
padding-top: 22px;
|
|
}
|
|
.result {
|
|
display: grid;
|
|
gap: 6px;
|
|
font-size: 0.95rem;
|
|
}
|
|
.hint {
|
|
opacity: 0.7;
|
|
font-size: 0.9rem;
|
|
line-height: 1.35;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="card stack">
|
|
<h1>Hello World</h1>
|
|
|
|
<div class="row" aria-label="Addition inputs">
|
|
<label>
|
|
Number A
|
|
<input id="numA" type="number" inputmode="numeric" placeholder="e.g. 10" />
|
|
</label>
|
|
<div class="op" aria-hidden="true">+</div>
|
|
<label>
|
|
Number B
|
|
<input id="numB" type="number" inputmode="numeric" placeholder="e.g. 5" />
|
|
</label>
|
|
</div>
|
|
|
|
<div class="result" aria-label="Result">
|
|
Result
|
|
<input id="result" type="text" readonly value="0" />
|
|
<div class="hint">Type in either box to instantly see the sum.</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="module" src="/handler.js"></script>
|
|
</body>
|
|
</html>
|