-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
172 lines (162 loc) · 8.85 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Particle Network</title>
<link rel="icon" type="image/svg+xml" href="favicon.svg">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<canvas id="particleCanvas"></canvas>
<header class="site-header">
<div class="header-content glass-panel">
<h1>// Particle Network</h1>
<p class="subtitle">> Interactive background animation with customizable settings</p>
<div class="features">
<div class="feature">
<span class="feature-icon">🎨</span>
<span class="feature-text">Customizable Colors</span>
</div>
<div class="feature">
<span class="feature-icon">⚡</span>
<span class="feature-text">Real-time Updates</span>
</div>
<div class="feature">
<span class="feature-icon">🎮</span>
<span class="feature-text">Interactive</span>
</div>
</div>
</div>
</header>
<button class="control-toggle" id="controlToggle" aria-label="Toggle Controls" title="Settings">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="3"></circle>
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
</svg>
</button>
<div class="control-panel">
<div class="panel-header">
<h2>Settings</h2>
<button class="close-panel" aria-label="Close panel">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
</div>
<div class="panel-content">
<div class="control-group">
<h3>Background</h3>
<div class="control-item">
<label>Color</label>
<div class="color-control">
<div class="color-input-group">
<input type="color" id="backgroundColor" value="#ffffff">
<input type="text" id="backgroundHex" value="#ffffff" class="hex-input">
</div>
</div>
</div>
<div class="control-item">
<label>Opacity <span class="value-display">100%</span></label>
<input type="range" id="backgroundOpacity" min="0" max="100" value="100">
</div>
</div>
<div class="control-group">
<h3>Particles</h3>
<div class="control-item">
<label for="particleCount">Count <span class="value-display">120</span></label>
<input type="range" id="particleCount" min="10" max="300" value="120">
</div>
<div class="control-item">
<label for="moveSpeed">Speed <span class="value-display">0.504</span></label>
<input type="range" id="moveSpeed" min="0.1" max="2" step="0.001" value="0.504">
</div>
<div class="control-item">
<label>Size Range</label>
<div class="dual-slider">
<input type="range" id="minRadius" min="0.5" max="5" step="0.1" value="1">
<input type="range" id="maxRadius" min="2" max="10" step="0.1" value="5">
<div class="size-display">
<span class="value-display">1</span> - <span class="value-display">5</span>
</div>
</div>
</div>
<div class="control-item">
<label>Color</label>
<div class="color-control">
<div class="color-input-group">
<input type="color" id="particleColor" value="#000000">
<input type="text" id="particleHex" value="#000000" class="hex-input">
</div>
</div>
</div>
<div class="control-item">
<label>Opacity <span class="value-display">100%</span></label>
<input type="range" id="particleOpacity" min="0" max="100" value="100">
</div>
</div>
<div class="control-group">
<h3>Connections</h3>
<div class="control-item">
<label for="connectDistance">Distance <span class="value-display">150</span></label>
<input type="range" id="connectDistance" min="50" max="300" value="150">
</div>
<div class="control-item">
<label for="lineWidth">Width <span class="value-display">2</span></label>
<input type="range" id="lineWidth" min="0.5" max="5" step="0.5" value="2">
</div>
<div class="control-item">
<label>Color</label>
<div class="color-control">
<div class="color-input-group">
<input type="color" id="lineColor" value="#000000">
<input type="text" id="lineHex" value="#000000" class="hex-input">
</div>
</div>
</div>
<div class="control-item">
<label>Opacity <span class="value-display">20%</span></label>
<input type="range" id="lineOpacity" min="0" max="100" value="20">
</div>
</div>
<div class="control-group">
<h3>Effects</h3>
<div class="control-item">
<label for="mouseRadius">Mouse Radius <span class="value-display">200</span></label>
<input type="range" id="mouseRadius" min="50" max="400" value="200">
</div>
<div class="control-item">
<label for="pulseSpeed">Pulse Speed <span class="value-display">0%</span></label>
<input type="range" id="pulseSpeed" min="0.0001" max="0.2" step="0.0001" value="0">
</div>
<div class="control-item toggles">
<label class="toggle">
<input type="checkbox" id="mouseInteraction" checked>
<span class="toggle-label">Mouse Interaction</span>
</label>
<label class="toggle">
<input type="checkbox" id="pulseEnabled" checked>
<span class="toggle-label">Pulse Animation</span>
</label>
</div>
</div>
</div>
<div class="panel-footer">
<button id="reset" class="btn">Reset</button>
<button id="randomize" class="btn btn-primary">Randomize</button>
</div>
</div>
<footer class="footer">
<div class="glass-panel">
Made with <span class="heart">❤</span> by <a href="https://cloudwerxlabs.com" target="_blank" rel="noopener">CloudWerx Labs</a> |
<a href="https://github.com/cloudwerxlabs/particle-network-background" target="_blank" rel="noopener">GitHub</a> |
<a href="https://cloudwerxlabs.github.io/particle-network-background" target="_blank" rel="noopener">Demo</a>
</div>
</footer>
<script src="script.js"></script>
</body>
</html>