-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.astro
More file actions
414 lines (391 loc) · 26.8 KB
/
index.astro
File metadata and controls
414 lines (391 loc) · 26.8 KB
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
---
import Layout from '../layouts/Layout.astro';
---
<Layout title="Home">
<!-- Hero — full viewport, cinematic intro -->
<section class="hero-section relative flex items-center justify-center overflow-hidden" style="min-height: calc(100vh - 4rem);">
<!-- Ambient glow -->
<div class="absolute inset-0 pointer-events-none" aria-hidden="true">
<div class="hero-glow absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] rounded-full opacity-20 blur-[120px]" style="background: radial-gradient(circle, #a855f7 0%, transparent 70%);"></div>
</div>
<div class="relative z-10 w-full min-w-0 max-w-4xl mx-auto text-center px-6 sm:px-8">
<p class="hero-fade hero-fade-1 text-sm font-semibold tracking-widest uppercase mb-6 text-purple-400">
Open Source · Cross Platform · Any Tech Stack
</p>
<h1 class="hero-fade hero-fade-2 text-5xl sm:text-6xl md:text-7xl lg:text-8xl font-bold tracking-tight leading-[1.05] mb-8">
Test beyond<br />
<span class="bg-gradient-to-r from-purple-400 via-purple-500 to-purple-600 bg-clip-text text-transparent">the happy path.</span>
</h1>
<p class="hero-fade hero-fade-3 text-lg md:text-xl max-w-2xl mx-auto mb-12 leading-relaxed" style="color: var(--text-muted);">
Dev Proxy is an API simulator that helps you test how your app handles errors, throttling, and slow responses — without changing a single line of code.
</p>
<div class="hero-fade hero-fade-4 flex gap-4 justify-center flex-wrap">
<a
href="https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/get-started"
target="_blank"
rel="noopener"
class="group px-8 py-4 bg-purple-600 hover:bg-purple-500 text-white font-semibold rounded-full transition-all duration-300 hover:shadow-[0_0_30px_rgba(168,85,247,0.4)]"
>
Get Started <span class="inline-block transition-transform duration-300 group-hover:translate-x-1">→</span>
</a>
<a
href={`${import.meta.env.BASE_URL}samples/`}
class="px-8 py-4 border font-semibold rounded-full transition-all duration-300 hover:border-purple-500 hover:shadow-[0_0_30px_rgba(168,85,247,0.15)]"
style="border-color: var(--border-secondary); color: var(--text-secondary);"
>
Browse Samples
</a>
</div>
<!-- Terminal teaser -->
<div class="hero-fade hero-fade-5 mt-16 max-w-xl mx-auto min-w-0">
<div class="rounded-2xl border overflow-hidden text-left font-mono text-xs sm:text-sm" style="background: var(--bg-secondary); border-color: var(--border-primary);">
<div class="flex items-center gap-2 px-4 py-3 border-b" style="border-color: var(--border-primary);">
<span class="w-3 h-3 rounded-full bg-red-500/70"></span>
<span class="w-3 h-3 rounded-full bg-yellow-500/70"></span>
<span class="w-3 h-3 rounded-full bg-green-500/70"></span>
<span class="ml-2 text-xs" style="color: var(--text-faint);">terminal</span>
</div>
<div class="p-4 sm:p-5 space-y-1 overflow-x-auto">
<p style="color: var(--text-faint);"><span style="color: var(--text-muted);">❯</span> devproxy</p>
<p class="whitespace-nowrap"> <span class="text-blue-400">info</span> Dev Proxy listening on 127.0.0.1:8000...</p>
<p class="mt-2"></p>
<p class="whitespace-nowrap" style="color: var(--text-faint);"> <span style="color: var(--text-secondary);">req</span> GET https://api.contoso.com/posts</p>
<p class="whitespace-nowrap" style="color: var(--text-faint);"> skip GenericRandomErrorPlugin: Pass through</p>
<p class="whitespace-nowrap"> <span class="px-1 rounded text-xs font-semibold bg-yellow-500/20 text-yellow-400">pass</span> Passed through</p>
<p class="mt-2"></p>
<p class="whitespace-nowrap" style="color: var(--text-faint);"> <span style="color: var(--text-secondary);">req</span> GET https://api.contoso.com/posts</p>
<p class="whitespace-nowrap" style="color: var(--text-faint);"> skip RetryAfterPlugin: Request not throttled</p>
<p class="whitespace-nowrap"> <span class="px-1 rounded text-xs font-semibold bg-red-500/20 text-red-400">oops</span> <span style="color: var(--text-faint);">GenericRandomErrorPlugin: 429 429</span></p>
</div>
</div>
</div>
</div>
</section>
<!-- Problem statement — emotional hook -->
<section class="py-32 px-6 sm:px-8">
<div class="max-w-3xl mx-auto text-center">
<h2 class="section-reveal text-3xl md:text-5xl font-bold leading-tight mb-8">
You test the happy path.<br />
<span style="color: var(--text-faint);">Your users get the rest.</span>
</h2>
<p class="section-reveal text-lg md:text-xl leading-relaxed" style="color: var(--text-muted);">
APIs fail. They throttle. They respond slowly. They return unexpected data. And when they do, your app needs to handle it gracefully. But simulating these failures is hard — until now.
</p>
</div>
</section>
<!-- Use cases — alternating layout, Apple-style big sections -->
<section class="py-16 px-6 sm:px-8">
<div class="max-w-6xl mx-auto space-y-32 min-w-0">
<!-- Use case 1: Mock APIs -->
<div class="section-reveal grid md:grid-cols-2 gap-12 md:gap-16 items-center">
<div>
<p class="text-sm font-semibold tracking-widest uppercase text-purple-400 mb-4">API Mocking</p>
<h3 class="text-3xl md:text-4xl font-bold mb-6 leading-tight">Mock APIs that don't exist yet.</h3>
<p class="text-lg leading-relaxed mb-6" style="color: var(--text-muted);">
Stand up a fully-functional CRUD API without writing a single line of server code. Design, prototype, and build your frontend in parallel with your backend.
</p>
<a href="https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/how-to/simulate-crud-api" target="_blank" rel="noopener" class="text-purple-400 hover:text-purple-300 font-medium transition-colors">
Learn more →
</a>
</div>
<div class="rounded-2xl border p-6 md:p-8 font-mono text-sm overflow-hidden" style="background: var(--bg-secondary); border-color: var(--border-primary);">
<p style="color: var(--text-faint);">// customers-api.json — CrudApiPlugin</p>
<p class="mt-2 truncate" style="color: var(--text-secondary);"><span class="text-purple-400">"baseUrl"</span>: <span class="text-green-400">"https://api.contoso.com/customers"</span></p>
<p class="mt-3"><span class="text-green-400">getAll</span> <span style="color: var(--text-faint);">GET /customers</span></p>
<p><span class="text-green-400">getOne</span> <span style="color: var(--text-faint);">GET /customers/{id}</span></p>
<p><span class="text-blue-400">create</span> <span style="color: var(--text-faint);">POST /customers</span></p>
<p><span class="text-yellow-400">merge</span> <span style="color: var(--text-faint);">PATCH /customers/{id}</span></p>
<p><span class="text-red-400">delete</span> <span style="color: var(--text-faint);">DELETE /customers/{id}</span></p>
<p class="mt-4 text-purple-400">// Defined in JSON. Zero server code.</p>
</div>
</div>
<!-- Use case 2: Error Handling / Resilience -->
<div class="section-reveal grid md:grid-cols-2 gap-12 md:gap-16 items-center">
<div class="md:order-2">
<p class="text-sm font-semibold tracking-widest uppercase text-purple-400 mb-4">Resilience Testing</p>
<h3 class="text-3xl md:text-4xl font-bold mb-6 leading-tight">See how your app handles API errors.</h3>
<p class="text-lg leading-relaxed mb-6" style="color: var(--text-muted);">
Simulate random errors, timeouts, and failures for any API — without touching your code. Build more robust apps and never lose your customers' data.
</p>
<a href="https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/how-to/test-my-app-with-random-errors" target="_blank" rel="noopener" class="text-purple-400 hover:text-purple-300 font-medium transition-colors">
Learn more →
</a>
</div>
<div class="md:order-1 rounded-2xl border p-6 md:p-8 font-mono text-sm overflow-hidden" style="background: var(--bg-secondary); border-color: var(--border-primary);">
<p style="color: var(--text-faint);">// errors-contoso-api.json</p>
<p class="mt-2 truncate" style="color: var(--text-secondary);"><span class="text-purple-400">"url"</span>: <span class="text-green-400">"https://api.contoso.com/*"</span></p>
<p class="mt-3" style="color: var(--text-secondary);"><span class="text-purple-400">"responses"</span>:</p>
<p> <span class="text-red-400">500</span> <span style="color: var(--text-faint);">Internal Server Error</span></p>
<p> <span class="text-yellow-400">429</span> <span style="color: var(--text-faint);">Too Many Requests</span></p>
<p> <span class="text-red-400">503</span> <span style="color: var(--text-faint);">Service Unavailable</span></p>
<p class="mt-4 text-purple-400">// Random errors at configured failure rate.</p>
</div>
</div>
<!-- Use case 3: AI/LLM Testing -->
<div class="section-reveal grid md:grid-cols-2 gap-12 md:gap-16 items-center">
<div>
<p class="text-sm font-semibold tracking-widest uppercase text-purple-400 mb-4">AI / LLM Testing</p>
<h3 class="text-3xl md:text-4xl font-bold mb-6 leading-tight">Build & test AI apps without burning tokens.</h3>
<p class="text-lg leading-relaxed mb-6" style="color: var(--text-muted);">
Route OpenAI and Azure OpenAI API calls to a local language model during development. Get real responses while building your AI-powered apps — without spending tokens.
</p>
<a href="https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/how-to/simulate-openai" target="_blank" rel="noopener" class="text-purple-400 hover:text-purple-300 font-medium transition-colors">
Learn more →
</a>
</div>
<div class="rounded-2xl border p-6 md:p-8 font-mono text-sm overflow-hidden" style="background: var(--bg-secondary); border-color: var(--border-primary);">
<p style="color: var(--text-faint);">// Your app calls OpenAI</p>
<p class="truncate" style="color: var(--text-secondary);">POST <span class="text-green-400">/v1/chat/completions</span></p>
<p class="mt-4 text-purple-400">// Dev Proxy routes to local LLM</p>
<p style="color: var(--text-faint);"> → <span class="text-green-400">Ollama</span> (llama3.2)</p>
<p class="mt-3"><span class="text-green-400">200</span> <span style="color: var(--text-faint);">{</span> <span class="text-purple-400">"choices"</span>: [{ <span class="text-purple-400">"message"</span>: ... }] <span style="color: var(--text-faint);">}</span></p>
<p class="mt-4 text-purple-400">// Real responses. Zero API costs.</p>
</div>
</div>
<!-- Use case 4: Rate Limiting -->
<div class="section-reveal grid md:grid-cols-2 gap-12 md:gap-16 items-center">
<div class="md:order-2">
<p class="text-sm font-semibold tracking-widest uppercase text-purple-400 mb-4">Rate Limit Simulation</p>
<h3 class="text-3xl md:text-4xl font-bold mb-6 leading-tight">Verify your app respects API limits.</h3>
<p class="text-lg leading-relaxed mb-6" style="color: var(--text-muted);">
Simulate rate limiting and throttling responses before they happen in production. Avoid getting blocked and deliver a smoother experience for your users.
</p>
<a href="https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/how-to/simulate-rate-limit-api-responses" target="_blank" rel="noopener" class="text-purple-400 hover:text-purple-300 font-medium transition-colors">
Learn more →
</a>
</div>
<div class="md:order-1 rounded-2xl border p-6 md:p-8 font-mono text-sm" style="background: var(--bg-secondary); border-color: var(--border-primary);">
<p style="color: var(--text-faint);">RateLimit-Limit: <span class="text-purple-400">3</span></p>
<div class="space-y-2 mt-3">
<div class="flex items-center justify-between">
<span style="color: var(--text-muted);">GET /api/orders</span>
<span class="px-2 py-0.5 rounded text-xs font-semibold bg-green-500/20 text-green-400">Remaining: 2</span>
</div>
<div class="flex items-center justify-between">
<span style="color: var(--text-muted);">GET /api/orders</span>
<span class="px-2 py-0.5 rounded text-xs font-semibold bg-green-500/20 text-green-400">Remaining: 1</span>
</div>
<div class="flex items-center justify-between">
<span style="color: var(--text-muted);">GET /api/orders</span>
<span class="px-2 py-0.5 rounded text-xs font-semibold bg-yellow-500/20 text-yellow-400">Remaining: 0</span>
</div>
<div class="w-full h-px my-2" style="background: var(--border-primary);"></div>
<div class="flex items-center justify-between">
<span style="color: var(--text-muted);">GET /api/orders</span>
<span class="px-2 py-0.5 rounded text-xs font-semibold bg-red-500/20 text-red-400">429 Too Many Requests</span>
</div>
<p class="text-xs mt-3 text-purple-400">Retry-After: 30</p>
</div>
</div>
</div>
<!-- Use case 5: CI/CD -->
<div class="section-reveal grid md:grid-cols-2 gap-12 md:gap-16 items-center">
<div>
<p class="text-sm font-semibold tracking-widest uppercase text-purple-400 mb-4">CI/CD Integration</p>
<h3 class="text-3xl md:text-4xl font-bold mb-6 leading-tight">Automate chaos testing in your pipeline.</h3>
<p class="text-lg leading-relaxed mb-6" style="color: var(--text-muted);">
Run Dev Proxy as part of your CI/CD pipeline to catch API integration issues before they reach production. Works with GitHub Actions, Azure DevOps, and more.
</p>
<a href="https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/how-to/use-dev-proxy-with-github-actions" target="_blank" rel="noopener" class="text-purple-400 hover:text-purple-300 font-medium transition-colors">
Learn more →
</a>
</div>
<div class="rounded-2xl border p-6 md:p-8 font-mono text-sm overflow-hidden" style="background: var(--bg-secondary); border-color: var(--border-primary);">
<p style="color: var(--text-faint);"># .github/workflows/test.yml</p>
<p style="color: var(--text-secondary);"><span class="text-purple-400">steps</span>:</p>
<p style="color: var(--text-secondary);"> - <span class="text-purple-400">name</span>: Setup Dev Proxy</p>
<p style="color: var(--text-secondary);"> <span class="text-purple-400">uses</span>: <span class="text-green-400">dev-proxy-tools/actions/setup@v1</span></p>
<p style="color: var(--text-secondary);"> - <span class="text-purple-400">name</span>: Run tests</p>
<p style="color: var(--text-secondary);"> <span class="text-purple-400">run</span>: <span class="text-green-400">npm test</span></p>
<p style="color: var(--text-secondary);"> - <span class="text-purple-400">name</span>: Stop Dev Proxy</p>
<p style="color: var(--text-secondary);"> <span class="text-purple-400">uses</span>: <span class="text-green-400">dev-proxy-tools/actions/stop@v1</span></p>
<p class="mt-3" style="color: var(--text-faint);">✓ 42 passed, 0 failed</p>
</div>
</div>
<!-- Use case 6: MCP Server -->
<div class="section-reveal grid md:grid-cols-2 gap-12 md:gap-16 items-center">
<div class="md:order-2">
<p class="text-sm font-semibold tracking-widest uppercase text-purple-400 mb-4">MCP Server</p>
<h3 class="text-3xl md:text-4xl font-bold mb-6 leading-tight">Configure Dev Proxy with AI assistants.</h3>
<p class="text-lg leading-relaxed mb-6" style="color: var(--text-muted);">
Use the Dev Proxy MCP server to create configurations using natural language. Get contextual help and discover features — right from your AI assistant.
</p>
<a href="https://github.com/dev-proxy-tools/mcp" target="_blank" rel="noopener" class="text-purple-400 hover:text-purple-300 font-medium transition-colors">
Learn more →
</a>
</div>
<div class="md:order-1 rounded-2xl border p-6 md:p-8 font-mono text-sm overflow-hidden" style="background: var(--bg-secondary); border-color: var(--border-primary);">
<p style="color: var(--text-faint);">// .vscode/mcp.json</p>
<p class="mt-2" style="color: var(--text-secondary);">{</p>
<p style="color: var(--text-secondary);"> <span class="text-purple-400">"servers"</span>: {</p>
<p style="color: var(--text-secondary);"> <span class="text-purple-400">"devproxy"</span>: {</p>
<p style="color: var(--text-secondary);"> <span class="text-purple-400">"type"</span>: <span class="text-green-400">"stdio"</span>,</p>
<p class="truncate" style="color: var(--text-secondary);"> <span class="text-purple-400">"command"</span>: <span class="text-green-400">"npx"</span>,</p>
<p class="truncate" style="color: var(--text-secondary);"> <span class="text-purple-400">"args"</span>: [<span class="text-green-400">"-y"</span>, <span class="text-green-400">"@devproxy/mcp"</span>]</p>
<p style="color: var(--text-secondary);"> }</p>
<p style="color: var(--text-secondary);"> }</p>
<p style="color: var(--text-secondary);">}</p>
<p class="mt-3 text-purple-400">// AI-powered configuration. Natural language.</p>
</div>
</div>
</div>
</section>
<!-- Works with everything -->
<section class="py-32 px-6 sm:px-8">
<div class="max-w-4xl mx-auto text-center">
<p class="section-reveal text-sm font-semibold tracking-widest uppercase text-purple-400 mb-4">Platform Agnostic</p>
<h2 class="section-reveal text-3xl md:text-5xl font-bold mb-8">Works with everything you use.</h2>
<p class="section-reveal text-lg md:text-xl mb-16" style="color: var(--text-muted);">
Dev Proxy intercepts network traffic at the system level. It works with any language, framework, and API — no SDKs, no adapters, no code changes.
</p>
<div class="section-reveal grid grid-cols-2 md:grid-cols-4 gap-6">
{[
{ name: '.NET', icon: `${import.meta.env.BASE_URL}logos/dotnet.svg` },
{ name: 'Node.js', icon: `${import.meta.env.BASE_URL}logos/nodejs.svg` },
{ name: 'Python', icon: `${import.meta.env.BASE_URL}logos/python.svg` },
{ name: 'Java', icon: `${import.meta.env.BASE_URL}logos/java.svg` },
{ name: 'React', icon: `${import.meta.env.BASE_URL}logos/react.svg` },
{ name: 'Angular', icon: `${import.meta.env.BASE_URL}logos/angular.svg` },
{ name: 'Browser', icon: `${import.meta.env.BASE_URL}logos/browser.svg` },
{ name: 'Any REST API', icon: `${import.meta.env.BASE_URL}logos/rest-api.svg` },
].map((tech) => (
<div class="rounded-xl border p-5 text-center transition-all duration-300 hover:border-purple-500/50" style="background: var(--bg-secondary); border-color: var(--border-primary);">
<div class="mb-2 flex justify-center" aria-hidden="true"><img src={tech.icon} alt={tech.name} class="h-8 w-8" /></div>
<p class="text-sm font-medium" style="color: var(--text-muted);">{tech.name}</p>
</div>
))}
</div>
</div>
</section>
<!-- Quick start scenarios -->
<section class="py-32 px-6 sm:px-8" style="background: var(--bg-secondary);">
<div class="max-w-5xl mx-auto">
<div class="text-center mb-16">
<p class="section-reveal text-sm font-semibold tracking-widest uppercase text-purple-400 mb-4">Get Started In Minutes</p>
<h2 class="section-reveal text-3xl md:text-5xl font-bold">What do you want to do?</h2>
</div>
<div class="section-reveal grid md:grid-cols-2 lg:grid-cols-3 gap-6">
{[
{ title: 'Mock an API that doesn\'t exist yet', time: '10 min', href: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/how-to/simulate-crud-api' },
{ title: 'Test my app handles API errors', time: '5 min', href: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/how-to/test-my-app-with-random-errors' },
{ title: 'Simulate OpenAI with a local LLM', time: '15 min', href: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/how-to/simulate-openai' },
{ title: 'Simulate rate limiting responses', time: '10 min', href: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/how-to/simulate-rate-limit-api-responses' },
{ title: 'Automate API testing in CI/CD', time: '15 min', href: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/how-to/use-dev-proxy-with-github-actions' },
{ title: 'Discover what APIs my app calls', time: '5 min', href: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/how-to/discover-urls-to-watch' },
].map((scenario) => (
<a
href={scenario.href}
target="_blank"
rel="noopener"
class="group rounded-xl border p-6 transition-all duration-300 hover:border-purple-500/50 hover:shadow-[0_0_40px_rgba(168,85,247,0.1)] flex flex-col"
style="background: var(--bg-primary); border-color: var(--border-primary);"
>
<h3 class="font-semibold mb-3 group-hover:text-purple-400 transition-colors">{scenario.title}</h3>
<div class="mt-auto flex items-center justify-between">
<span class="text-xs font-mono px-2 py-1 rounded" style="background: var(--bg-secondary); color: var(--text-faint);">{scenario.time}</span>
<span class="text-purple-400 opacity-0 group-hover:opacity-100 transition-opacity duration-300">→</span>
</div>
</a>
))}
</div>
</div>
</section>
<!-- .NET Foundation membership -->
<section class="py-24 px-6 sm:px-8">
<div class="max-w-4xl mx-auto text-center">
<a
href="https://dotnetfoundation.org/projects/project-detail/dev-proxy"
target="_blank"
rel="noopener"
class="section-reveal inline-flex flex-col sm:flex-row items-center gap-6 sm:gap-8 rounded-2xl border p-8 sm:p-10 transition-all duration-300 hover:border-purple-500/50 hover:shadow-[0_0_40px_rgba(168,85,247,0.1)] no-underline"
style="background: var(--bg-secondary); border-color: var(--border-primary);"
>
<img
src={`${import.meta.env.BASE_URL}logos/dotnet-foundation.svg`}
alt=".NET Foundation logo"
class="h-20 w-20 shrink-0"
/>
<div class="text-center sm:text-left">
<p class="text-lg font-semibold mb-1" style="color: var(--text-primary);">Proud member of the .NET Foundation</p>
<p class="text-sm" style="color: var(--text-muted);">Dev Proxy is a community-maintained open source project supported by the .NET Foundation.</p>
</div>
</a>
</div>
</section>
<!-- Final CTA — bold, cinematic -->
<section class="py-32 px-6 sm:px-8 relative overflow-hidden">
<div class="absolute inset-0 pointer-events-none" aria-hidden="true">
<div class="absolute bottom-0 left-1/2 -translate-x-1/2 w-[600px] h-[400px] rounded-full opacity-15 blur-[100px]" style="background: radial-gradient(circle, #a855f7 0%, transparent 70%);"></div>
</div>
<div class="relative z-10 max-w-3xl mx-auto text-center">
<h2 class="section-reveal text-3xl md:text-5xl font-bold mb-6">
How does your app handle<br />
<span class="bg-gradient-to-r from-purple-400 to-purple-600 bg-clip-text text-transparent">API errors?</span>
</h2>
<p class="section-reveal text-lg mb-10" style="color: var(--text-muted);">
Find out in minutes. Dev Proxy is open source and free.
</p>
<div class="section-reveal flex gap-4 justify-center flex-wrap">
<a
href="https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/get-started"
target="_blank"
rel="noopener"
class="group px-8 py-4 bg-purple-600 hover:bg-purple-500 text-white font-semibold rounded-full transition-all duration-300 hover:shadow-[0_0_30px_rgba(168,85,247,0.4)]"
>
Get Started <span class="inline-block transition-transform duration-300 group-hover:translate-x-1">→</span>
</a>
<a
href="https://github.com/dotnet/dev-proxy"
target="_blank"
rel="noopener"
class="px-8 py-4 border font-semibold rounded-full transition-all duration-300 hover:border-purple-500"
style="border-color: var(--border-secondary); color: var(--text-secondary);"
>
View on GitHub
</a>
</div>
</div>
</section>
</Layout>
<style>
/* Hero fade-in animations */
.hero-fade {
opacity: 0;
transform: translateY(20px);
animation: heroFadeIn 0.8s ease-out forwards;
}
.hero-fade-1 { animation-delay: 0.1s; }
.hero-fade-2 { animation-delay: 0.25s; }
.hero-fade-3 { animation-delay: 0.4s; }
.hero-fade-4 { animation-delay: 0.55s; }
.hero-fade-5 { animation-delay: 0.7s; }
@keyframes heroFadeIn {
to {
opacity: 1;
transform: translateY(0);
}
}
/* Scroll-triggered reveal */
.section-reveal {
opacity: 0;
transform: translateY(40px);
transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.section-reveal.visible {
opacity: 1;
transform: translateY(0);
}
</style>
<script>
const observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
}
});
},
{ threshold: 0.15, rootMargin: '0px 0px -60px 0px' }
);
document.querySelectorAll('.section-reveal').forEach((el) => observer.observe(el));
</script>