-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
147 lines (147 loc) · 4.52 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="shortcut icon"
href="./assets/images/icons8-caixa-64.png"
type="image/x-icon"
/>
<link rel="stylesheet" href="./assets/css/styles.css" />
<script src="./assets/js/scripts.js" defer></script>
<title>Box Shadow Generator</title>
</head>
<body>
<div id="wrapper" class="wrapper">
<div class="object-container">
<div id="object" class="object"></div>
</div>
<div id="controller" class="controller">
<h1>Shadow Generator</h1>
<!-- Direção X -->
<div class="control-el">
<span>X Direction</span>
<div class="input-fields">
<input
id="xDirection"
type="range"
min="-120"
max="120"
value="8"
/>
<input
id="xDirectionNum"
type="number"
min="-120"
max="120"
value="8"
/>
</div>
</div>
<!-- Direção Y -->
<div class="control-el">
<span>Y Direction</span>
<div class="input-fields">
<input
id="yDirection"
type="range"
min="-120"
max="120"
value="8"
/>
<input
id="yDirectionNum"
type="number"
min="-120"
max="120"
value="8"
/>
</div>
</div>
<!-- Borrão -->
<div class="control-el">
<span>Blur</span>
<div class="input-fields">
<input id="blur" type="range" min="0" max="75" value="10" />
<input id="blurNum" type="number" min="0" max="75" value="10" />
</div>
</div>
<!-- Raio de propagação -->
<div class="control-el">
<span>Spread Radius</span>
<div class="input-fields">
<input id="spread" type="range" min="-75" max="75" value="5" />
<input id="spreadNum" type="number" min="-75" max="75" value="10" />
</div>
</div>
<!-- Opacidade -->
<div class="control-el">
<span>Opacity</span>
<div class="input-fields">
<input
id="opacity"
type="range"
min="0"
max="1"
value="0.75"
step="0.01"
/>
<input
id="opacityNum"
type="number"
min="0"
max="1"
value="0.75"
step="0.01"
/>
</div>
</div>
<!-- Controle de cores -->
<div class="control-el control-color">
<div class="shadow-color">
<span>Shadow Color</span>
<div class="input-fields">
<input id="shadowColor" type="color" value="#000000" />
<input id="shadowColorNum" type="text" value="#000000" />
</div>
</div>
<div class="background-color">
<span>Background Color</span>
<div class="input-fields">
<input id="backgroundColor" type="color" value="#4b48ea" />
<input id="backgroundColorNum" type="text" value="#4b48ea" />
</div>
</div>
</div>
<!-- Caixa de seleção de controle -->
<div class="control-el control-checkbox">
<div class="inset">
<span>Inset</span>
<input id="inset" type="checkbox" />
</div>
<div class="check-background">
<span>Same Background</span>
<input id="checkBackground" type="checkbox" checked />
</div>
</div>
<!-- Mostrador -->
<div class="display-container">
<div class="display-el">
<span class="display-property">box-shadow</span>
<span id="displayShadow" class="display-value"
>: 8px 21px 8px 0px rgba(0, 0, 0, 0.75);</span
>
</div>
<div class="display-el">
<span class="display-property">-webkit-box-shadow</span>
<span id="webkitDisplayShadow" class="display-value"
>: 8px 21px 8px 0px rgba(0, 0, 0, 0.75);</span
>
</div>
</div>
</div>
</div>
</body>
</html>