blob: 3eda1f79a19a231121acb2089ed177b702b3cdf7 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Shapes</title>
<meta name="description" content="Simple shapes. Draw them, riff on them.">
<style>
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #f0f0f0;
padding: 40px;
}
.canvas-container {
width: 100%;
max-width: 800px;
margin: 20px;
padding: 40px;
background: white;
box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
canvas {
width: 100%;
height: auto;
background: white;
}
/* Print styles */
@media print {
body {
background: none;
padding: 0;
}
.canvas-container {
max-width: none;
width: 8.5in;
margin: 0;
padding: 0;
box-shadow: none;
}
canvas {
width: 8.5in;
height: 11in;
border: none;
}
}
</style>
</head>
<body>
<div class="canvas-container">
<canvas id="canvas"></canvas>
</div>
<script src="app.js"></script>
</body>
</html>
|