-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.html
More file actions
114 lines (112 loc) · 3.14 KB
/
template.html
File metadata and controls
114 lines (112 loc) · 3.14 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tee oma testikuva</title>
<style>
html, body {
height: 100%;
margin: 0;
}
body {
font-family: sans-serif;
padding: 20px;
background: #333;
color: white;
display: flex;
flex-direction: column;
align-items: center;
box-sizing: border-box;
}
.container {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.controls {
margin-bottom: 20px;
display: flex;
gap: 20px;
flex-wrap: wrap;
justify-content: center;
}
.control-group {
display: flex;
align-items: center;
gap: 8px;
}
input[type="text"] {
font-size: 18px;
padding: 10px;
width: 140px;
border-radius: 5px;
}
input[type="number"] {
font-size: 18px;
padding: 10px;
width: 60px;
border-radius: 5px;
}
button {
font-size: 18px;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
background-color: white;
color: black;
border: none;
-webkit-appearance: none;
appearance: none;
}
.svg-container {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
min-height: 0;
overflow: hidden;
}
svg {
width: 100%;
height: 100%;
max-width: 95vw;
display: block;
filter: drop-shadow(5px 5px 25px rgba(0,0,0,0.5));
}
</style>
</head>
<body>
<div class="container">
<div class="controls">
<div class="control-group">
<label for="textInput">Teksti:</label>
<input type="text" id="textInput" value="YLE TV2">
</div>
<div class="control-group">
<label for="fontSizeInput">Koko:</label>
<input type="number" id="fontSizeInput" value="41" min="10" max="100">
</div>
<div class="control-group">
<label for="yPositionInput">Y:</label>
<input type="number" id="yPositionInput" value="325" min="0" max="576">
</div>
<div class="control-group">
<button id="resetBtn" type="button">Palauta vakioarvot</button>
</div>
<div class="control-group">
<span>Lataa PNG:nä:</span>
<button id="download4x3" type="button">4:3</button>
<button id="download16x9" type="button">16:9</button>
</div>
</div>
<div class="svg-container">
{{SVG_CONTENT}}
</div>
</div>
<script>
{{JS_CONTENT}}
</script>
</body>
</html>