Skip to content

Commit

Permalink
Add apple icons #326
Browse files Browse the repository at this point in the history
  • Loading branch information
rstrouse committed Apr 14, 2024
1 parent 652346a commit 25c8a66
Show file tree
Hide file tree
Showing 8 changed files with 203 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS: "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json"
ARDUINO_CLI_VERSION: "0.x"
ARDUINO_ESP32_VERSION: "2.0.14"
ARDUINO_JSON_VERSION: "6.21.3"
ARDUINO_JSON_VERSION: "6.21.5"
ESPTOOL_VERSION: "4.7"
LITTLEFS_VERSION: "v2.5.1"
MKLITTLEFS_VERSION: "3.1.0"
Expand Down
Binary file modified SomfyController.ino.esp32.bin
Binary file not shown.
Binary file modified SomfyController.ino.esp32s3.bin
Binary file not shown.
Binary file modified SomfyController.littlefs.bin
Binary file not shown.
2 changes: 2 additions & 0 deletions Web.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,8 @@ void Web::begin() {
server.on("/icons.css", []() { webServer.sendCacheHeaders(604800); webServer.handleStreamFile(server, "/icons.css", "text/css"); });
server.on("/favicon.png", []() { webServer.sendCacheHeaders(604800); webServer.handleStreamFile(server, "/favicon.png", "image/png"); });
server.on("/icon.png", []() { webServer.sendCacheHeaders(604800); webServer.handleStreamFile(server, "/icon.png", "image/png"); });
server.on("/icon.svg", []() { webServer.sendCacheHeaders(604800); webServer.handleStreamFile(server, "/icon.svg", "image/svg+xml"); });
server.on("/apple-icon.png", []() { webServer.sendCacheHeaders(604800); webServer.handleStreamFile(server, "/apple-icon.png", "image/png"); });
server.onNotFound([]() { webServer.handleNotFound(server); });
server.on("/controller", []() { webServer.handleController(server); });
server.on("/rooms", []() { webServer.handleGetRooms(server); });
Expand Down
Binary file added data/apple-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions data/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
107 changes: 107 additions & 0 deletions data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,117 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="ESPSomfy RTS App">
<meta name="apple-mobile-web-app-status-bar-style" content="black">

<link rel="stylesheet" href="main.css?v=2.4.2b" type="text/css" />
<link rel="stylesheet" href="widgets.css?v=2.4.2b" type="text/css" />
<link rel="stylesheet" href="icons.css?v=2.4.2b" type="text/css" />
<link rel="icon" type="image/png" href="favicon.png" />

<!-- iPad retina icon -->
<link href="apple-icon.png"
sizes="152x152"
rel="apple-touch-icon-precomposed">

<!-- iPad retina icon (iOS < 7) -->
<link href="apple-icon.png"
sizes="144x144"
rel="apple-touch-icon-precomposed">

<!-- iPad non-retina icon -->
<link href="apple-icon.png"
sizes="76x76"
rel="apple-touch-icon-precomposed">

<!-- iPad non-retina icon (iOS < 7) -->
<link href="apple-icon.png"
sizes="72x72"
rel="apple-touch-icon-precomposed">

<!-- iPhone 6 Plus icon -->
<link href="apple-icon.png"
sizes="120x120"
rel="apple-touch-icon-precomposed">

<!-- iPhone retina icon (iOS < 7) -->
<link href="apple-icon.png"
sizes="114x114"
rel="apple-touch-icon-precomposed">

<!-- iPhone non-retina icon (iOS < 7) -->
<link href="apple-icon.png"
sizes="57x57"
rel="apple-touch-icon-precomposed">

<link href="apple-icon.png"
media="(device-width: 768px) and (device-height: 1024px)
and (-webkit-device-pixel-ratio: 2)
and (orientation: portrait)"
rel="apple-touch-startup-image">

<!-- iPad retina landscape startup image -->
<link href="apple-icon.png"
media="(device-width: 768px) and (device-height: 1024px)
and (-webkit-device-pixel-ratio: 2)
and (orientation: landscape)"
rel="apple-touch-startup-image">

<!-- iPad non-retina portrait startup image -->
<link href="apple-icon.png"
media="(device-width: 768px) and (device-height: 1024px)
and (-webkit-device-pixel-ratio: 1)
and (orientation: portrait)"
rel="apple-touch-startup-image">

<!-- iPad non-retina landscape startup image -->
<link href="apple-icon.png"
media="(device-width: 768px) and (device-height: 1024px)
and (-webkit-device-pixel-ratio: 1)
and (orientation: landscape)"
rel="apple-touch-startup-image">

<!-- iPhone 6 Plus portrait startup image -->
<link href="apple-icon.png"
media="(device-width: 414px) and (device-height: 736px)
and (-webkit-device-pixel-ratio: 3)
and (orientation: portrait)"
rel="apple-touch-startup-image">

<!-- iPhone 6 Plus landscape startup image -->
<link href="apple-icon.png"
media="(device-width: 414px) and (device-height: 736px)
and (-webkit-device-pixel-ratio: 3)
and (orientation: landscape)"
rel="apple-touch-startup-image">

<!-- iPhone 6 startup image -->
<link href="apple-icon.png"
media="(device-width: 375px) and (device-height: 667px)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">

<!-- iPhone 5 startup image -->
<link href="apple-icon.png"
media="(device-width: 320px) and (device-height: 568px)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">

<!-- iPhone < 5 retina startup image -->
<link href="apple-icon.png"
media="(device-width: 320px) and (device-height: 480px)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">

<!-- iPhone < 5 non-retina startup image -->
<link href="apple-icon.png"
media="(device-width: 320px) and (device-height: 480px)
and (-webkit-device-pixel-ratio: 1)"
rel="apple-touch-startup-image">


<script type="text/javascript" src="index.js?v=2.4.2b"></script>
</head>
<body>
Expand Down

0 comments on commit 25c8a66

Please sign in to comment.