ap_html.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include <pgmspace.h>
  3. static const char AP_HTML[] PROGMEM = R"HTML(
  4. <!doctype html>
  5. <html lang="en">
  6. <head>
  7. <meta charset="utf-8">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <title>Modulos DSP &mdash; WiFi Setup</title>
  10. <style>
  11. body { font-family: sans-serif; max-width: 380px; margin: 60px auto; padding: 0 20px; }
  12. h3 { margin-bottom: 0.3rem; }
  13. p { color: #666; font-size: 0.88rem; margin-top: 0.2rem; }
  14. label { display: block; margin-top: 1rem; font-size: 0.88rem; font-weight: 600; }
  15. input { width: 100%; padding: 8px; margin-top: 4px; box-sizing: border-box;
  16. border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
  17. button { display: block; width: 100%; margin-top: 1.4rem; padding: 10px;
  18. background: #f0ad4e; color: #000; border: none; border-radius: 4px;
  19. font-size: 1rem; cursor: pointer; }
  20. button:hover { background: #ec971f; }
  21. </style>
  22. </head>
  23. <body>
  24. <h3>Modulos DSP &mdash; WiFi Setup</h3>
  25. <p>Enter credentials for your WiFi network. The device will reboot and join automatically.</p>
  26. <form method="POST" action="/save">
  27. <label>Network SSID
  28. <input name="ssid" autocomplete="off" required>
  29. </label>
  30. <label>Password
  31. <input type="password" name="pass" autocomplete="new-password">
  32. </label>
  33. <button type="submit">Save &amp; Connect</button>
  34. </form>
  35. </body>
  36. </html>
  37. )HTML";