-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
131 lines (130 loc) · 5.54 KB
/
index.html
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Генератор картинок для соцсетей ЛКЛ</title>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<meta property="og:type" content="website" />
<meta
property="og:title"
content="Генератор картинок для соцсетей ЛКЛ"
/>
<meta property="og:url" content="https://sicamp.github.io/canvas/" />
<meta property="og:image" content="/canvas/preview.png" />
<meta property="og:image:width" content="1280" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
</head>
<body>
<div id="app">
<form class="settings" action="#">
<label for="theme">Theme:</label>
<select id="theme">
<option value="theme-dark" selected>Dark</option>
<option value="theme-light">Light</option>
</select>
<label for="title">Title:</label>
<textarea id="title" rows="8">Hello world</textarea>
<label for="font">Font size:</label>
<input id="font" type="number" value="72" />
<label for="align">Align:</label>
<select id="align">
<option value="left" selected>Left</option>
<option value="center">Center</option>
<option value="right">Right</option>
</select>
<div class="settings-actions">
<button type="button" name="svg">Download SVG</button>
<button type="button" name="png">Download PNG</button>
</div>
</form>
<div class="preview">
<svg
class="cover"
viewBox="0 0 1280 720"
xmlns="http://www.w3.org/2000/svg"
>
<style>
.year,
.title {
fill: #fefefd;
}
.theme-dark .background,
.theme-light .background {
fill: #343a42;
}
.theme-dark .camp-outline,
.theme-dark .camp-side,
.theme-dark .location {
fill: #3986cf;
}
.theme-dark .stripe-light {
fill: #20aabb;
}
.theme-dark .stripe-dark {
fill: #1770bb;
}
.theme-light .camp-outline,
.theme-light .camp-side,
.theme-light .location {
fill: #4ac3d6;
}
.theme-light .stripe-light {
fill: #20aabb;
}
.theme-light .stripe-dark {
fill: #3986cf;
}
</style>
<g class="theme theme-dark">
<rect class="background" width="100%" height="100%" />
<g class="stripes"></g>
<path class="camp-side" d="M88 124H63l52-70v42z" />
<path
class="camp-outline"
d="M67 122h96l-48-65zm103 8H59q-1.1 0-2.2-.5-.9-.7-1.5-1.5a4 4 0 0 1 .4-4.1L110 50 95 30.2a4 4 0 0 1 .9-5.4 4 4 0 0 1 5.4.7L115 43l12.8-17.4a4 4 0 0 1 5.5-.9q1.3 1 1.5 2.6.3 1.5-.7 2.9L119 50l54.5 73.9a4 4 0 0 1-1 5.6c-.6.3-1.8.5-2.5.5"
/>
<text
class="location"
font-family="Jost"
font-weight="700"
letter-spacing="0.2em"
text-anchor="middle"
x="120"
y="175"
font-size="32"
/>
<text
class="year"
font-family="Jost"
font-weight="700"
letter-spacing="0.2em"
text-anchor="middle"
x="46"
y="88"
font-size="26"
/>
<text
class="year"
font-family="Jost"
font-weight="700"
letter-spacing="0.2em"
text-anchor="middle"
x="186"
y="88"
font-size="26"
/>
<text
class="title"
y="400"
font-family="Jost"
font-weight="700"
/>
</g>
</svg>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>