5XPU223 commited on
Commit
6c44a41
·
verified ·
1 Parent(s): 586831e

لونها ابيض شوي كلها زياده - Initial Deployment

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +246 -18
  3. prompts.txt +133 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: A Href Https Example Com A
3
- emoji: 🏆
4
- colorFrom: pink
5
- colorTo: purple
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: a-href-https-example-com-a
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: pink
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,247 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>3D Particle Animation</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
9
+ <style>
10
+ body {
11
+ margin: 0;
12
+ overflow: hidden;
13
+ background-color: #000;
14
+ }
15
+ canvas {
16
+ display: block;
17
+ }
18
+ .loading {
19
+ position: absolute;
20
+ top: 50%;
21
+ left: 50%;
22
+ transform: translate(-50%, -50%);
23
+ color: white;
24
+ font-family: 'Arial', sans-serif;
25
+ font-size: 24px;
26
+ }
27
+ .ui-overlay {
28
+ position: absolute;
29
+ bottom: 2rem;
30
+ left: 50%;
31
+ transform: translateX(-50%);
32
+ color: white;
33
+ text-align: center;
34
+ font-family: 'Arial', sans-serif;
35
+ z-index: 100;
36
+ }
37
+ .controls {
38
+ position: absolute;
39
+ top: 2rem;
40
+ right: 2rem;
41
+ z-index: 100;
42
+ display: flex;
43
+ gap: 1rem;
44
+ }
45
+ .control-btn {
46
+ background: rgba(255,255,255,0.2);
47
+ border: none;
48
+ color: white;
49
+ width: 40px;
50
+ height: 40px;
51
+ border-radius: 50%;
52
+ display: flex;
53
+ align-items: center;
54
+ justify-content: center;
55
+ cursor: pointer;
56
+ transition: all 0.3s ease;
57
+ }
58
+ .control-btn:hover {
59
+ background: rgba(255,255,255,0.4);
60
+ }
61
+ </style>
62
+ </head>
63
+ <body>
64
+ <div class="loading">Loading...</div>
65
+ <div class="ui-overlay" id="uiOverlay">
66
+ <h1 class="text-4xl font-bold mb-2">S N X</h1>
67
+ <p class="opacity-80">Interactive 3D particle experience</p>
68
+ </div>
69
+ <div class="controls">
70
+ <button class="control-btn" id="colorBtn">
71
+ <i data-feather="droplet"></i>
72
+ </button>
73
+ <button class="control-btn" id="sizeBtn">
74
+ <i data-feather="maximize-2"></i>
75
+ </button>
76
+ <button class="control-btn" id="resetBtn">
77
+ <i data-feather="refresh-cw"></i>
78
+ </button>
79
+ </div>
80
+
81
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
82
+ <script>
83
+ // Scene setup
84
+ const scene = new THREE.Scene();
85
+ const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
86
+ const renderer = new THREE.WebGLRenderer({ antialias: true });
87
+ renderer.setSize(window.innerWidth, window.innerHeight);
88
+ renderer.setPixelRatio(window.devicePixelRatio);
89
+ document.body.appendChild(renderer.domElement);
90
+
91
+ // Remove loading text
92
+ document.querySelector('.loading').remove();
93
+ feather.replace();
94
+
95
+ // Particle setup
96
+ const particleGeometry = new THREE.BufferGeometry();
97
+ const particleCount = 15000;
98
+ const posArray = new Float32Array(particleCount * 3);
99
+
100
+ for(let i = 0; i < particleCount * 3; i++) {
101
+ posArray[i] = (Math.random() - 0.5) * 15;
102
+ }
103
+
104
+ particleGeometry.setAttribute('position', new THREE.BufferAttribute(posArray, 3));
105
+
106
+ const particleMaterial = new THREE.PointsMaterial({
107
+ size: 0.03,
108
+ color: 0xffffff,
109
+ transparent: true,
110
+ opacity: 1,
111
+ blending: THREE.AdditiveBlending
112
+ });
113
+
114
+ const particles = new THREE.Points(particleGeometry, particleMaterial);
115
+ scene.add(particles);
116
+
117
+ // Text setup
118
+ const fontLoader = new THREE.FontLoader();
119
+ fontLoader.load('https://threejs.org/examples/fonts/helvetiker_regular.typeface.json', (font) => {
120
+ const textGeometry = new THREE.TextGeometry('S N X', {
121
+ font: font,
122
+ size: 0.8,
123
+ height: 0.3,
124
+ curveSegments: 12,
125
+ bevelEnabled: true,
126
+ bevelThickness: 0.05,
127
+ bevelSize: 0.03,
128
+ bevelOffset: 0,
129
+ bevelSegments: 5
130
+ });
131
+
132
+ const textMaterial = new THREE.MeshBasicMaterial({
133
+ color: 0xffffff,
134
+ wireframe: true,
135
+ transparent: true,
136
+ opacity: 1.5
137
+ });
138
+
139
+ const textMesh = new THREE.Mesh(textGeometry, textMaterial);
140
+
141
+ // Positioning text in the center
142
+ textGeometry.computeBoundingBox();
143
+ const textWidth = textGeometry.boundingBox.max.x - textGeometry.boundingBox.min.x;
144
+ textMesh.position.set(-textWidth / 2, -0.5, 0);
145
+
146
+ // Add subtle duplicate text behind
147
+ const textMaterial2 = new THREE.MeshBasicMaterial({
148
+ color: 0xffffff,
149
+ wireframe: true,
150
+ transparent: true,
151
+ opacity: 0.5
152
+ });
153
+
154
+ scene.add(textMesh);
155
+ });
156
+
157
+ // Camera position
158
+ camera.position.z = 5;
159
+
160
+ // Animation variables
161
+ let rotationSpeedX = 0.0005;
162
+ let rotationSpeedY = 0.001;
163
+ let isAnimating = true;
164
+
165
+ // Animation loop
166
+ function animate() {
167
+ requestAnimationFrame(animate);
168
+
169
+ if(isAnimating) {
170
+ particles.rotation.x += rotationSpeedX;
171
+ particles.rotation.y += rotationSpeedY;
172
+ }
173
+
174
+ renderer.render(scene, camera);
175
+ }
176
+
177
+ animate();
178
+
179
+ // Handle window resize
180
+ window.addEventListener('resize', () => {
181
+ camera.aspect = window.innerWidth / window.innerHeight;
182
+ camera.updateProjectionMatrix();
183
+ renderer.setSize(window.innerWidth, window.innerHeight);
184
+ });
185
+
186
+ // UI Controls
187
+ const colorBtn = document.getElementById('colorBtn');
188
+ const sizeBtn = document.getElementById('sizeBtn');
189
+ const resetBtn = document.getElementById('resetBtn');
190
+ const uiOverlay = document.getElementById('uiOverlay');
191
+
192
+ const colors = [
193
+ 0xffffff, // white
194
+ 0xffffff, // white
195
+ 0xffffff, // white
196
+ 0xffffff, // white
197
+ 0xffffff // white
198
+ ];
199
+ let colorIndex = 0;
200
+
201
+ colorBtn.addEventListener('click', () => {
202
+ colorIndex = (colorIndex + 1) % colors.length;
203
+ particleMaterial.color.setHex(colors[colorIndex]);
204
+ });
205
+
206
+ sizeBtn.addEventListener('click', () => {
207
+ particleMaterial.size = particleMaterial.size === 0.03 ? 0.1 : 0.03;
208
+ });
209
+
210
+ resetBtn.addEventListener('click', () => {
211
+ particleMaterial.color.setHex(0xffffff);
212
+ particleMaterial.size = 0.03;
213
+ colorIndex = 0;
214
+ });
215
+
216
+ // Mouse interaction
217
+ let mouseX = 0;
218
+ let mouseY = 0;
219
+
220
+ document.addEventListener('mousemove', (event) => {
221
+ mouseX = (event.clientX / window.innerWidth) * 2 - 1;
222
+ mouseY = -(event.clientY / window.innerHeight) * 2 + 1;
223
+
224
+ // Update rotation speeds based on mouse position
225
+ rotationSpeedX = mouseY * 0.002;
226
+ rotationSpeedY = mouseX * 0.002;
227
+ });
228
+
229
+ // Hide UI after 5 seconds
230
+ setTimeout(() => {
231
+ uiOverlay.style.opacity = '0';
232
+ uiOverlay.style.transition = 'opacity 1s ease';
233
+ }, 5000);
234
+
235
+ // Show UI on mouse move
236
+ document.addEventListener('mousemove', () => {
237
+ uiOverlay.style.opacity = '1';
238
+ clearTimeout(uiTimeout);
239
+ uiTimeout = setTimeout(() => {
240
+ uiOverlay.style.opacity = '0';
241
+ }, 3000);
242
+ });
243
+
244
+ let uiTimeout;
245
+ </script>
246
+ </body>
247
  </html>
