Skip to content

Commit

Permalink
final SVG logo
Browse files Browse the repository at this point in the history
  • Loading branch information
jschroeter committed Jun 9, 2024
1 parent 7b42129 commit 898061b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firmware/esp32/gdoor/src/wifi_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ namespace WIFI_HELPER { //Namespace as we can only use it once
}

wifiManager.setTitle("GDoor");
wifiManager.setCustomHeadElement("<style>h1 { color: transparent; background-repeat: no-repeat; background-size: contain; aspect-ratio: 596 / 351; margin: auto; max-width: 260px; background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1OTUuOTUiIGhlaWdodD0iMzUwLjk2Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTAzLjMzIC0xNjMuNSkiPjxyZWN0IHdpZHRoPSI1OTUuOTUiIGhlaWdodD0iMzUwLjk2IiB4PSIxMDMuMzMiIHk9IjE2My41MSIgZmlsbD0iI2Y2MCIgcng9IjE2LjcyIiByeT0iMTMuOTgiLz48cmVjdCB3aWR0aD0iMTYwLjIzIiBoZWlnaHQ9IjI3OS4xNSIgeD0iMTUxLjIyIiB5PSIxOTcuNjkiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLWRhc2hvZmZzZXQ9IjMyLjEzIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMS43IiBzdHJva2Utd2lkdGg9IjE4LjkiIHJ4PSIxOC45IiByeT0iMTguOSIvPjxwYXRoIGZpbGw9IiM2NjYiIHN0cm9rZT0iIzY2NiIgc3Ryb2tlLWRhc2hvZmZzZXQ9IjMyLjEzIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZ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jktNS44Ny03LjgxIDAtMTIuOTcgNS44NS01LjE1IDUuODUtNS4xNSAxNy42N1ptNDguNiAwcTAtMTcuMSA5LjUtMjUuMzIgNy45My02LjgzIDE5LjM0LTYuODMgMTIuNjkgMCAyMC43NCA4LjMxIDguMDUgOC4zMSA4LjA1IDIyLjk3IDAgMTEuODctMy41NiAxOC42OC0zLjU3IDYuOC0xMC4zNyAxMC41Ny02LjggMy43Ni0xNC44NiAzLjc2LTEyLjkyIDAtMjAuODgtOC4yOC03Ljk2LTguMjgtNy45Ni0yMy44NlptMTAuNzEgMHEwIDExLjgxIDUuMTYgMTcuNjkgNS4xNSA1Ljg4IDEyLjk3IDUuODggNy43NiAwIDEyLjkyLTUuOSA1LjE1LTUuOTIgNS4xNS0xOC4wMiAwLTExLjQxLTUuMTgtMTcuMy01LjE5LTUuODctMTIuODktNS44Ny03LjgyIDAtMTIuOTcgNS44NS01LjE2IDUuODUtNS4xNiAxNy42N1ptNTIuMzYgMzAuNzV2LTYxLjUxaDkuMzl2OS4zMnEzLjU5LTYuNTQgNi42My04LjYzIDMuMDQtMi4wOCA2LjY5LTIuMDggNS4yNyAwIDEwLjcxIDMuMzZsLTMuNTkgOS42N3EtMy44Mi0yLjI2LTcuNjQtMi4yNi0zLjQyIDAtNi4xNCAyLjA2LTIuNzIgMi4wNS0zLjg4IDUuNy0xLjc0IDUuNTYtMS43NCAxMi4xN3YzMi4yWiIgcGFpbnQtb3JkZXI9InN0cm9rZSIgdHJhbnNmb3JtPSJzY2FsZSgxLjEyOTQ2IC44ODUzOCkiLz48L2c+PC9zdmc+'); }</style>");

