first try of v0.1 webui
This commit is contained in:
parent
187ade247f
commit
57fa57fc94
4 changed files with 21 additions and 12 deletions
|
@ -61,6 +61,8 @@ void WebserverNotFound(AsyncWebServerRequest* request) {
|
||||||
*/
|
*/
|
||||||
void SetupWebserver() {
|
void SetupWebserver() {
|
||||||
Serial.println(":: [Webserver] initializing");
|
Serial.println(":: [Webserver] initializing");
|
||||||
|
|
||||||
|
/* url handler definition */
|
||||||
webserver.on("/", HTTP_GET, WebPage_root);
|
webserver.on("/", HTTP_GET, WebPage_root);
|
||||||
webserver.on("/cangrow.css", HTTP_GET, WebFile_cangrow_CSS);
|
webserver.on("/cangrow.css", HTTP_GET, WebFile_cangrow_CSS);
|
||||||
|
|
||||||
|
|
|
@ -29,9 +29,5 @@
|
||||||
|
|
||||||
|
|
||||||
const char* Page_root_HTML PROGMEM = R"(%HEADER%
|
const char* Page_root_HTML PROGMEM = R"(%HEADER%
|
||||||
<h1>CanGrow</h1>
|
<h2>📡 Hello world!</h2>
|
||||||
Hi<br>
|
|
||||||
%LOL%<br>
|
|
||||||
%ROFL% <br>
|
|
||||||
Bye<br>
|
|
||||||
%FOOTER%)";
|
%FOOTER%)";
|
||||||
|
|
|
@ -27,6 +27,4 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const char* Footer_HTML PROGMEM = R"(<br><br><span>Bottom %CGVER%</span>
|
const char* Footer_HTML PROGMEM = R"(</div></body></html>)";
|
||||||
</body>
|
|
||||||
</html>)";
|
|
||||||
|
|
|
@ -27,8 +27,21 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const char* Header_HTML PROGMEM = R"(<html>
|
const char* Header_HTML PROGMEM = R"(<!DOCTYPE html>
|
||||||
<meta></meta>
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='UTF-8'>
|
||||||
|
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
|
||||||
|
<title>CanGrow %CGVER% - %CGBUILD%</title>
|
||||||
|
<link rel='icon' href='data:;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAABcElEQVQ4y42TzU/bQBDFf7Nx1qGuAYVgQSuo2khBggPhyIH//9AiJAQ9tEeLqCKiUD6sxF52OMSEBCdW57aa9968fTsr3V5XWVLPO6sANNL7ZRAMNeU6Ea4T1UEI6pr55kcAwhpMrYOpk2/r/yEQmKWkIonf+TZVgex4Fw0bIEtIAALF3gbZ8U5VwKa3PJ18JT9IpiLvyflBwuhLG5veVUM0/0aoCONPa2hQjWZ8uEVeupJnXSBwO8YOH8iTeAKc2Q4Xt2C1VZL93F7MjbK/bxDnp5Zn7b+So+9pdQ+K/Q5qJlrRj5Ts6DM+rK7Ih7Mr3HaM7jYQVZqXQ6Tb6yqBYdTfomhHiFfUyMI3f+01/z7RHNzTGDyWGThP63SA2d8EEfIkrgQpzmOvH0AV+3M4zegNpUwagAYG8Yp4BS0nl4Kz5Mpf0JXJMby6w/66Aa+M+9uE53/Iexsggq4ESOYWC0jmsBfX8xdXhcJjL4cLc3kBl8uJGQ/CrpAAAAAASUVORK5CYII='>
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
%CGBUILD%
|
<ul class='nav'><li><a href='/'>🌱 Wohnzimmer Regal</a></li>
|
||||||
<br>)";
|
<li><a href='/growSettings' >🔆 Grow settings</a></li>
|
||||||
|
<li><a href='/systemSettings' >⚙ System settings</a></li>
|
||||||
|
<li><a href='/wifiSettings' class='activeMenu'>📡 WiFi settings</a></li>
|
||||||
|
<li><a href='/help' >❓ Help</a></li>
|
||||||
|
<li><span class='MenuTime'>05:01:40</span></li>
|
||||||
|
<li><a href='https://git.la10cy.net/DeltaLima/CanGrow' target='_blank'>CanGrow v%CGVER% - %CGBUILD%</a></li>
|
||||||
|
</ul>
|
||||||
|
<div class='center'>)";
|
||||||
|
|
Loading…
Reference in a new issue