prompts.txt ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>3D Particle Animation</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
9
+ <style>
10
+ body {
11
+ margin: 0;
12
+ overflow: hidden;
13
+ background-color: #000;
14
+ }
15
+ canvas {
16
+ display: block;
17
+ }
18
+ .loading {
19
+ position: absolute;
20
+ top: 50%;
21
+ left: 50%;
22
+ transform: translate(-50%, -50%);
23
+ color: white;
24
+ font-family: 'Arial', sans-serif;
25
+ font-size: 24px;
26
+ }
27
+ </style>
28
+ </head>
29
+ <body>
30
+ <div class="loading">Loading...</div>
31
+
32
+ <script>
33
+ // Scene setup
34
+ const scene = new THREE.Scene();
35
+ const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
36
+ const renderer = new THREE.WebGLRenderer({ antialias: true });
37
+ renderer.setSize(window.innerWidth, window.innerHeight);
38
+ renderer.setPixelRatio(window.devicePixelRatio);
39
+ document.body.appendChild(renderer.domElement);
40
+
41
+ // Remove loading text
42
+ document.querySelector('.loading').remove();
43
+
44
+ // Particle setup
45
+ const particleGeometry = new THREE.BufferGeometry();
46
+ const particleCount = 10000;
47
+ const posArray = new Float32Array(particleCount * 3);
48
+
49
+ for(let i = 0; i < particleCount * 3; i++) {
50
+ posArray[i] = (Math.random() - 0.5) * 10;
51
+ }
52
+
53
+ particleGeometry.setAttribute('position', new THREE.BufferAttribute(posArray, 3));
54
+
55
+ const particleMaterial = new THREE.PointsMaterial({
56
+ size: 0.02,
57
+ color: 0xffffff,
58
+ transparent: true,
59
+ opacity: 0.8,
60
+ blending: THREE.AdditiveBlending
61
+ });
62
+
63
+ const particles = new THREE.Points(particleGeometry, particleMaterial);
64
+ scene.add(particles);
65
+
66
+ // Text setup
67
+ const fontLoader = new THREE.FontLoader();
68
+ fontLoader.load('https://threejs.org/examples/fonts/helvetiker_regular.typeface.json', (font) => {
69
+ const textGeometry = new THREE.TextGeometry('LADE', {
70
+ font: font,
71
+ size: 0.5,
72
+ height: 0.2,
73
+ curveSegments: 12,
74
+ bevelEnabled: true,
75
+ bevelThickness: 0.03,
76
+ bevelSize: 0.02,
77
+ bevelOffset: 0,
78
+ bevelSegments: 5
79
+ });
80
+
81
+ const textMaterial = new THREE.MeshBasicMaterial({
82
+ color: 0xffffff,
83
+ wireframe: true
84
+ });
85
+
86
+ const textMesh = new THREE.Mesh(textGeometry, textMaterial);
87
+
88
+ // Positioning text in the center
89
+ textGeometry.computeBoundingBox();
90
+ const textWidth = textGeometry.boundingBox.max.x - textGeometry.boundingBox.min.x;
91
+ textMesh.position.set(-textWidth / 2, 0, 0);
92
+ scene.add(textMesh);
93
+ });
94
+
95
+ // Camera position
96
+ camera.position.z = 3;
97
+
98
+ // Animation loop
99
+ function animate() {
100
+ requestAnimationFrame(animate);
101
+
102
+ particles.rotation.x += 0.0005;
103
+ particles.rotation.y += 0.001;
104
+
105
+ renderer.render(scene, camera);
106
+ }
107
+
108
+ animate();
109
+
110
+ // Handle window resize
111
+ window.addEventListener('resize', () => {
112
+ camera.aspect = window.innerWidth / window.innerHeight;
113
+ camera.updateProjectionMatrix();
114
+ renderer.setSize(window.innerWidth, window.innerHeight);
115
+ });
116
+ </script>
117
+ </body>
118
+ </html>
119
+ عدل COSMOS الى LADE
120
+ خلي النقاط بدل الازرق ابيض
121
+ خلي LADE 3D
122
+ لا لا نفس قبل شوي بس 3D
123
+ اي بضبط كذا بس كبر شويي وحطه نفس السي مكرر خفيف
124
+ ميل المكرره يسار شوي
125
+ رجعها من جديد
126
+ رجع من جديد
127
+ عدل الاسم SNX
128
+ اقصد عدل LADE الى SNX
129
+ بدون تكرير
130
+ ياخي حط SNK بدون تكرار
131
+ حط مسافه كذا S N X
132
+ S ابيض بزياده خله نفس الباقي
133
+ لونها ابيض شوي كلها زياده