about summary refs log tree commit diff stats
path: root/js/name-gen/index.html
blob: d709709e7a0269205447de594036b6fafdc38830 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Name Generator</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
        body {
            padding: 2em;
            font-family: sans-serif;
            text-align: center;
        }
        h1 {
            font-size: 2em;
            margin: 0.5em 0;
        }
        h2 {
            font-size: 1.5em;
            margin: 0.5em 0;
        }
        button {
            font-size: 1.5em;
            margin: 0.5em 0;
        }
        canvas {
            margin: 0.5em 0;
        }
    </style>
</head>
<body>
    <h1>Name Generator</h1>
    <button id="generate">Call upon a new hero</button>
    <h2 id="name"></h2>
    <canvas id="canvas" width="500" height="50"></canvas>
    <script src="app.js"></script>
</body>
</html>