Add web support

master
Özcan Oğuz 3 years ago
parent 7334bcc08f
commit 1d08cdb1d7
Signed by untrusted user: ooguz
GPG Key ID: 2D33E2BD3D975818
  1. 13
      web/index.html
  2. BIN
      web/splash/img/dark-1x.png
  3. BIN
      web/splash/img/dark-2x.png
  4. BIN
      web/splash/img/dark-3x.png
  5. BIN
      web/splash/img/light-1x.png
  6. BIN
      web/splash/img/light-2x.png
  7. BIN
      web/splash/img/light-3x.png
  8. 43
      web/splash/style.css

@ -1,3 +1,13 @@
<picture id="splash">
<source srcset="splash/img/light-1x.png 1x, splash/img/light-2x.png 2x, splash/img/light-3x.png 3x" media="(prefers-color-scheme: light) or (prefers-color-scheme: no-preference)">
<source srcset="splash/img/dark-1x.png 1x, splash/img/dark-2x.png 2x, splash/img/dark-3x.png 3x" media="(prefers-color-scheme: dark)">
<img class="center" src="splash/img/light-1x.png" />
</picture>
<picture id="splash">
<source srcset="splash/img/light-1x.png 1x, splash/img/light-2x.png 2x, splash/img/light-3x.png 3x" media="(prefers-color-scheme: light) or (prefers-color-scheme: no-preference)">
<source srcset="splash/img/dark-1x.png 1x, splash/img/dark-2x.png 2x, splash/img/dark-3x.png 3x" media="(prefers-color-scheme: dark)">
<img class="center" src="splash/img/light-1x.png" />
</picture>
<!DOCTYPE html>
<html>
<head>
@ -25,6 +35,7 @@
<title>ozgurkon_app</title>
<link rel="manifest" href="manifest.json">
<link rel="stylesheet" type="text/css" href="splash/style.css">
</head>
<body>
<!-- This script installs service_worker.js to provide PWA functionality to
@ -95,4 +106,4 @@
}
</script>
</body>
</html>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

@ -0,0 +1,43 @@
body, html {
margin:0;
height:100%;
background: #c03e24;
background-image: url("img/light-background.png");
background-size: 100% 100%;
}
.center {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.contain {
display:block;
width:100%; height:100%;
object-fit: contain;
}
.stretch {
display:block;
width:100%; height:100%;
}
.cover {
display:block;
width:100%; height:100%;
object-fit: cover;
}
@media (prefers-color-scheme: dark) {
body {
margin:0;
height:100%;
background: #c03e24;
background-image: url("img/dark-background.png");
background-size: 100% 100%;
}
}
Loading…
Cancel
Save