wifiManager.setCustomHeadElement("<style>h1 { color: transparent; background-repeat: no-repeat; background-size: contain; aspect-ratio: 596 / 351; margin: auto; max-width: 260px; background-image: url(\"data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' width='595.95' height='350.96'%3E%3Cg transform='translate(-103.32 -163.52)'%3E%3Crect width='595.95' height='350.96' x='103.32' y='163.53' fill='%23f60' rx='16.72' ry='13.98'/%3E%3Crect width='160.23' height='279.15' x='151.22' y='197.69' fill='none' stroke='%23fff' stroke-dashoffset='32.13' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='11.7' stroke-width='18.9' rx='18.9' ry='18.9'/%3E%3Cpath stroke='%23666' stroke-dashoffset='32.13' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='11.7' stroke-width='21.92' d='M176.05 811.8h49.4v70q-11.6 3.8-23.4 5.6-11.8 1.8-26.8 1.8-22.2 0-37.4-8.8-15.2-9-23.2-25.4-7.8-16.6-7.8-39.2 0-22.4 8.8-38.8t25.2-25.4q16.6-9.2 40-9.2 12 0 22.6 2.2 10.8 2.2 20 6.2l-6.8 15.6q-7.6-3.4-17.2-5.8-9.4-2.4-19.6-2.4-25.6 0-40 15.4-14.2 15.4-14.2 42.2 0 17 5.4 30.2 5.6 13 17.4 20.4 11.8 7.2 31 7.2 9.4 0 16-1t12-2.4v-42.4h-31.4z' aria-label='G' style='shape-padding:.90503' transform='matrix(.8771 0 0 1.00886 86.59 -447.81)'/%3E%3Cpath stroke='%23e6e6e6' stroke-dashoffset='32.13' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='11.7' stroke-width='11.77' d='M364.63 463.67q0 21.47-11.74 32.39-11.63 10.8-32.5 10.8h-23.61v-84.7h26.1q12.8 0 22.18 4.74 9.37 4.74 14.47 14 5.1 9.13 5.1 22.77zm-11.27.36q0-16.97-8.42-24.8-8.3-7.94-23.6-7.94h-13.89v66.43h11.51q34.4 0 34.4-33.7zm83.87 10.91q0 15.78-8.07 24.44-7.94 8.66-21.59 8.66-8.42 0-15.06-3.8-6.53-3.91-10.32-11.27-3.8-7.47-3.8-18.03 0-15.78 7.95-24.32 7.95-8.54 21.59-8.54 8.66 0 15.18 3.92 6.65 3.8 10.33 11.15 3.8 7.23 3.8 17.8zm-48.04 0q0 11.27 4.39 17.91 4.5 6.53 14.23 6.53 9.61 0 14.12-6.53 4.5-6.64 4.5-17.9 0-11.28-4.5-17.68-4.51-6.41-14.24-6.41-9.72 0-14.11 6.4-4.4 6.41-4.4 17.68zm119.81 0q0 15.78-8.07 24.44-7.94 8.66-21.59 8.66-8.42 0-15.06-3.8-6.53-3.91-10.32-11.27-3.8-7.47-3.8-18.03 0-15.78 7.95-24.32 7.95-8.54 21.59-8.54 8.66 0 15.18 3.92 6.65 3.8 10.32 11.15 3.8 7.23 3.8 17.8zm-48.04 0q0 11.27 4.39 17.91 4.5 6.53 14.23 6.53 9.6 0 14.12-6.53 4.5-6.64 4.5-17.9 0-11.28-4.5-17.68-4.51-6.41-14.24-6.41t-14.11 6.4q-4.4 6.41-4.4 17.68zm94.18-32.86c1.2 0 2.46.08 3.8.24 1.42.08 2.65.24 3.68.47l-1.3 9.61a34.33 34.33 0 0 0-6.89-.83c-3.24 0-6.28.91-9.13 2.73a19.1 19.1 0 0 0-6.88 7.47c-1.66 3.17-2.5 6.88-2.5 11.16v33.92H525.5v-63.58h8.54l1.19 11.62-1.86 10.93c2.05-3.48 7.04-17.41 10.28-19.94a18.15 18.15 0 0 1 11.5-3.8h0Z' aria-label='Door' transform='scale(1.12946 .88538)'/%3E%3C/g%3E%3C/svg%3E\"); }</style>");
wifiManager.setBackButton(true);

wifiManager.addParameter(&custom_mqtt_server);
Expand Down

0 comments on commit 898061b

Please sign in to comment.