Initial qr webpage scaffold
This commit is contained in:
commit
c4afd3c253
4 changed files with 51 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
AGENTS.md
|
||||||
18
README.md
Normal file
18
README.md
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# qr
|
||||||
|
|
||||||
|
Static webpage intended to be hosted at:
|
||||||
|
|
||||||
|
```text
|
||||||
|
192.168.0.226:/var/www/html/qr
|
||||||
|
```
|
||||||
|
|
||||||
|
## Deploy
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./deploy.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
The deployment helper uses `rsync` and can be overridden with:
|
||||||
|
|
||||||
|
- `QR_DEPLOY_HOST` (default: `192.168.0.226`)
|
||||||
|
- `QR_DEPLOY_DEST` (default: `/var/www/html/qr`)
|
||||||
13
deploy.sh
Executable file
13
deploy.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
HOST="${QR_DEPLOY_HOST:-192.168.0.226}"
|
||||||
|
DEST="${QR_DEPLOY_DEST:-/var/www/html/qr}"
|
||||||
|
|
||||||
|
rsync -av --delete \
|
||||||
|
--exclude '.git/' \
|
||||||
|
--exclude 'AGENTS.md' \
|
||||||
|
--exclude '.DS_Store' \
|
||||||
|
./ "${HOST}:${DEST}/"
|
||||||
|
|
||||||
|
echo "Deployed to ${HOST}:${DEST}"
|
||||||
19
index.html
Normal file
19
index.html
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<title>QR</title>
|
||||||
|
<style>
|
||||||
|
:root { color-scheme: light dark; font-family: system-ui, sans-serif; }
|
||||||
|
body { margin: 0; min-height: 100vh; display: grid; place-items: center; }
|
||||||
|
main { text-align: center; padding: 2rem; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<h1>QR</h1>
|
||||||
|
<p>QR webpage placeholder.</p>
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue