-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
290 lines (284 loc) · 12.6 KB
/
index.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Atmos Weather - A better weather app</title>
<link href="favicon.svg" rel="icon" type="image/x-icon" />
<!-- Font Imports -->
<style>
@font-face {
font-family: "Secular One";
src: url("SecularOne-Regular.ttf");
}
@font-face {
font-family: "Lexend Deca";
src: url("LexendDeca-VariableWeight.ttf");
}
</style>
<!-- Main Styling -->
<style>
body{
background-color: black;
color: white;
margin: 50px;
}
h1, h2{
font-family: Secular One;
}
h3, h4, h5, h6{
font-family: Lexend Deca;
}
h4{
font-size: 25px;
}
h1{
font-size: 50px;
}
h2{
font-size: 30px;
}
.downloadButton{
display: inline-block;
margin-right: 20px;
}
.gradient-title{
background: rgb(41,171,226);
background: linear-gradient(90deg, rgba(41,171,226,1) 0%, rgba(0,169,157,1) 100%);
color: transparent;
-webkit-background-clip: text;
background-clip: text;
}
@media (orientation: portrait) {
h4{
font-size: 50px;
}
img{
width: 75px;
}
}
.migration-header {
background: linear-gradient(90deg, rgba(41,171,226,1) 0%, rgba(0,169,157,1) 100%);
padding: 30px;
border-radius: 10px;
margin-bottom: 30px;
}
</style>
</head>
<body>
<img src="logo.svg" style="width: 400px;">
<h1 class="gradient-title">The future of weather alerts is here.</h1>
<h2>Atmos Weather is the ultimate lightweight weather forecast and alert app.<br>
Unlike other apps, it isn't bloated with ads and doesn't put profit before user experience.<br>
It's cross-platform, so you can get weather alerts on the go or at home.<br>
Best of all, it's 100% free.</h2>
<br>
<h2>Get the app</h2>
<h4>Latest Version</h4>
<h5>Automatically Download Best Version For Device</h5>
<a id="autodownload" href="platforms/browser/www/index.html" target="_blank" style="color:white;text-decoration: none;">
<div class="downloadButton">
<div id="autoDown" style="background-color: green;vertical-align: middle;display: flex;border:none;border-radius: 7px;cursor: pointer;">
<h4 style="display: inline;height: 100%;margin-left:20px;">Auto Download</h4>
<img src="webIcons/download.svg" style="margin-left:10px;margin-right:20px;">
</div>
</div>
</a>
<br><h5></h5>
<a href="www/index.html" target="_blank" style="color:white;text-decoration: none;">
<div class="downloadButton">
<div id="browserLaunch" style="background-color: gray;vertical-align: middle;display: flex;border:none;border-radius: 7px;cursor: pointer;">
<h4 style="display: inline;height: 100%;margin-left:5px;">Web Version</h4>
<img src="webIcons/browser.svg" style="margin-left:2.5px;margin-right:5px;">
</div>
<h6>Requires modern browser.<br>Limited features.</h6>
</div>
</a>
<a id="download-win_x64" target="_blank" style="color:white;text-decoration:none;">
<div class="downloadButton">
<div id="windowsDown" style="background-color: dodgerblue;vertical-align: middle;align-content: center; display: flex;border:none;border-radius: 7px;cursor: pointer;">
<h4 style="display: inline;height: 100%;margin-left:20px;">Windows</h4>
<img src="webIcons/windows.svg" style="margin-left:10px;margin-right:20px;">
</div>
<h6>Requires Windows 10 or above.<br>Unsigned.</h6>
</div>
</a>
<a id="download-android" target="_blank" style="color:white;text-decoration:none;">
<div class="downloadButton">
<div id="androidDown" style="background-color: limegreen;vertical-align: middle;align-content: center; display: flex;border:none;border-radius: 7px;cursor: pointer;">
<h4 style="display: inline;height: 100%;margin-left:20px;">Android</h4>
<img src="webIcons/android.svg" style="margin-left:10px;margin-right:20px;">
</div>
<h6>Requires Android 6 or above.<br>Uses sideloading.</h6>
</div>
</a>
<a href="https://github.com/atticuscornett/AtmosWeather" target="_blank" style="color:white;text-decoration: none;">
<div class="downloadButton">
<div id="githubView" style="background-color: rebeccapurple; vertical-align: middle;align-content: center; display: flex;border:none;border-radius: 7px;cursor: pointer;">
<h4 style="display: inline;height: 100%;margin-left:20px;">GitHub</h4>
<img src="webIcons/github.svg" style="margin-left:10px;margin-right:20px;">
</div>
<h6>View source on GitHub.<br> </h6>
</div>
</a>
<br>
<h3>macOS Builds</h3>
<h6>Intel-based Macs should use the x64 download. Apple Silicon Macs (such as those with the M1 chip) should use the ARM download.
<br><a href="https://support.apple.com/guide/mac-help/open-a-mac-app-from-an-unidentified-developer-mh40616/mac" target="_blank">Mac Installation Help</a>
</h6>
<a id="download-mac_x64" target="_blank" style="color:white;text-decoration:none;">
<div class="downloadButton">
<div id="macDown" style="background-color: blue;vertical-align: middle;align-content: center; display: flex;border:none;border-radius: 7px;cursor: pointer;">
<h4 style="display: inline;height: 100%;margin-left:20px;">macOS x64</h4>
<img src="webIcons/macos.svg" style="margin-left:10px;margin-right:20px;">
</div>
<h6>Unsigned and untested.</h6>
</div>
</a>
<a id="download-mac_arm64" target="_blank" style="color:white;text-decoration:none;">
<div class="downloadButton">
<div id="macDown2" style="background-color: blue;vertical-align: middle;align-content: center; display: flex;border:none;border-radius: 7px;cursor: pointer;">
<h4 style="display: inline;height: 100%;margin-left:20px;">macOS Silicon (arm64)</h4>
<img src="webIcons/macos.svg" style="margin-left:10px;margin-right:20px;">
</div>
<h6>Unsigned and untested.</h6>
</div>
</a>
<br>
<h3>Linux Builds</h3>
<h6>Deb builds are for Debian-based distros, such as Debian, Ubuntu, Linux Mint, and Raspberry Pi OS.</h6>
<a id="download-deb_x64" target="_blank" style="color:white;text-decoration:none;">
<div class="downloadButton">
<div id="linuxDown" style="background-color: purple;vertical-align: middle;align-content: center; display: flex;border:none;border-radius: 7px;cursor: pointer;">
<h4 style="display: inline;height: 100%;margin-left:20px;">Linux (deb) x64</h4>
<img src="webIcons/linux.svg" style="margin-left:10px;margin-right:20px;">
</div>
<h6>Unsigned and untested.<br>.deb x64</h6>
</div>
</a>
<a id="download-deb_arm64" target="_blank" style="color:white;text-decoration:none;">
<div class="downloadButton">
<div id="linuxDown2" style="background-color: purple;vertical-align: middle;align-content: center; display: flex;border:none;border-radius: 7px;cursor: pointer;">
<h4 style="display: inline;height: 100%;margin-left:20px;">Linux (deb) arm64</h4>
<img src="webIcons/linux.svg" style="margin-left:10px;margin-right:20px;">
</div>
<h6>Unsigned and untested.<br>.deb arm64</h6>
</div>
</a>
<a id="download-deb_armv7l" target="_blank" style="color:white;text-decoration:none;">
<div class="downloadButton">
<div id="linuxDown3" style="background-color: purple;vertical-align: middle;align-content: center; display: flex;border:none;border-radius: 7px;cursor: pointer;">
<h4 style="display: inline;height: 100%;margin-left:20px;">Linux (deb) armv7l</h4>
<img src="webIcons/linux.svg" style="margin-left:10px;margin-right:20px;">
</div>
<h6>Unsigned and untested.<br>.deb armv7l (32-bit RaspPi)</h6>
</div>
</a>
<a id="download-tar" target="_blank" style="color:white;text-decoration:none;">
<div class="downloadButton">
<div id="linuxDown4" style="background-color: peru;vertical-align: middle;align-content: center; display: flex;border:none;border-radius: 7px;cursor: pointer;">
<h4 style="display: inline;height: 100%;margin-left:20px;">Linux .tar.gz</h4>
<img src="webIcons/zip.svg" style="margin-left:10px;margin-right:20px;">
</div>
<h6>Unsigned and untested.<br> </h6>
</div>
</a>
<br><br>
<h3>Having trouble installing? Check out our <a href="https://github.com/atticuscornett/AtmosWeather/blob/main/INSTALLATION.md" target="_blank">installation help document.</a></h3>
<br>
<h4>Want to download the version made for the Congressional App Challenge?</h4>
<h5><a href="https://github.com/atticuscornett/AtmosWeather/releases/download/v1.0.0/atmos-weather-windows.exe" target="_blank" style="color:white;">Windows</a> <a href="https://github.com/atticuscornett/AtmosWeather/releases/download/v1.0.0/atmos-weather-android.apk" target="_blank" style="color:white;">Android</a> <a href="https://atticuscornett.github.io/AtmosWeather/congressional-app-challenge/www/index.html" target="_blank" style="color:white;">Web Preview</a></h5>
<br>
<br><br>
<h1 class="gradient-title">Total Control</h1>
<h2>Atmos lets you control everything about weather alerts.<br>Recieve weather alerts for multiple locations? Done.<br>Choose which types of alerts you get? Done.<br>Dyanamic alerting based on when you are driving? Done.</h2>
<br><br><br><br>
<h1 class="gradient-title">Better Alerts</h1>
<h2>Classic weather alerts are text only.<br>Atmos provides maps so you can get the full picture<br>and understand the storms.</h2>
<br><br><br><br>
<h1 class="gradient-title">Desktop + Mobile</h1>
<h2>Most weather apps only provide active alerts on mobile.<br>Atmos provides weather alerts on desktop and mobile,<br> so you never miss an alert.</h2>
<br><br><br><br>
<h1 class="gradient-title">Reliable Data</h1>
<h2>Atmos directly uses the National Weather Service API.<br>Rest assured, you are getting reliable data from<br>the nation's top weather agency.</h2>
<br><br><br><br>
<h1 class="gradient-title">Free + Lightweight</h1>
<h2>No ads, no subscription, and no bloatware.<br>How do we achieve this?<br>Atmos relies on free services and APIs, so there are no server costs.<br>It is maintained by volunteers.<br>No cost to us = No cost to you.</h2>
<br><br><br><br>
<h1 class="gradient-title">Privacy Focused</h1>
<h2>Atmos doesn't track you or sell your data.<br>No accounts, no tracking, no analytics.<br>Check out our <a href="https://atticuscornett.github.io/AtmosWeather/privacy.html" target="_blank">privacy policy</a> for more information.</h2>
<script>
let releaseVersions = {};
let getLatestRelease = async () => {
let latestRelease = await fetch("https://api.github.com/repos/atticuscornett/AtmosWeather/releases/latest");
latestRelease = await latestRelease.json();
let releaseAssets = latestRelease.assets;
console.log(releaseAssets)
// Sort assets by type and architecture
for (let i = 0; i < releaseAssets.length; i++){
let thisAsset = releaseAssets[i];
if (thisAsset.name.endsWith(".exe")){
releaseVersions["win_x64"] = thisAsset;
}
else if (thisAsset.name.endsWith(".apk")){
releaseVersions["android"] = thisAsset;
}
else if (thisAsset.name.endsWith("arm64.dmg") || thisAsset.name.endsWith("silicon.dmg")){
releaseVersions["mac_arm64"] = thisAsset;
}
else if (thisAsset.name.endsWith(".dmg")){
releaseVersions["mac_x64"] = thisAsset;
}
else if (thisAsset.name.endsWith(".tar.gz")){
releaseVersions["tar"] = thisAsset;
}
else if (thisAsset.name.endsWith("amd64.deb")){
releaseVersions["deb_x64"] = thisAsset;
}
else if (thisAsset.name.endsWith("armv7l.deb")){
releaseVersions["deb_armv7l"] = thisAsset;
}
else if (thisAsset.name.endsWith("arm64.deb")){
releaseVersions["deb_arm64"] = thisAsset;
}
}
for (let key in releaseVersions){
let thisAsset = releaseVersions[key];
let downloadButton = document.getElementById("download-" + key);
downloadButton.setAttribute("href", thisAsset.browser_download_url);
}
document.getElementById("autodownload").setAttribute("href", releaseVersions[getBestDownload()].browser_download_url);
}
function getBestDownload(){
var nav = window.navigator.userAgent.toLocaleLowerCase();
if (nav.includes("win")){
return "win_x64";
}
else if (nav.includes("android") || navigator.platform.includes("Android")){
return "android";
}
else if (nav.includes("mac") || navigator.platform.includes("Mac")){
if (nav.includes("arm")){
return "mac_arm64";
}
else{
return "mac_x64";
}
}
else{
if (nav.includes("arm")){
if (nav.includes("armv7l")){
return "deb_armv7l";
}
else{
return "deb_arm64";
}
}
else{
return "deb_x64";
}
}
}
getLatestRelease();
</script>
</body>
</html>