Gamehak commited on
Commit
df8502b
·
verified ·
1 Parent(s): 14a31b5

juste c'est une documentation arduino pas documentation personnele pour le code donc refait et une narbard en haux pour aller dans le code

Browse files
Files changed (3) hide show
  1. code.html +283 -0
  2. components/navbar.js +14 -16
  3. index.html +49 -60
code.html ADDED
@@ -0,0 +1,283 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Arduino Code Reference - DocVortex</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <link rel="stylesheet" href="style.css">
9
+ <script src="https://cdn.tailwindcss.com"></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
+ </head>
13
+ <body class="bg-gray-900 text-white overflow-x-hidden">
14
+
15
+ <!-- Navigation -->
16
+ <doc-navbar></doc-navbar>
17
+
18
+ <!-- Code Reference Section -->
19
+ <section class="pt-24 pb-12 px-4">
20
+ <div class="max-w-7xl mx-auto">
21
+ <div class="text-center mb-16">
22
+ <h1 class="text-5xl md:text-6xl font-bold mb-6 bg-gradient-to-r from-cyan-400 via-purple-500 to-pink-500 bg-clip-text text-transparent">
23
+ Arduino Code Reference
24
+ </h1>
25
+ <p class="text-xl text-gray-300 max-w-3xl mx-auto">
26
+ Complete reference for Arduino programming language, functions, and libraries.
27
+ </p>
28
+ </div>
29
+
30
+ <!-- Search Bar -->
31
+ <div class="max-w-2xl mx-auto mb-12">
32
+ <div class="relative">
33
+ <input type="text" placeholder="Search functions, libraries, or keywords..."
34
+ class="w-full px-6 py-4 bg-gray-800/50 backdrop-blur-sm rounded-full border border-white/20 focus:outline-none focus:border-cyan-500 focus:ring-2 focus:ring-cyan-500/20 text-white placeholder-gray-400">
35
+ <button class="absolute right-2 top-2 p-3 bg-gradient-to-r from-cyan-500 to-purple-600 rounded-full">
36
+ <i data-feather="search" class="w-5 h-5"></i>
37
+ </button>
38
+ </div>
39
+ </div>
40
+
41
+ <!-- Categories -->
42
+ <div class="grid md:grid-cols-3 lg:grid-cols-4 gap-6 mb-16">
43
+ <div class="bg-gray-800/50 backdrop-blur-sm rounded-2xl p-6 border border-white/10 hover:border-cyan-500/50 transition-all duration-300 cursor-pointer">
44
+ <div class="w-12 h-12 bg-gradient-to-r from-cyan-500 to-blue-600 rounded-xl mb-4 flex items-center justify-center">
45
+ <i data-feather="zap" class="w-6 h-6 text-white"></i>
46
+ </div>
47
+ <h3 class="text-xl font-bold mb-2">Digital I/O</h3>
48
+ <p class="text-gray-400 text-sm">pinMode(), digitalRead(), digitalWrite()</p>
49
+ </div>
50
+
51
+ <div class="bg-gray-800/50 backdrop-blur-sm rounded-2xl p-6 border border-white/10 hover:border-purple-500/50 transition-all duration-300 cursor-pointer">
52
+ <div class="w-12 h-12 bg-gradient-to-r from-purple-500 to-pink-600 rounded-xl mb-4 flex items-center justify-center">
53
+ <i data-feather="trending-up" class="w-6 h-6 text-white"></i>
54
+ </div>
55
+ <h3 class="text-xl font-bold mb-2">Analog I/O</h3>
56
+ <p class="text-gray-400 text-sm">analogRead(), analogWrite(), analogReference()</p>
57
+ </div>
58
+
59
+ <div class="bg-gray-800/50 backdrop-blur-sm rounded-2xl p-6 border border-white/10 hover:border-green-500/50 transition-all duration-300 cursor-pointer">
60
+ <div class="w-12 h-12 bg-gradient-to-r from-green-500 to-cyan-600 rounded-xl mb-4 flex items-center justify-center">
61
+ <i data-feather="clock" class="w-6 h-6 text-white"></i>
62
+ </div>
63
+ <h3 class="text-xl font-bold mb-2">Time Functions</h3>
64
+ <p class="text-gray-400 text-sm">millis(), micros(), delay(), delayMicroseconds()</p>
65
+ </div>
66
+
67
+ <div class="bg-gray-800/50 backdrop-blur-sm rounded-2xl p-6 border border-white/10 hover:border-yellow-500/50 transition-all duration-300 cursor-pointer">
68
+ <div class="w-12 h-12 bg-gradient-to-r from-yellow-500 to-orange-600 rounded-xl mb-4 flex items-center justify-center">
69
+ <i data-feather="terminal" class="w-6 h-6 text-white"></i>
70
+ </div>
71
+ <h3 class="text-xl font-bold mb-2">Serial Communication</h3>
72
+ <p class="text-gray-400 text-sm">Serial.begin(), Serial.print(), Serial.read()</p>
73
+ </div>
74
+
75
+ <div class="bg-gray-800/50 backdrop-blur-sm rounded-2xl p-6 border border-white/10 hover:border-indigo-500/50 transition-all duration-300 cursor-pointer">
76
+ <div class="w-12 h-12 bg-gradient-to-r from-indigo-500 to-purple-600 rounded-xl mb-4 flex items-center justify-center">
77
+ <i data-feather="cpu" class="w-6 h-6 text-white"></i>
78
+ </div>
79
+ <h3 class="text-xl font-bold mb-2">Advanced I/O</h3>
80
+ <p class="text-gray-400 text-sm">shiftOut(), pulseIn(), tone(), noTone()</p>
81
+ </div>
82
+
83
+ <div class="bg-gray-800/50 backdrop-blur-sm rounded-2xl p-6 border border-white/10 hover:border-pink-500/50 transition-all duration-300 cursor-pointer">
84
+ <div class="w-12 h-12 bg-gradient-to-r from-pink-500 to-orange-600 rounded-xl mb-4 flex items-center justify-center">
85
+ <i data-feather="wifi" class="w-6 h-6 text-white"></i>
86
+ </div>
87
+ <h3 class="text-xl font-bold mb-2">WiFi & IoT</h3>
88
+ <p class="text-gray-400 text-sm">WiFi library, ESP8266, ESP32 functions</p>
89
+ </div>
90
+
91
+ <div class="bg-gray-800/50 backdrop-blur-sm rounded-2xl p-6 border border-white/10 hover:border-cyan-500/50 transition-all duration-300 cursor-pointer">
92
+ <div class="w-12 h-12 bg-gradient-to-r from-cyan-500 to-teal-600 rounded-xl mb-4 flex items-center justify-center">
93
+ <i data-feather="server" class="w-6 h-6 text-white"></i>
94
+ </div>
95
+ <h3 class="text-xl font-bold mb-2">I2C & SPI</h3>
96
+ <p class="text-gray-400 text-sm">Wire library, SPI communication protocols</p>
97
+ </div>
98
+
99
+ <div class="bg-gray-800/50 backdrop-blur-sm rounded-2xl p-6 border border-white/10 hover:border-red-500/50 transition-all duration-300 cursor-pointer">
100
+ <div class="w-12 h-12 bg-gradient-to-r from-red-500 to-pink-600 rounded-xl mb-4 flex items-center justify-center">
101
+ <i data-feather="file-text" class="w-6 h-6 text-white"></i>
102
+ </div>
103
+ <h3 class="text-xl font-bold mb-2">Libraries</h3>
104
+ <p class="text-gray-400 text-sm">Built-in and contributed libraries</p>
105
+ </div>
106
+ </div>
107
+
108
+ <!-- Most Popular Functions -->
109
+ <div class="mb-16">
110
+ <h2 class="text-3xl font-bold mb-8 text-center">Most Popular Functions</h2>
111
+ <div class="grid gap-6">
112
+ <!-- pinMode() -->
113
+ <div class="bg-gray-800/30 backdrop-blur-sm rounded-2xl p-8 border border-white/10 hover:border-cyan-500/30 transition-all duration-300">
114
+ <div class="flex justify-between items-start mb-4">
115
+ <h3 class="text-2xl font-bold text-cyan-400">pinMode()</h3>
116
+ <span class="px-3 py-1 bg-cyan-500/20 text-cyan-400 rounded-full text-sm">Digital I/O</span>
117
+ </div>
118
+ <p class="text-gray-300 mb-6">Configures the specified pin to behave either as an input or an output.</p>
119
+
120
+ <div class="grid md:grid-cols-2 gap-6">
121
+ <div>
122
+ <h4 class="text-lg font-semibold mb-2 text-white">Syntax</h4>
123
+ <div class="bg-gray-900 rounded-lg p-3 mb-4">
124
+ <code class="text-cyan-400">pinMode(pin, mode)</code>
125
+ </div>
126
+ </div>
127
+
128
+ <div>
129
+ <h4 class="text-lg font-semibold mb-2 text-white">Parameters</h4>
130
+ <ul class="text-gray-400 space-y-1">
131
+ <li><code class="text-cyan-400">pin</code>: the Arduino pin number</li>
132
+ <li><code class="text-cyan-400">mode</code>: INPUT, OUTPUT, or INPUT_PULLUP</li>
133
+ </ul>
134
+ </div>
135
+ </div>
136
+
137
+ <h4 class="text-lg font-semibold mb-2 text-white">Example</h4>
138
+ <div class="bg-gray-900 rounded-lg p-4">
139
+ <pre class="text-gray-300 text-sm"><code>void setup() {
140
+ pinMode(LED_BUILTIN, OUTPUT); // sets the digital pin 13 as output
141
+ }
142
+
143
+ void loop() {
144
+ digitalWrite(LED_BUILTIN, HIGH); // turns the LED on
145
+ delay(1000); // waits for 1 second
146
+ digitalWrite(LED_BUILTIN, LOW); // turns the LED off
147
+ delay(1000); // waits for 1 second
148
+ }</code></pre>
149
+ </div>
150
+
151
+ <div class="mt-4 flex gap-2">
152
+ <button class="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded-lg text-sm transition-colors">
153
+ <i data-feather="copy" class="w-4 h-4 inline mr-1"></i> Copy
154
+ </button>
155
+ <button class="px-4 py-2 bg-cyan-600 hover:bg-cyan-500 rounded-lg text-sm transition-colors">
156
+ <i data-feather="play" class="w-4 h-4 inline mr-1"></i> Try it
157
+ </button>
158
+ </div>
159
+ </div>
160
+
161
+ <!-- digitalWrite() -->
162
+ <div class="bg-gray-800/30 backdrop-blur-sm rounded-2xl p-8 border border-white/10 hover:border-purple-500/30 transition-all duration-300">
163
+ <div class="flex justify-between items-start mb-4">
164
+ <h3 class="text-2xl font-bold text-purple-400">digitalWrite()</h3>
165
+ <span class="px-3 py-1 bg-purple-500/20 text-purple-400 rounded-full text-sm">Digital I/O</span>
166
+ </div>
167
+ <p class="text-gray-300 mb-6">Write a HIGH or LOW value to a digital pin.</p>
168
+
169
+ <div class="grid md:grid-cols-2 gap-6">
170
+ <div>
171
+ <h4 class="text-lg font-semibold mb-2 text-white">Syntax</h4>
172
+ <div class="bg-gray-900 rounded-lg p-3 mb-4">
173
+ <code class="text-purple-400">digitalWrite(pin, value)</code>
174
+ </div>
175
+ </div>
176
+
177
+ <div>
178
+ <h4 class="text-lg font-semibold mb-2 text-white">Parameters</h4>
179
+ <ul class="text-gray-400 space-y-1">
180
+ <li><code class="text-purple-400">pin</code>: the Arduino pin number</li>
181
+ <li><code class="text-purple-400">value</code>: HIGH or LOW</li>
182
+ </ul>
183
+ </div>
184
+ </div>
185
+
186
+ <h4 class="text-lg font-semibold mb-2 text-white">Example</h4>
187
+ <div class="bg-gray-900 rounded-lg p-4">
188
+ <pre class="text-gray-300 text-sm"><code>int ledPin = 13; // LED connected to digital pin 13
189
+
190
+ void setup() {
191
+ pinMode(ledPin, OUTPUT); // sets the digital pin as output
192
+ }
193
+
194
+ void loop() {
195
+ digitalWrite(ledPin, HIGH); // sets the LED on
196
+ delay(1000); // waits for a second
197
+ digitalWrite(ledPin, LOW); // sets the LED off
198
+ delay(1000); // waits for a second
199
+ }</code></pre>
200
+ </div>
201
+
202
+ <div class="mt-4 flex gap-2">
203
+ <button class="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded-lg text-sm transition-colors">
204
+ <i data-feather="copy" class="w-4 h-4 inline mr-1"></i> Copy
205
+ </button>
206
+ <button class="px-4 py-2 bg-purple-600 hover:bg-purple-500 rounded-lg text-sm transition-colors">
207
+ <i data-feather="play" class="w-4 h-4 inline mr-1"></i> Try it
208
+ </button>
209
+ </div>
210
+ </div>
211
+
212
+ <!-- analogRead() -->
213
+ <div class="bg-gray-800/30 backdrop-blur-sm rounded-2xl p-8 border border-white/10 hover:border-green-500/30 transition-all duration-300">
214
+ <div class="flex justify-between items-start mb-4">
215
+ <h3 class="text-2xl font-bold text-green-400">analogRead()</h3>
216
+ <span class="px-3 py-1 bg-green-500/20 text-green-400 rounded-full text-sm">Analog I/O</span>
217
+ </div>
218
+ <p class="text-gray-300 mb-6">Reads the value from the specified analog pin. Arduino boards contain a multichannel, 10-bit analog to digital converter.</p>
219
+
220
+ <div class="grid md:grid-cols-2 gap-6">
221
+ <div>
222
+ <h4 class="text-lg font-semibold mb-2 text-white">Syntax</h4>
223
+ <div class="bg-gray-900 rounded-lg p-3 mb-4">
224
+ <code class="text-green-400">analogRead(pin)</code>
225
+ </div>
226
+ </div>
227
+
228
+ <div>
229
+ <h4 class="text-lg font-semibold mb-2 text-white">Parameters</h4>
230
+ <ul class="text-gray-400 space-y-1">
231
+ <li><code class="text-green-400">pin</code>: the analog input pin number</li>
232
+ </ul>
233
+ </div>
234
+ </div>
235
+
236
+ <h4 class="text-lg font-semibold mb-2 text-white">Example</h4>
237
+ <div class="bg-gray-900 rounded-lg p-4">
238
+ <pre class="text-gray-300 text-sm"><code>int analogPin = A3; // potentiometer wiper (middle terminal) connected to analog pin 3
239
+ // outside leads to ground and +5V
240
+ int val = 0; // variable to store the value read
241
+
242
+ void setup() {
243
+ Serial.begin(9600); // setup serial
244
+ }
245
+
246
+ void loop() {
247
+ val = analogRead(analogPin); // read the input pin
248
+ Serial.println(val); // debug value
249
+ }</code></pre>
250
+ </div>
251
+
252
+ <div class="mt-4 flex gap-2">
253
+ <button class="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded-lg text-sm transition-colors">
254
+ <i data-feather="copy" class="w-4 h-4 inline mr-1"></i> Copy
255
+ </button>
256
+ <button class="px-4 py-2 bg-green-600 hover:bg-green-500 rounded-lg text-sm transition-colors">
257
+ <i data-feather="play" class="w-4 h-4 inline mr-1"></i> Try it
258
+ </button>
259
+ </div>
260
+ </div>
261
+ </div>
262
+ </div>
263
+
264
+ <!-- Back to Home -->
265
+ <div class="text-center">
266
+ <a href="/" class="inline-flex items-center gap-2 text-cyan-400 hover:text-cyan-300 transition-colors">
267
+ <i data-feather="arrow-left" class="w-5 h-5"></i>
268
+ Back to Home
269
+ </a>
270
+ </div>
271
+ </div>
272
+ </section>
273
+
274
+ <!-- Footer -->
275
+ <doc-footer></doc-footer>
276
+
277
+ <script src="components/navbar.js"></script>
278
+ <script src="components/footer.js"></script>
279
+ <script src="script.js"></script>
280
+ <script>feather.replace();</script>
281
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
282
+ </body>
283
+ </html>
components/navbar.js CHANGED
@@ -133,31 +133,29 @@ class DocNavbar extends HTMLElement {
133
  <nav>
134
  <div class="nav-wrapper">
135
  <a href="/" class="logo">
136
- <i data-feather="book-open"></i>
137
- DocVortex
138
  </a>
139
 
140
  <div class="nav-links">
141
- <a href="#features" class="nav-link">Features</a>
142
- <a href="#components" class="nav-link">Components</a>
143
- <a href="#guides" class="nav-link">Guides</a>
144
- <a href="#api" class="nav-link">API</a>
145
- <a href="#playground" class="cta-button">Playground</a>
146
  </div>
147
-
148
- <button class="mobile-menu-toggle" data-mobile-menu-toggle>
149
  <i data-feather="menu" class="w-6 h-6"></i>
150
  </button>
151
  </div>
152
-
153
  <div class="mobile-menu" data-mobile-menu>
154
- <a href="#features" class="nav-link">Features</a>
155
- <a href="#components" class="nav-link">Components</a>
156
- <a href="#guides" class="nav-link">Guides</a>
157
- <a href="#api" class="nav-link">API</a>
158
- <a href="#playground" class="cta-button">Playground</a>
159
  </div>
160
- </nav>
161
  `;
162
 
163
  // Add mobile menu toggle functionality
 
133
  <nav>
134
  <div class="nav-wrapper">
135
  <a href="/" class="logo">
136
+ <i data-feather="cpu"></i>
137
+ Arduino DocVortex
138
  </a>
139
 
140
  <div class="nav-links">
141
+ <a href="#boards" class="nav-link">Boards</a>
142
+ <a href="code.html" class="nav-link">Code Reference</a>
143
+ <a href="#tutorials" class="nav-link">Tutorials</a>
144
+ <a href="#libraries" class="nav-link">Libraries</a>
145
+ <a href="code.html" class="cta-button">Get Started</a>
146
  </div>
147
+ <button class="mobile-menu-toggle" data-mobile-menu-toggle>
 
148
  <i data-feather="menu" class="w-6 h-6"></i>
149
  </button>
150
  </div>
 
151
  <div class="mobile-menu" data-mobile-menu>
152
+ <a href="#boards" class="nav-link">Boards</a>
153
+ <a href="code.html" class="nav-link">Code Reference</a>
154
+ <a href="#tutorials" class="nav-link">Tutorials</a>
155
+ <a href="#libraries" class="nav-link">Libraries</a>
156
+ <a href="code.html" class="cta-button">Get Started</a>
157
  </div>
158
+ </nav>
159
  `;
160
 
161
  // Add mobile menu toggle functionality
index.html CHANGED
@@ -3,8 +3,8 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>DocVortex - Documentation that Sucks You In</title>
7
- <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
  <link rel="stylesheet" href="style.css">
9
  <script src="https://cdn.tailwindcss.com"></script>
10
  <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
@@ -33,47 +33,42 @@
33
  <img src="http://static.photos/technology/400x400/42" alt="DocVortex Logo" class="w-32 h-32 rounded-full relative z-10 border-4 border-white/20 shadow-2xl">
34
  </div>
35
  </div>
36
-
37
  <h1 class="text-5xl md:text-7xl font-bold mb-6 bg-gradient-to-r from-cyan-400 via-purple-500 to-pink-500 bg-clip-text text-transparent animate-text-shine">
38
- DocVortex
39
  </h1>
40
  <p class="text-xl md:text-2xl text-gray-300 mb-8 max-w-3xl mx-auto leading-relaxed">
41
- Documentation that doesn't suck. A whirlpool of knowledge with interactive examples,
42
- beautiful design, and developer-first experience.
43
  </p>
44
-
45
- <div class="flex flex-wrap gap-4 justify-center mb-12">
46
- <button class="group relative overflow-hidden px-8 py-4 bg-gradient-to-r from-cyan-500 to-purple-600 rounded-full font-semibold text-lg transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-cyan-500/25">
47
- <span class="relative z-10">Get Started</span>
48
  <div class="absolute inset-0 bg-gradient-to-r from-purple-600 to-pink-600 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
49
- </button>
50
- <button class="group relative overflow-hidden px-8 py-4 bg-white/10 backdrop-blur-sm rounded-full font-semibold text-lg border border-white/20 transition-all duration-300 hover:bg-white/20 hover:scale-105">
51
- <span class="relative z-10 flex items-center gap-2">
52
- <i data-feather="github" class="w-5 h-5"></i>
53
- View on GitHub
54
- </span>
55
- </button>
56
- </div>
57
 
58
  <!-- Stats -->
59
  <div class="grid grid-cols-2 md:grid-cols-4 gap-8 mt-16">
60
- <div class="text-center group hover:scale-110 transition-all duration-300">
61
- <div class="text-3xl md:text-4xl font-bold text-cyan-400 mb-2 counter" data-target="500">0</div>
62
- <div class="text-gray-400">Components</div>
63
- </div>
64
- <div class="text-center group hover:scale-110 transition-all duration-300">
65
- <div class="text-3xl md:text-4xl font-bold text-purple-400 mb-2 counter" data-target="1000">0</div>
66
- <div class="text-gray-400">Examples</div>
67
- </div>
68
- <div class="text-center group hover:scale-110 transition-all duration-300">
69
- <div class="text-3xl md:text-4xl font-bold text-pink-400 mb-2 counter" data-target="50">0</div>
70
- <div class="text-gray-400">Languages</div>
71
- </div>
72
- <div class="text-center group hover:scale-110 transition-all duration-300">
73
- <div class="text-3xl md:text-4xl font-bold text-orange-400 mb-2 counter" data-target="99">0</div>
74
- <div class="text-gray-400">% Uptime</div>
75
- </div>
76
  </div>
 
 
 
 
 
77
  </div>
78
 
79
  <!-- Scroll Indicator -->
@@ -88,22 +83,20 @@
88
  <section class="py-20 px-4 relative">
89
  <div class="max-w-7xl mx-auto">
90
  <h2 class="text-4xl md:text-5xl font-bold text-center mb-16 bg-gradient-to-r from-cyan-400 to-purple-600 bg-clip-text text-transparent">
91
- Why Developers Love DocVortex
92
  </h2>
93
-
94
- <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
95
  <!-- Feature 1 -->
96
  <div class="group relative bg-gray-800/50 backdrop-blur-sm rounded-2xl p-8 border border-white/10 overflow-hidden hover:border-cyan-500/50 transition-all duration-300">
97
  <div class="absolute inset-0 bg-gradient-to-br from-cyan-500/10 to-purple-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
98
  <div class="relative z-10">
99
  <div class="w-16 h-16 bg-gradient-to-r from-cyan-500 to-blue-600 rounded-2xl mb-6 flex items-center justify-center group-hover:scale-110 transition-transform duration-300">
100
- <i data-feather="zap" class="w-8 h-8 text-white"></i>
101
  </div>
102
- <h3 class="text-2xl font-bold mb-4 text-white">Lightning Fast</h3>
103
- <p class="text-gray-400 leading-relaxed">Instant search, offline-first architecture, and blazing fast load times. No more waiting for documentation.</p>
104
  </div>
105
  </div>
106
-
107
  <!-- Feature 2 -->
108
  <div class="group relative bg-gray-800/50 backdrop-blur-sm rounded-2xl p-8 border border-white/10 overflow-hidden hover:border-purple-500/50 transition-all duration-300">
109
  <div class="absolute inset-0 bg-gradient-to-br from-purple-500/10 to-pink-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
@@ -112,34 +105,31 @@
112
  <i data-feather="code" class="w-8 h-8 text-white"></i>
113
  </div>
114
  <h3 class="text-2xl font-bold mb-4 text-white">Interactive Examples</h3>
115
- <p class="text-gray-400 leading-relaxed">Live code editors, real-time previews, and copy-paste examples that actually work. Learn by doing.</p>
116
  </div>
117
  </div>
118
-
119
  <!-- Feature 3 -->
120
  <div class="group relative bg-gray-800/50 backdrop-blur-sm rounded-2xl p-8 border border-white/10 overflow-hidden hover:border-pink-500/50 transition-all duration-300">
121
  <div class="absolute inset-0 bg-gradient-to-br from-pink-500/10 to-orange-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
122
  <div class="relative z-10">
123
  <div class="w-16 h-16 bg-gradient-to-r from-pink-500 to-orange-600 rounded-2xl mb-6 flex items-center justify-center group-hover:scale-110 transition-transform duration-300">
124
- <i data-feather="smartphone" class="w-8 h-8 text-white"></i>
125
  </div>
126
- <h3 class="text-2xl font-bold mb-4 text-white">Mobile First</h3>
127
- <p class="text-gray-400 leading-relaxed">Beautiful on every device. Responsive design that adapts perfectly to your screen size.</p>
128
  </div>
129
  </div>
130
-
131
  <!-- Feature 4 -->
132
  <div class="group relative bg-gray-800/50 backdrop-blur-sm rounded-2xl p-8 border border-white/10 overflow-hidden hover:border-green-500/50 transition-all duration-300">
133
  <div class="absolute inset-0 bg-gradient-to-br from-green-500/10 to-cyan-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
134
  <div class="relative z-10">
135
  <div class="w-16 h-16 bg-gradient-to-r from-green-500 to-cyan-600 rounded-2xl mb-6 flex items-center justify-center group-hover:scale-110 transition-transform duration-300">
136
- <i data-feather="moon" class="w-8 h-8 text-white"></i>
137
  </div>
138
- <h3 class="text-2xl font-bold mb-4 text-white">Dark Mode Native</h3>
139
- <p class="text-gray-400 leading-relaxed">Designed from the ground up for dark mode. Easy on the eyes during those late-night coding sessions.</p>
140
  </div>
141
  </div>
142
-
143
  <!-- Feature 5 -->
144
  <div class="group relative bg-gray-800/50 backdrop-blur-sm rounded-2xl p-8 border border-white/10 overflow-hidden hover:border-yellow-500/50 transition-all duration-300">
145
  <div class="absolute inset-0 bg-gradient-to-br from-yellow-500/10 to-orange-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
@@ -147,11 +137,10 @@
147
  <div class="w-16 h-16 bg-gradient-to-r from-yellow-500 to-orange-600 rounded-2xl mb-6 flex items-center justify-center group-hover:scale-110 transition-transform duration-300">
148
  <i data-feather="search" class="w-8 h-8 text-white"></i>
149
  </div>
150
- <h3 class="text-2xl font-bold mb-4 text-white">AI-Powered Search</h3>
151
- <p class="text-gray-400 leading-relaxed">Find what you need instantly with semantic search. Ask questions in natural language.</p>
152
  </div>
153
  </div>
154
-
155
  <!-- Feature 6 -->
156
  <div class="group relative bg-gray-800/50 backdrop-blur-sm rounded-2xl p-8 border border-white/10 overflow-hidden hover:border-indigo-500/50 transition-all duration-300">
157
  <div class="absolute inset-0 bg-gradient-to-br from-indigo-500/10 to-purple-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
@@ -159,11 +148,11 @@
159
  <div class="w-16 h-16 bg-gradient-to-r from-indigo-500 to-purple-600 rounded-2xl mb-6 flex items-center justify-center group-hover:scale-110 transition-transform duration-300">
160
  <i data-feather="users" class="w-8 h-8 text-white"></i>
161
  </div>
162
- <h3 class="text-2xl font-bold mb-4 text-white">Community Driven</h3>
163
- <p class="text-gray-400 leading-relaxed">Contributions from developers worldwide. Constantly updated with the latest best practices.</p>
164
  </div>
165
  </div>
166
- </div>
167
  </div>
168
  </section>
169
 
@@ -172,12 +161,12 @@
172
  <div class="absolute inset-0 bg-gradient-to-r from-purple-900/50 to-blue-900/50"></div>
173
  <div class="max-w-4xl mx-auto text-center relative z-10">
174
  <h2 class="text-4xl md:text-5xl font-bold mb-6 bg-gradient-to-r from-cyan-400 to-purple-600 bg-clip-text text-transparent">
175
- Ready to Dive In?
176
  </h2>
177
  <p class="text-xl text-gray-300 mb-8">
178
- Join thousands of developers who are already surfing the DocVortex wave.
179
  </p>
180
- <div class="flex flex-wrap gap-4 justify-center">
181
  <input type="email" placeholder="Enter your email" class="px-6 py-4 bg-white/10 backdrop-blur-sm rounded-full border border-white/20 focus:outline-none focus:border-cyan-500 focus:ring-2 focus:ring-cyan-500/20 w-full max-w-sm">
182
  <button class="group relative overflow-hidden px-8 py-4 bg-gradient-to-r from-cyan-500 to-purple-600 rounded-full font-semibold text-lg transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-cyan-500/25">
183
  <span class="relative z-10">Get Early Access</span>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>DocVortex - Arduino Documentation</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
  <link rel="stylesheet" href="style.css">
9
  <script src="https://cdn.tailwindcss.com"></script>
10
  <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
 
33
  <img src="http://static.photos/technology/400x400/42" alt="DocVortex Logo" class="w-32 h-32 rounded-full relative z-10 border-4 border-white/20 shadow-2xl">
34
  </div>
35
  </div>
 
36
  <h1 class="text-5xl md:text-7xl font-bold mb-6 bg-gradient-to-r from-cyan-400 via-purple-500 to-pink-500 bg-clip-text text-transparent animate-text-shine">
37
+ Arduino DocVortex
38
  </h1>
39
  <p class="text-xl md:text-2xl text-gray-300 mb-8 max-w-3xl mx-auto leading-relaxed">
40
+ Complete Arduino documentation with interactive examples,
41
+ code snippets, and beginner-friendly tutorials.
42
  </p>
43
+ <div class="flex flex-wrap gap-4 justify-center mb-12">
44
+ <a href="code.html" class="group relative overflow-hidden px-8 py-4 bg-gradient-to-r from-cyan-500 to-purple-600 rounded-full font-semibold text-lg transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-cyan-500/25">
45
+ <span class="relative z-10">Browse Code</span>
 
46
  <div class="absolute inset-0 bg-gradient-to-r from-purple-600 to-pink-600 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
47
+ </a>
48
+ <a href="#tutorials" class="group relative overflow-hidden px-8 py-4 bg-white/10 backdrop-blur-sm rounded-full font-semibold text-lg border border-white/20 transition-all duration-300 hover:bg-white/20 hover:scale-105">
49
+ <span class="relative z-10">Tutorials</span>
50
+ </a>
51
+ </div>
 
 
 
52
 
53
  <!-- Stats -->
54
  <div class="grid grid-cols-2 md:grid-cols-4 gap-8 mt-16">
55
+ <div class="text-center group hover:scale-110 transition-all duration-300">
56
+ <div class="text-3xl md:text-4xl font-bold text-cyan-400 mb-2 counter" data-target="25">0</div>
57
+ <div class="text-gray-400">Arduino Boards</div>
58
+ </div>
59
+ <div class="text-center group hover:scale-110 transition-all duration-300">
60
+ <div class="text-3xl md:text-4xl font-bold text-purple-400 mb-2 counter" data-target="200">0</div>
61
+ <div class="text-gray-400">Code Examples</div>
62
+ </div>
63
+ <div class="text-center group hover:scale-110 transition-all duration-300">
64
+ <div class="text-3xl md:text-4xl font-bold text-pink-400 mb-2 counter" data-target="150">0</div>
65
+ <div class="text-gray-400">Sensors & Modules</div>
 
 
 
 
 
66
  </div>
67
+ <div class="text-center group hover:scale-110 transition-all duration-300">
68
+ <div class="text-3xl md:text-4xl font-bold text-orange-400 mb-2 counter" data-target="50">0</div>
69
+ <div class="text-gray-400">Tutorials</div>
70
+ </div>
71
+ </div>
72
  </div>
73
 
74
  <!-- Scroll Indicator -->
 
83
  <section class="py-20 px-4 relative">
84
  <div class="max-w-7xl mx-auto">
85
  <h2 class="text-4xl md:text-5xl font-bold text-center mb-16 bg-gradient-to-r from-cyan-400 to-purple-600 bg-clip-text text-transparent">
86
+ Why Makers Love Arduino DocVortex
87
  </h2>
88
+ <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
 
89
  <!-- Feature 1 -->
90
  <div class="group relative bg-gray-800/50 backdrop-blur-sm rounded-2xl p-8 border border-white/10 overflow-hidden hover:border-cyan-500/50 transition-all duration-300">
91
  <div class="absolute inset-0 bg-gradient-to-br from-cyan-500/10 to-purple-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
92
  <div class="relative z-10">
93
  <div class="w-16 h-16 bg-gradient-to-r from-cyan-500 to-blue-600 rounded-2xl mb-6 flex items-center justify-center group-hover:scale-110 transition-transform duration-300">
94
+ <i data-feather="cpu" class="w-8 h-8 text-white"></i>
95
  </div>
96
+ <h3 class="text-2xl font-bold mb-4 text-white">Arduino Compatible</h3>
97
+ <p class="text-gray-400 leading-relaxed">Complete documentation for all Arduino boards, shields, and compatible microcontrollers.</p>
98
  </div>
99
  </div>
 
100
  <!-- Feature 2 -->
101
  <div class="group relative bg-gray-800/50 backdrop-blur-sm rounded-2xl p-8 border border-white/10 overflow-hidden hover:border-purple-500/50 transition-all duration-300">
102
  <div class="absolute inset-0 bg-gradient-to-br from-purple-500/10 to-pink-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
 
105
  <i data-feather="code" class="w-8 h-8 text-white"></i>
106
  </div>
107
  <h3 class="text-2xl font-bold mb-4 text-white">Interactive Examples</h3>
108
+ <p class="text-gray-400 leading-relaxed">Copy-paste code examples, wiring diagrams, and step-by-step tutorials that actually work.</p>
109
  </div>
110
  </div>
 
111
  <!-- Feature 3 -->
112
  <div class="group relative bg-gray-800/50 backdrop-blur-sm rounded-2xl p-8 border border-white/10 overflow-hidden hover:border-pink-500/50 transition-all duration-300">
113
  <div class="absolute inset-0 bg-gradient-to-br from-pink-500/10 to-orange-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
114
  <div class="relative z-10">
115
  <div class="w-16 h-16 bg-gradient-to-r from-pink-500 to-orange-600 rounded-2xl mb-6 flex items-center justify-center group-hover:scale-110 transition-transform duration-300">
116
+ <i data-feather="book-open" class="w-8 h-8 text-white"></i>
117
  </div>
118
+ <h3 class="text-2xl font-bold mb-4 text-white">Beginner Friendly</h3>
119
+ <p class="text-gray-400 leading-relaxed">Start from zero with clear explanations, wiring diagrams, and progressive tutorials.</p>
120
  </div>
121
  </div>
 
122
  <!-- Feature 4 -->
123
  <div class="group relative bg-gray-800/50 backdrop-blur-sm rounded-2xl p-8 border border-white/10 overflow-hidden hover:border-green-500/50 transition-all duration-300">
124
  <div class="absolute inset-0 bg-gradient-to-br from-green-500/10 to-cyan-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
125
  <div class="relative z-10">
126
  <div class="w-16 h-16 bg-gradient-to-r from-green-500 to-cyan-600 rounded-2xl mb-6 flex items-center justify-center group-hover:scale-110 transition-transform duration-300">
127
+ <i data-feather="tool" class="w-8 h-8 text-white"></i>
128
  </div>
129
+ <h3 class="text-2xl font-bold mb-4 text-white">Wiring Made Easy</h3>
130
+ <p class="text-gray-400 leading-relaxed">Clear diagrams and Fritzing layouts for every project. Never guess your connections again.</p>
131
  </div>
132
  </div>
 
133
  <!-- Feature 5 -->
134
  <div class="group relative bg-gray-800/50 backdrop-blur-sm rounded-2xl p-8 border border-white/10 overflow-hidden hover:border-yellow-500/50 transition-all duration-300">
135
  <div class="absolute inset-0 bg-gradient-to-br from-yellow-500/10 to-orange-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
 
137
  <div class="w-16 h-16 bg-gradient-to-r from-yellow-500 to-orange-600 rounded-2xl mb-6 flex items-center justify-center group-hover:scale-110 transition-transform duration-300">
138
  <i data-feather="search" class="w-8 h-8 text-white"></i>
139
  </div>
140
+ <h3 class="text-2xl font-bold mb-4 text-white">Quick Reference</h3>
141
+ <p class="text-gray-400 leading-relaxed">Pinouts, libraries, and commonly used functions at your fingertips. Fast lookup for busy makers.</p>
142
  </div>
143
  </div>
 
144
  <!-- Feature 6 -->
145
  <div class="group relative bg-gray-800/50 backdrop-blur-sm rounded-2xl p-8 border border-white/10 overflow-hidden hover:border-indigo-500/50 transition-all duration-300">
146
  <div class="absolute inset-0 bg-gradient-to-br from-indigo-500/10 to-purple-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
 
148
  <div class="w-16 h-16 bg-gradient-to-r from-indigo-500 to-purple-600 rounded-2xl mb-6 flex items-center justify-center group-hover:scale-110 transition-transform duration-300">
149
  <i data-feather="users" class="w-8 h-8 text-white"></i>
150
  </div>
151
+ <h3 class="text-2xl font-bold mb-4 text-white">Community Projects</h3>
152
+ <p class="text-gray-400 leading-relaxed">Real projects from the Arduino community. Contribute and learn from makers worldwide.</p>
153
  </div>
154
  </div>
155
+ </div>
156
  </div>
157
  </section>
158
 
 
161
  <div class="absolute inset-0 bg-gradient-to-r from-purple-900/50 to-blue-900/50"></div>
162
  <div class="max-w-4xl mx-auto text-center relative z-10">
163
  <h2 class="text-4xl md:text-5xl font-bold mb-6 bg-gradient-to-r from-cyan-400 to-purple-600 bg-clip-text text-transparent">
164
+ Ready to Build?
165
  </h2>
166
  <p class="text-xl text-gray-300 mb-8">
167
+ Start your Arduino journey today. From blinking an LED to building robots.
168
  </p>
169
+ <div class="flex flex-wrap gap-4 justify-center">
170
  <input type="email" placeholder="Enter your email" class="px-6 py-4 bg-white/10 backdrop-blur-sm rounded-full border border-white/20 focus:outline-none focus:border-cyan-500 focus:ring-2 focus:ring-cyan-500/20 w-full max-w-sm">
171
  <button class="group relative overflow-hidden px-8 py-4 bg-gradient-to-r from-cyan-500 to-purple-600 rounded-full font-semibold text-lg transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-cyan-500/25">
172
  <span class="relative z-10">Get Early Access</span>