Skip to content

Commit 2df4da5

Browse files
committed
First commit, started using version control
0 parents  commit 2df4da5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+40301
-0
lines changed

.env

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
NODE_PATH=src/
2+
GENERATE_SOURCEMAP=false

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/node_modules
2+
/build
3+
4+
.DS_Store
5+
.env.local
6+
.env.development.local
7+
.env.test.local
8+
.env.production.local
9+
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*

404.html

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
7+
<meta name="theme-color" content="#62809c" />
8+
<meta name="description" content="Page not found" />
9+
<meta name="author" content="Benjamin Swart" />
10+
<meta name="keywords" content="404, error" />
11+
<meta name="application-name" content="High-altitude Balloon Locator" />
12+
<meta name="color-scheme" content="dark light" />
13+
14+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
15+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
16+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
17+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
18+
19+
<title>Page not found | High-altitude Balloon Locator</title>
20+
21+
<style>
22+
html,
23+
body {
24+
width: 100%;
25+
height: 100%;
26+
margin: 0;
27+
}
28+
29+
body {
30+
background-color: black;
31+
color: white;
32+
display: flex;
33+
flex-direction: column;
34+
align-items: center;
35+
justify-content: center;
36+
}
37+
38+
h1 {
39+
margin: 0;
40+
font-size: 25vmin;
41+
font-family: monospace;
42+
}
43+
</style>
44+
</head>
45+
<body>
46+
<h1>404</h1>
47+
</body>
48+
</html>

LICENSE

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2021 Benjamin Swart
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.MD

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# High-altitude Balloon Locator
2+
3+
HAB Locator is a small React app that connects to the [habitat](http://habitat.habhub.org/) database maintained by [UKHAS](https://ukhas.org.uk/). It uses the GPS and compass of your device to show you the direction and distance to any balloon tracked in the database.
4+
5+
## Usage
6+
7+
The app is presently hosted at <https://hab-locator.appspot.com/>.
8+
9+
For the best user experience, use a **Chromium** browser like **Chrome** and **Opera**. **Brave** browser also works great, but you have to enable *Motion sensors* in *Site settings*. As far as I know, this setting cannot be changed on a site to site basis.
10+
11+
On **Safari**, compass access requires a button press. Such a button is provided for your convenience. It should be noted that Safari is the least tested of all mentioned browsers, since I'm not in possession of a device that Safari supports.
12+
13+
Lastly, **Firefox** provides no way for sites to access the device compass at all. If you want to use the app in Firefox, you will need a physical compass to calibrate north on each page load using the *Calibrate North* button.
14+
15+
## Local installation
16+
17+
This app is created using [Create React App](https://create-react-app.dev/). First, clone this repo, install [Node.js](https://nodejs.org/en/) and run the following command to install dependencies:
18+
19+
```
20+
npm i
21+
```
22+
23+
Then, use this command to build:
24+
25+
```
26+
npm run build
27+
```
28+
29+
Or this command to start a development server:
30+
31+
```
32+
npm start
33+
```
34+
35+
## License
36+
The source for this app is licensed under the [MIT](https://choosealicense.com/licenses/mit/) license. (This license is also sometimes called Expat.) All dependencies happen to use the exact same license.

jsconfig.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": "src"
4+
},
5+
"include": ["src"]
6+
}

0 commit comments

Comments
 (0)