Automatic Curtain  MVP
Software repository for an automatic curtain using stepper motor, TMC2209 and ESP32
webpage.h
Go to the documentation of this file.
1 
12 #ifndef ElegantOTAWebpage_h
13 #define ElegantOTAWebpage_h
14 
15 const char index_html[] PROGMEM = R"=====(
16 <!DOCTYPE html>
17 <html>
18  <head>
19  <title>MaD</title>
20  <meta name="viewport" content="width=device-width, initial-scale=1">
21  <style>
22  body {font-family: Arial, Helvetica, sans-serif;}* {box-sizing: border-box;}
23 
24  input[type=text], [type=email], [type=password] {
25  display: inline-block;
26  padding: 12px;
27  border: 1px solid #ccc;
28  border-radius: 4px;
29  box-sizing: border-box;
30  margin-top: 6px;
31  margin-bottom: 16px;
32  resize: vertical;
33  text-align: left;
34  }
35 
36  label{
37  display: inline-block;
38  width: fit-content;
39  text-align: left;
40  }
41 
42  input[type=submit] {
43  background-color: #4CAF50;
44  color: white;
45  padding: 12px 20px;
46  border: none;
47  border-radius: 4px;
48  cursor: pointer;
49  }
50 
51  input[type=submit]:hover {
52  background-color: #09d813;
53  }
54 
55  .container {
56  margin: auto;
57  width: fit-content;
58  border-radius: 5px;
59  background-color: #f2f2f2;
60  padding: 20px;
61  text-align: center;
62  }
63  </style>
64  </head>
65  <body>
66  <div class="container">
67  <h1>MaD Automatic Curtain Setup</h1><br>
68  <form action="/submit">
69  <label for="device_name">Device Name</label><br>
70  <input type="text" id="device_name" name="device_name" required="required" size="32" placeholder="Enter device name to be displayed in Alexa.."><br>
71  <label for="wifi">Wifi SSID</label><br>
72  <input type="text" id="wifi_ssid" name="wifi_ssid" required="required" size="32" placeholder="Enter Wifi SSID.."><br>
73  <label for="wifi_password">Wifi Password</label><br>
74  <input type="password" id="wifi_password" name="wifi_password" size="32" placeholder="Enter Wifi Password.."><br>
75  <input type="submit" value="Submit">
76  </form>
77  </div>
78  </body>
79 </html>
80 )=====";
81 
82 const char dialog_html[] PROGMEM = R"=====(
83 <!DOCTYPE html>
84 <html>
85  <head>
86  <title>MaD</title>
87  <style>
88  body {font-family: Arial, Helvetica, sans-serif;}* {box-sizing: border-box;}
89 
90  h1 {
91  text-align: center;
92  font-family: Tahoma, Arial, sans-serif;
93  color: #06D85F;
94  margin: 80px 0;
95  }
96 
97  .overlay {
98  position: fixed;
99  top: 0;
100  bottom: 0;
101  left: 0;
102  right: 0;
103  background: #f2f2f2;
104  }
105 
106  .overlay:target {
107  visibility: visible;
108  opacity: 1;
109  }
110 
111  .popup {
112  margin: 70px auto;
113  padding: 20px;
114  background: #fff;
115  border-radius: 5px;
116  width: 30%;
117  }
118 
119  .popup h2 {
120  margin-top: 0;
121  color: #333;
122  font-family: Tahoma, Arial, sans-serif;
123  }
124  .popup .content {
125  max-height: 30%;
126  overflow: auto;
127  }
128 
129  @media screen and (max-width: 700px){
130  .popup{
131  width: 70%;
132  }
133  }
134  </style>
135  </head>
136  <body>
137  <div id="popup1" class="overlay">
138  <div class="popup">
139  <h2>Submission Successful</h2>
140  <div class="content">
141  You can close this tab now.
142  </div>
143  </div>
144  </div>
145  </body>
146 </html>
147 )=====";
148 
149 #endif
const char index_html [] PROGMEM
Definition: webpage.h:15