-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
101 lines (92 loc) · 2.38 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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Snaptrude Assignment</title>
<script src="https://code.jquery.com/pep/0.4.2/pep.min.js"></script>
<style>
html,
body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
#renderCanvas {
width: 100%;
height: 100%;
display: block;
font-size: 0;
}
button {
background-color: #ffffff;
border: 1px solid #e1e1e1;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
padding: 10px 18px;
color: #2c3e50;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
min-width: 120px;
}
button:hover {
background-color: #f8f9fa;
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
border-color: #d1d1d1;
}
button:active {
transform: translateY(0);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
button:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
button::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
transform: translateX(-100%);
}
button:hover::before {
animation: shine 1.5s;
}
@keyframes shine {
100% {
transform: translateX(100%);
}
}
.controls-container {
position: absolute;
top: 20px;
right: 20px;
display: flex;
gap: 12px;
z-index: 1000;
padding: 12px;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(8px);
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<canvas id="renderCanvas" touch-action="none"></canvas>
<script src="dist/main.js"></script>
</body>
</html>