DeepRat commited on
Commit
59ea029
·
verified ·
1 Parent(s): a219d72

Cambia la imagen de fondo por una animacion de particulas

Browse files
Files changed (3) hide show
  1. index.html +4 -4
  2. script.js +95 -2
  3. style.css +8 -2
index.html CHANGED
@@ -15,10 +15,10 @@
15
  <!-- Hero Section -->
16
  <section class="relative h-screen flex items-center justify-center overflow-hidden">
17
  <div class="absolute inset-0 z-0">
18
- <img src="https://github.com/DeepRatAI/Educative-Lab/blob/main/misc/course.png?raw=true" alt="Course Banner" class="w-full h-full object-cover opacity-90">
19
- <div class="absolute inset-0 bg-gradient-to-t from-black/70 via-transparent to-black/30"></div>
20
  </div>
21
- <div class="relative z-10 text-center px-6 max-w-4xl mx-auto">
22
  <h1 class="text-4xl md:text-6xl font-bold mb-4 text-white drop-shadow-lg">Building Intelligence</h1>
23
  <p class="text-xl md:text-2xl font-medium mb-6 text-white/90 drop-shadow-md">AI Systems Engineering: From Machine Learning to Generative Intelligence</p>
24
  <p class="text-lg mb-8 text-white/80">A DeepRat Educative Lab Program</p>
@@ -164,8 +164,8 @@
164
  <p class="text-gray-500 text-sm">© 2025 DeepRatAI — Open Intelligence for Everyone</p>
165
  </div>
166
  </footer>
167
-
168
  <script src="script.js"></script>
 
169
  <script>feather.replace();</script>
170
  <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
171
  </body>
 
15
  <!-- Hero Section -->
16
  <section class="relative h-screen flex items-center justify-center overflow-hidden">
17
  <div class="absolute inset-0 z-0">
18
+ <div id="particles-js" class="w-full h-full"></div>
19
+ <div class="absolute inset-0 bg-gradient-to-t from-black/70 via-transparent to-black/30 hovered-element"></div>
20
  </div>
21
+ <div class="relative z-10 text-center px-6 max-w-4xl mx-auto">
22
  <h1 class="text-4xl md:text-6xl font-bold mb-4 text-white drop-shadow-lg">Building Intelligence</h1>
23
  <p class="text-xl md:text-2xl font-medium mb-6 text-white/90 drop-shadow-md">AI Systems Engineering: From Machine Learning to Generative Intelligence</p>
24
  <p class="text-lg mb-8 text-white/80">A DeepRat Educative Lab Program</p>
 
164
  <p class="text-gray-500 text-sm">© 2025 DeepRatAI — Open Intelligence for Everyone</p>
165
  </div>
166
  </footer>
 
167
  <script src="script.js"></script>
168
+ <script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
169
  <script>feather.replace();</script>
170
  <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
171
  </body>
script.js CHANGED
@@ -18,7 +18,100 @@ const appearOnScroll = new IntersectionObserver((entries, observer) => {
18
  observer.unobserve(entry.target);
19
  });
20
  }, { threshold: 0.1 });
21
-
22
  faders.forEach(fader => {
23
  appearOnScroll.observe(fader);
24
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  observer.unobserve(entry.target);
19
  });
20
  }, { threshold: 0.1 });
 
21
  faders.forEach(fader => {
22
  appearOnScroll.observe(fader);
23
+ });
24
+
25
+ // Initialize particles.js
26
+ document.addEventListener('DOMContentLoaded', function() {
27
+ if (typeof particlesJS !== 'undefined') {
28
+ particlesJS('particles-js', {
29
+ "particles": {
30
+ "number": {
31
+ "value": 80,
32
+ "density": {
33
+ "enable": true,
34
+ "value_area": 800
35
+ }
36
+ },
37
+ "color": {
38
+ "value": "#ffffff"
39
+ },
40
+ "shape": {
41
+ "type": "circle",
42
+ "stroke": {
43
+ "width": 0,
44
+ "color": "#000000"
45
+ }
46
+ },
47
+ "opacity": {
48
+ "value": 0.5,
49
+ "random": false,
50
+ "anim": {
51
+ "enable": false,
52
+ "speed": 1,
53
+ "opacity_min": 0.1,
54
+ "sync": false
55
+ }
56
+ },
57
+ "size": {
58
+ "value": 3,
59
+ "random": true,
60
+ "anim": {
61
+ "enable": false,
62
+ "speed": 40,
63
+ "size_min": 0.1,
64
+ "sync": false
65
+ }
66
+ },
67
+ "line_linked": {
68
+ "enable": true,
69
+ "distance": 150,
70
+ "color": "#ffffff",
71
+ "opacity": 0.4,
72
+ "width": 1
73
+ },
74
+ "move": {
75
+ "enable": true,
76
+ "speed": 2,
77
+ "direction": "none",
78
+ "random": false,
79
+ "straight": false,
80
+ "out_mode": "out",
81
+ "bounce": false,
82
+ "attract": {
83
+ "enable": false,
84
+ "rotateX": 600,
85
+ "rotateY": 1200
86
+ }
87
+ }
88
+ },
89
+ "interactivity": {
90
+ "detect_on": "canvas",
91
+ "events": {
92
+ "onhover": {
93
+ "enable": true,
94
+ "mode": "grab"
95
+ },
96
+ "onclick": {
97
+ "enable": true,
98
+ "mode": "push"
99
+ },
100
+ "resize": true
101
+ },
102
+ "modes": {
103
+ "grab": {
104
+ "distance": 140,
105
+ "line_linked": {
106
+ "opacity": 1
107
+ }
108
+ },
109
+ "push": {
110
+ "particles_nb": 4
111
+ }
112
+ }
113
+ },
114
+ "retina_detect": true
115
+ });
116
+ }
117
+ });
style.css CHANGED
@@ -30,7 +30,6 @@ section {
30
  grid-template-columns: repeat(1, minmax(0, 1fr));
31
  }
32
  }
33
-
34
  /* Footer Icons */
35
  footer a svg {
36
  transition: all 0.3s ease;
@@ -38,4 +37,11 @@ footer a svg {
38
 
39
  footer a:hover svg {
40
  transform: scale(1.2);
41
- }
 
 
 
 
 
 
 
 
30
  grid-template-columns: repeat(1, minmax(0, 1fr));
31
  }
32
  }
 
33
  /* Footer Icons */
34
  footer a svg {
35
  transition: all 0.3s ease;
 
37
 
38
  footer a:hover svg {
39
  transform: scale(1.2);
40
+ }
41
+
42
+ /* Particles.js container */
43
+ #particles-js {
44
+ width: 100%;
45
+ height: 100%;
46
+ background-color: #000;
47
+ }