davyes0101 commited on
Commit
2831ff8
·
verified ·
1 Parent(s): 6088425

undefined - Initial Deployment

Browse files
Files changed (4) hide show
  1. README.md +7 -5
  2. galaxie.html +116 -0
  3. index.html +252 -18
  4. prompts.txt +0 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Vortex
3
- emoji: 📚
4
- colorFrom: red
5
- colorTo: red
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: vortex
3
+ emoji: 🐳
4
+ colorFrom: blue
5
+ colorTo: gray
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
galaxie.html ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="fr">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Galaxie en rotation</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, html {
11
+ margin: 0;
12
+ padding: 0;
13
+ overflow: hidden;
14
+ background-color: #000;
15
+ }
16
+ canvas {
17
+ display: block;
18
+ }
19
+ </style>
20
+ </head>
21
+ <body>
22
+ <div id="galaxy-container"></div>
23
+
24
+ <script>
25
+ // Scene setup
26
+ const scene = new THREE.Scene();
27
+ const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
28
+ const renderer = new THREE.WebGLRenderer({ antialias: true });
29
+ renderer.setSize(window.innerWidth, window.innerHeight);
30
+ document.getElementById('galaxy-container').appendChild(renderer.domElement);
31
+
32
+ // Galaxy parameters
33
+ const galaxyParams = {
34
+ stars: 5000,
35
+ arms: 4,
36
+ armWidth: 0.5,
37
+ coreRadius: 2,
38
+ armLength: 10,
39
+ rotationSpeed: 0.002
40
+ };
41
+
42
+ // Create stars
43
+ const starsGeometry = new THREE.BufferGeometry();
44
+ const starsMaterial = new THREE.PointsMaterial({
45
+ color: 0xffffff,
46
+ size: 0.05,
47
+ transparent: true,
48
+ opacity: 0.8
49
+ });
50
+
51
+ const positions = [];
52
+ const colors = [];
53
+
54
+ for (let i = 0; i < galaxyParams.stars; i++) {
55
+ // Spiral arm distribution
56
+ const arm = Math.floor(Math.random() * galaxyParams.arms);
57
+ const distance = Math.random() * galaxyParams.armLength + galaxyParams.coreRadius;
58
+ const angle = (arm / galaxyParams.arms) * Math.PI * 2 + Math.random() * galaxyParams.armWidth;
59
+
60
+ // Convert polar to cartesian coordinates
61
+ const x = Math.cos(angle) * distance;
62
+ const z = Math.sin(angle) * distance;
63
+ const y = (Math.random() - 0.5) * 0.5;
64
+
65
+ positions.push(x, y, z);
66
+
67
+ // Color variation (blue for core, white for arms)
68
+ const colorIntensity = 1 - (distance / (galaxyParams.armLength + galaxyParams.coreRadius));
69
+ colors.push(
70
+ colorIntensity * 0.5 + 0.5,
71
+ colorIntensity * 0.7 + 0.3,
72
+ 1.0
73
+ );
74
+ }
75
+
76
+ starsGeometry.setAttribute('position', new THREE.Float32BufferAttribute(positions, 3));
77
+ starsGeometry.setAttribute('color', new THREE.Float32BufferAttribute(colors, 3));
78
+
79
+ const stars = new THREE.Points(starsGeometry, starsMaterial);
80
+ scene.add(stars);
81
+
82
+ // Core glow
83
+ const coreGeometry = new THREE.SphereGeometry(galaxyParams.coreRadius * 0.7, 32, 32);
84
+ const coreMaterial = new THREE.MeshBasicMaterial({
85
+ color: 0x4488ff,
86
+ transparent: true,
87
+ opacity: 0.3
88
+ });
89
+ const core = new THREE.Mesh(coreGeometry, coreMaterial);
90
+ scene.add(core);
91
+
92
+ // Camera position
93
+ camera.position.z = 20;
94
+ camera.position.y = 7;
95
+
96
+ // Animation
97
+ function animate() {
98
+ requestAnimationFrame(animate);
99
+
100
+ // Rotate galaxy
101
+ stars.rotation.y += galaxyParams.rotationSpeed;
102
+
103
+ renderer.render(scene, camera);
104
+ }
105
+
106
+ // Handle window resize
107
+ window.addEventListener('resize', () => {
108
+ camera.aspect = window.innerWidth / window.innerHeight;
109
+ camera.updateProjectionMatrix();
110
+ renderer.setSize(window.innerWidth, window.innerHeight);
111
+ });
112
+
113
+ animate();
114
+ </script>
115
+ </body>
116
+ </html>
index.html CHANGED
@@ -1,19 +1,253 @@
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="fr">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Modélisation d'un trou noir de Schwarzschild par une caténoïde</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
9
+ <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
13
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
14
+ <style>
15
+ .hero-section {
16
+ height: 100vh;
17
+ position: relative;
18
+ }
19
+ .catenoid-canvas {
20
+ position: absolute;
21
+ top: 0;
22
+ left: 0;
23
+ width: 100%;
24
+ height: 100%;
25
+ z-index: 1;
26
+ }
27
+ .content-overlay {
28
+ position: relative;
29
+ z-index: 2;
30
+ }
31
+ .black-hole-visual {
32
+ width: 100%;
33
+ height: 500px;
34
+ background: radial-gradient(circle, #000000 0%, #1a1a2e 70%, #16213e 100%);
35
+ border-radius: 50%;
36
+ position: relative;
37
+ overflow: hidden;
38
+ }
39
+ .accretion-disk {
40
+ position: absolute;
41
+ width: 80%;
42
+ height: 20px;
43
+ background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
44
+ border-radius: 50%;
45
+ top: 50%;
46
+ left: 10%;
47
+ transform: rotateX(70deg);
48
+ opacity: 0.7;
49
+ animation: rotate 20s linear infinite;
50
+ }
51
+ @keyframes rotate {
52
+ from { transform: rotateX(70deg) rotateZ(0deg); }
53
+ to { transform: rotateX(70deg) rotateZ(360deg); }
54
+ }
55
+ </style>
56
+ </head>
57
+ <body class="bg-gray-900 text-white">
58
+ <!-- Hero Section with Vanta.js background -->
59
+ <div class="hero-section">
60
+ <div id="vanta-bg" class="catenoid-canvas"></div>
61
+ <div class="content-overlay container mx-auto px-6 py-20 flex flex-col justify-center h-full">
62
+ <h1 class="text-5xl md:text-7xl font-bold mb-6" data-aos="fade-down">
63
+ Modélisation d'un trou noir de Schwarzschild
64
+ </h1>
65
+ <h2 class="text-3xl md:text-5xl font-semibold text-cyan-400 mb-8" data-aos="fade-down" data-aos-delay="200">
66
+ Par une caténoïde
67
+ </h2>
68
+ <p class="text-xl md:text-2xl max-w-3xl mb-10" data-aos="fade-up" data-aos-delay="400">
69
+ Exploration visuelle de la représentation géométrique des trous noirs à travers les surfaces minimales.
70
+ </p>
71
+ <div class="flex gap-4" data-aos="fade-up" data-aos-delay="600">
72
+ <a href="#introduction" class="px-8 py-3 bg-cyan-600 hover:bg-cyan-700 rounded-full font-semibold transition">
73
+ Commencer
74
+ </a>
75
+ <a href="#simulation" class="px-8 py-3 border border-cyan-400 hover:bg-cyan-900/30 rounded-full font-semibold transition">
76
+ Simulation
77
+ </a>
78
+ <a href="galaxie.html" class="px-8 py-3 border border-purple-400 hover:bg-purple-900/30 rounded-full font-semibold transition">
79
+ Galaxie
80
+ </a>
81
+ </div>
82
+ </div>
83
+ </div>
84
+
85
+ <!-- Introduction Section -->
86
+ <section id="introduction" class="py-20 bg-gray-800">
87
+ <div class="container mx-auto px-6">
88
+ <div class="flex flex-col md:flex-row items-center gap-12">
89
+ <div class="md:w-1/2" data-aos="fade-right">
90
+ <h2 class="text-4xl font-bold mb-6">La caténoïde et les trous noirs</h2>
91
+ <p class="text-lg mb-4">
92
+ La caténoïde est une surface minimale de révolution qui peut servir de modèle simplifié pour représenter l'espace-temps déformé autour d'un trou noir de Schwarzschild.
93
+ </p>
94
+ <p class="text-lg mb-6">
95
+ Cette surface, obtenue par rotation d'une chaînette, présente des propriétés mathématiques fascinantes qui rappellent la courbure de l'espace-temps près d'un trou noir.
96
+ </p>
97
+ <div class="flex items-center gap-2 text-cyan-400">
98
+ <i data-feather="arrow-right"></i>
99
+ <span>Explorez cette analogie géométrique</span>
100
+ </div>
101
+ </div>
102
+ <div class="md:w-1/2" data-aos="fade-left">
103
+ <div class="black-hole-visual">
104
+ <div class="accretion-disk"></div>
105
+ </div>
106
+ </div>
107
+ </div>
108
+ </div>
109
+ </section>
110
+
111
+ <!-- Mathematical Explanation -->
112
+ <section class="py-20 bg-gray-900">
113
+ <div class="container mx-auto px-6">
114
+ <h2 class="text-4xl font-bold mb-12 text-center" data-aos="fade-down">Fondements mathématiques</h2>
115
+
116
+ <div class="grid md:grid-cols-2 gap-12">
117
+ <div class="bg-gray-800 p-8 rounded-xl" data-aos="fade-up">
118
+ <div class="flex items-center gap-4 mb-6">
119
+ <div class="bg-cyan-600 p-3 rounded-full">
120
+ <i data-feather="code" class="w-6 h-6"></i>
121
+ </div>
122
+ <h3 class="text-2xl font-semibold">Équation de la caténoïde</h3>
123
+ </div>
124
+ <p class="text-lg mb-4">
125
+ La caténoïde est décrite par l'équation paramétrique :
126
+ </p>
127
+ <div class="bg-gray-700 p-4 rounded-lg mb-4 font-mono">
128
+ x = a cosh(v/a) cos(u)<br>
129
+ y = a cosh(v/a) sin(u)<br>
130
+ z = v
131
+ </div>
132
+ <p class="text-lg">
133
+ où a est un paramètre de taille et (u,v) sont les coordonnées de la surface.
134
+ </p>
135
+ </div>
136
+
137
+ <div class="bg-gray-800 p-8 rounded-xl" data-aos="fade-up" data-aos-delay="200">
138
+ <div class="flex items-center gap-4 mb-6">
139
+ <div class="bg-purple-600 p-3 rounded-full">
140
+ <i data-feather="activity" class="w-6 h-6"></i>
141
+ </div>
142
+ <h3 class="text-2xl font-semibold">Métrique de Schwarzschild</h3>
143
+ </div>
144
+ <p class="text-lg mb-4">
145
+ La solution de Schwarzschild décrit l'espace-temps autour d'un trou noir statique :
146
+ </p>
147
+ <div class="bg-gray-700 p-4 rounded-lg mb-4 font-mono">
148
+ ds² = -(1-2GM/rc²)dt² + (1-2GM/rc²)⁻¹dr² + r²(dθ² + sin²θ dφ²)
149
+ </div>
150
+ <p class="text-lg">
151
+ La caténoïde offre une analogie visuelle pour cette courbure.
152
+ </p>
153
+ </div>
154
+ </div>
155
+ </div>
156
+ </section>
157
+
158
+ <!-- Simulation Section -->
159
+ <section id="simulation" class="py-20 bg-gray-800">
160
+ <div class="container mx-auto px-6">
161
+ <h2 class="text-4xl font-bold mb-12 text-center" data-aos="fade-down">Simulation interactive</h2>
162
+
163
+ <div class="flex flex-col items-center">
164
+ <div class="w-full max-w-4xl h-96 bg-black rounded-xl mb-8 overflow-hidden" id="threejs-container">
165
+ <!-- Three.js canvas will be inserted here -->
166
+ </div>
167
+
168
+ <div class="w-full max-w-2xl">
169
+ <div class="mb-6">
170
+ <label class="block text-lg mb-2">Paramètre de courbure (a)</label>
171
+ <input type="range" min="0.5" max="3" step="0.1" value="1" class="w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer">
172
+ </div>
173
+
174
+ <div class="grid grid-cols-2 gap-4">
175
+ <button class="px-6 py-3 bg-cyan-600 hover:bg-cyan-700 rounded-lg font-semibold transition">
176
+ <i data-feather="rotate-cw" class="inline mr-2"></i> Réinitialiser
177
+ </button>
178
+ <button class="px-6 py-3 bg-purple-600 hover:bg-purple-700 rounded-lg font-semibold transition">
179
+ <i data-feather="info" class="inline mr-2"></i> Explications
180
+ </button>
181
+ </div>
182
+ </div>
183
+ </div>
184
+ </div>
185
+ </section>
186
+
187
+ <!-- Footer -->
188
+ <footer class="py-12 bg-gray-900 border-t border-gray-800">
189
+ <div class="container mx-auto px-6">
190
+ <div class="flex flex-col md:flex-row justify-between items-center">
191
+ <div class="mb-6 md:mb-0">
192
+ <h3 class="text-2xl font-bold text-cyan-400">Modélisation des trous noirs</h3>
193
+ <p class="text-gray-400">Exploration géométrique de l'espace-temps</p>
194
+ </div>
195
+ <div class="flex gap-6">
196
+ <a href="#" class="text-gray-400 hover:text-cyan-400 transition">
197
+ <i data-feather="github"></i>
198
+ </a>
199
+ <a href="#" class="text-gray-400 hover:text-cyan-400 transition">
200
+ <i data-feather="twitter"></i>
201
+ </a>
202
+ <a href="#" class="text-gray-400 hover:text-cyan-400 transition">
203
+ <i data-feather="book"></i>
204
+ </a>
205
+ <a href="galaxie.html" class="text-gray-400 hover:text-purple-400 transition">
206
+ <i data-feather="star"></i>
207
+ </a>
208
+ </div>
209
+ </div>
210
+ <div class="mt-12 pt-8 border-t border-gray-800 text-center text-gray-500">
211
+ <p>© 2023 Modélisation des trous noirs. Tous droits réservés.</p>
212
+ </div>
213
+ </div>
214
+ </footer>
215
+
216
+ <script>
217
+ // Initialize animations
218
+ AOS.init({
219
+ duration: 800,
220
+ easing: 'ease-in-out',
221
+ once: true
222
+ });
223
+
224
+ // Initialize feather icons
225
+ feather.replace();
226
+
227
+ // Initialize Vanta.js background
228
+ VANTA.NET({
229
+ el: "#vanta-bg",
230
+ mouseControls: true,
231
+ touchControls: true,
232
+ gyroControls: false,
233
+ minHeight: 200.00,
234
+ minWidth: 200.00,
235
+ scale: 1.00,
236
+ scaleMobile: 1.00,
237
+ color: 0x3f82f5,
238
+ backgroundColor: 0x111827,
239
+ points: 12.00,
240
+ maxDistance: 22.00,
241
+ spacing: 18.00
242
+ });
243
+
244
+ // Three.js simulation would be initialized here
245
+ // This is a placeholder for the actual implementation
246
+ document.addEventListener('DOMContentLoaded', function() {
247
+ const container = document.getElementById('threejs-container');
248
+ // Three.js initialization code would go here
249
+ console.log('Three.js container ready for initialization');
250
+ });
251
+ </script>
252
+ </body>
253
  </html>
prompts.txt ADDED
File without changes