-
Notifications
You must be signed in to change notification settings - Fork 0
/
offline.html
69 lines (62 loc) · 1.61 KB
/
offline.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Estas Offline</title>
<!-- Inline the page's stylesheet. -->
<style>
@font-face {
font-family: "titulo";
src: url(font/titulo.ttf);
}
@font-face {
font-family: "principal";
src: url(font/letra.ttf);
}
body {
margin: 2em;
background-color: #A82ACB;
}
h1 {
font-family: titulo;
color: #000000;
text-align: center;
}
p {
font-family: principal;
margin-block: 1rem;
text-align: center;
font-size: 30px;
}
button {
display: block;
margin: auto;
}
img{
display: block;
margin: auto;
}
@media screen and (max-width: 479px) {
img{
width: 256px;
height: 256px;
}
}
</style>
</head>
<body>
<img src="img/pwa/error-512x512.png" alt="imagen error">
<h1>Estás desconectado</h1>
<p>Haz clic en el botón para intentar recargar la pagina</p>
<button type="button">⤾ Recargar</button>
<!-- Inline the page's JavaScript file. -->
<script>
// Metodo de recarga manual.
document.querySelector("button").addEventListener("click", () => {
window.location.reload();
});
</script>
</body>
</html>