| 1 |
<!doctype html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<meta charset="UTF-8" /> |
| 5 |
<title>ntfy web</title> |
| 6 |
|
| 7 |
<!-- Mobile view --> |
| 8 |
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" /> |
| 9 |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
| 10 |
<meta name="HandheldFriendly" content="true" /> |
| 11 |
|
| 12 |
<!-- Mobile browsers, background color --> |
| 13 |
<meta name="theme-color" content="#317f6f" /> |
| 14 |
<meta name="msapplication-navbutton-color" content="#317f6f" /> |
| 15 |
<meta name="apple-mobile-web-app-status-bar-style" content="#317f6f" /> |
| 16 |
<link rel="apple-touch-icon" href="/static/images/apple-touch-icon.png" sizes="180x180" /> |
| 17 |
<link rel="mask-icon" href="/static/images/ntfy-mask.svg" color="#317f6f" /> |
| 18 |
|
| 19 |
<!-- Favicon, see favicon.io --> |
| 20 |
<link rel="icon" type="image/png" href="/static/images/favicon.ico" /> |
| 21 |
|
| 22 |
<!-- Previews in Google, Slack, WhatsApp, etc. --> |
| 23 |
<meta |
| 24 |
name="description" |
| 25 |
content="ntfy lets you send push notifications via scripts from any computer or phone. Made with ❤ by Philipp C. Heckel, Apache License 2.0, source at https://heckel.io/ntfy." |
| 26 |
/> |
| 27 |
<meta property="og:type" content="website" /> |
| 28 |
<meta property="og:locale" content="en_US" /> |
| 29 |
<meta property="og:site_name" content="ntfy web" /> |
| 30 |
<meta property="og:title" content="ntfy web" /> |
| 31 |
<meta |
| 32 |
property="og:description" |
| 33 |
content="ntfy lets you send push notifications via scripts from any computer or phone. Made with ❤ by Philipp C. Heckel, Apache License 2.0, source at https://heckel.io/ntfy." |
| 34 |
/> |
| 35 |
<meta property="og:image" content="/static/images/ntfy.png" /> |
| 36 |
<meta property="og:url" content="https://ntfy.sh" /> |
| 37 |
|
| 38 |
<!-- Never index --> |
| 39 |
<meta name="robots" content="noindex, nofollow" /> |
| 40 |
|
| 41 |
<!-- Style overrides & fonts --> |
| 42 |
<link rel="stylesheet" href="/static/css/app.css" type="text/css" /> |
| 43 |
<link rel="stylesheet" href="/static/css/fonts.css" type="text/css" /> |
| 44 |
|
| 45 |
<!-- PWA --> |
| 46 |
<link rel="manifest" href="/manifest.webmanifest" /> |
| 47 |
|
| 48 |
<!-- Splash: painted before the JS bundle loads, faded out by the app once ready (see |
| 49 |
src/app/splash.js). Background matches MUI's grey[100]/grey[900] for a seamless handoff. --> |
| 50 |
<style> |
| 51 |
html { |
| 52 |
background-color: #f5f5f5; |
| 53 |
} |
| 54 |
|
| 55 |
html.dark { |
| 56 |
background-color: #212121; |
| 57 |
} |
| 58 |
|
| 59 |
#splash { |
| 60 |
position: fixed; |
| 61 |
inset: 0; |
| 62 |
z-index: 200000; |
| 63 |
display: flex; |
| 64 |
align-items: center; |
| 65 |
justify-content: center; |
| 66 |
background-color: #f5f5f5; |
| 67 |
opacity: 1; |
| 68 |
/* Background fade = the app fading in once the logo is gone (see src/app/splash.js). */ |
| 69 |
transition: opacity 0.1s ease-out; |
| 70 |
} |
| 71 |
|
| 72 |
html.dark #splash { |
| 73 |
background-color: #212121; |
| 74 |
} |
| 75 |
|
| 76 |
#splash.splash-hidden { |
| 77 |
opacity: 0; |
| 78 |
pointer-events: none; |
| 79 |
} |
| 80 |
|
| 81 |
#splash img { |
| 82 |
width: 112px; |
| 83 |
height: 112px; |
| 84 |
/* Gently pulse while loading; src/app/splash.js stops this and fades the logo out. */ |
| 85 |
animation: splash-pulse 1.4s ease-in-out infinite; |
| 86 |
} |
| 87 |
|
| 88 |
@keyframes splash-pulse { |
| 89 |
0%, |
| 90 |
100% { |
| 91 |
opacity: 1; |
| 92 |
} |
| 93 |
50% { |
| 94 |
opacity: 0.35; |
| 95 |
} |
| 96 |
} |
| 97 |
|
| 98 |
@media (prefers-reduced-motion: reduce) { |
| 99 |
#splash { |
| 100 |
transition: none; |
| 101 |
} |
| 102 |
|
| 103 |
#splash img { |
| 104 |
animation: none; |
| 105 |
} |
| 106 |
} |
| 107 |
</style> |
| 108 |
|
| 109 |
<!-- Decide light/dark before first paint from the "prefcache" blob (written by PrefCache.jsx) -- |
| 110 |
avoids the async-IndexedDB theme flash. Keep the key in sync with PrefCache.jsx. --> |
| 111 |
<script> |
| 112 |
(function () { |
| 113 |
try { |
| 114 |
var cache = JSON.parse(localStorage.getItem("prefcache")); |
| 115 |
var theme = cache && cache.theme; |
| 116 |
var prefersDark = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches; |
| 117 |
var dark = theme === "dark" || ((!theme || theme === "system") && prefersDark); |
| 118 |
if (dark) { |
| 119 |
document.documentElement.classList.add("dark"); |
| 120 |
} |
| 121 |
} catch (e) { |
| 122 |
/* localStorage/matchMedia/JSON unavailable -- fall back to the default light splash */ |
| 123 |
} |
| 124 |
})(); |
| 125 |
</script> |
| 126 |
</head> |
| 127 |
<body> |
| 128 |
<noscript> |
| 129 |
ntfy web requires JavaScript, but you can also use the |
| 130 |
<a href="https://ntfy.sh/docs/subscribe/cli/">CLI</a> or <a href="https://ntfy.sh/docs/subscribe/phone/">Android/iOS app</a> to |
| 131 |
subscribe. |
| 132 |
</noscript> |
| 133 |
|
| 134 |
<!-- Static splash, removed by src/app/splash.js once ready. Logo is a same-origin SVG (precached by the SW). --> |
| 135 |
<div id="splash" aria-hidden="true"> |
| 136 |
<img src="/static/images/ntfy-splash.svg" alt="" /> |
| 137 |
</div> |
| 138 |
<div id="root"></div> |
| 139 |
<script src="/config.js"></script> |
| 140 |
<script type="module" src="/src/index.jsx"></script> |
| 141 |
</body> |
| 142 |
</html> |