# SignalHub landing page: static build
A plain HTML, CSS and JavaScript site. No build step, no frameworks, no third-party requests. Fonts (Geist, Geist Mono) are self-hosted.
## What's in the folder
| Path | Purpose |
|---|---|
| `index.html` | The landing page: 15 screens, all content in the HTML so crawlers and AI assistants can read it |
| `assets/css/main.css` | Styles, including the fit-to-screen and phone layouts |
| `assets/js/theme.js` | Applies the saved theme before first paint; defaults to dark |
| `assets/js/main.js` | Live demo, menu, price tiers, install tabs, FAQ and fit-to-screen |
| `assets/fonts/` | Geist and Geist Mono variable fonts (SIL Open Font License) |
| `assets/og.png` | 1200 × 630 social sharing image |
| `robots.txt` | Allows all crawlers, names the AI search crawlers, links the sitemap |
| `sitemap.xml` | Home page and the docs pages |
| `llms.txt` | Short summary and links for AI assistants (llmstxt.org format) |
| `llms-full.txt` | Every fact on the page in plain text, including the 8 FAQs |
| `.well-known/security.txt` | RFC 9116 security contact. Expires 21 October 2027, so renew it before then |
| `humans.txt`, `site.webmanifest`, `favicon.*`, `icon-*.png`, `apple-touch-icon.png` | Credits, app manifest and icons |
| `404.html` | Not-found page |
| `.htaccess` | Apache: content types, redirects, security headers, caching, compression |
## Deploy to Apache (shared hosting or your own server)
1. Upload **the contents** of this folder to your web root (for example `public_html/`).
2. **Make sure the hidden items are uploaded too**: `.htaccess` and the `.well-known/` folder. Many FTP clients and file managers hide names that start with a dot. Turn on "show hidden files" before uploading.
3. Keep your existing `/docs/` folder next to `index.html`. The page, the sitemap and the llms files link to it.
4. Check these URLs in a browser:
- `https://signalhub.at/robots.txt`
- `https://signalhub.at/sitemap.xml`
- `https://signalhub.at/llms.txt` and `/llms-full.txt`
- `https://signalhub.at/.well-known/security.txt` (and `/security.txt`, which redirects there)
- `https://signalhub.at/anything-missing` shows the 404 page
The `.htaccess` needs `AllowOverride All` for the folder (most hosts have this on). On your own server, enable the modules once:
```bash
sudo a2enmod rewrite headers expires deflate mime
sudo systemctl reload apache2
```
### What the .htaccess does
- Serves `.txt` as `text/plain`, `.xml` as `application/xml` and `.webmanifest` as JSON, all UTF-8, so crawlers read them correctly.
- Redirects HTTP to HTTPS and `www.` to the bare domain. It honours `X-Forwarded-Proto` for hosts behind a proxy or CDN and leaves `/.well-known/acme-challenge/` alone so certificate renewal keeps working.
- Redirects `/security.txt` to `/.well-known/security.txt`.
- Blocks hidden files (`.git`, `.env`, `.htaccess`) while allowing `/.well-known/`.
- Adds security headers: a strict Content-Security-Policy (the page loads nothing from other sites), HSTS on HTTPS, `nosniff`, `DENY` framing and a referrer policy.
- Caches CSS, JS and fonts for a year (they carry a `?v=` version), and always revalidates HTML.
- Turns on gzip, and Brotli where the module exists.
### If you see "500 Internal Server Error"
Some shared hosts don't allow `Options` in `.htaccess`. Delete these three lines and reload:
```apache
Options -Indexes
```
If the error stays, your host may not allow `Header` or `Expires` either. Those blocks are wrapped in ``, so remove whichever block your host's error log names.
### Opening it on your computer
Double-click `index.html` and it opens in your browser with full styling, the live demo and both themes. All links inside the page are relative, so it works from disk as well as from a server. `localhost` is excluded from the HTTPS redirect, so a local Apache also works on plain HTTP.
## Other static hosts
- **Netlify or Cloudflare Pages**: upload the folder. They ignore `.htaccess`. Add the security headers in their own headers file if you want them; robots, sitemap, llms and security.txt work as they are.
- **Nginx**: the `.htaccess` doesn't apply. Copy its headers and the `/security.txt` redirect into your server block.
## Updating
- Change the copy in `index.html`, and keep `llms-full.txt` and the JSON-LD block at the top of `index.html` in step with it. The FAQ in the JSON-LD must match the visible FAQ word for word.
- After changing CSS or JS, bump `?v=20261021c` in `index.html` and `404.html` so browsers pick up the new files.
- Update `` in `sitemap.xml` when pages change.
- Renew `Expires` in `.well-known/security.txt` before 21 October 2027.
## How "one screen per section" works
Every section is exactly one window tall (minus the header). After fonts load, `main.js` measures each section. If the content is taller than the window, the content is scaled down until it fits: down to 62% on desktop and 80% on phones. Below that a section is allowed to grow instead, so text never becomes unreadable. Windows shorter than 520px, such as phones held sideways, scroll normally. On phones, some decorative duplicates are hidden (the hero status card, which appears in full on screen 03, and the price meter, which returns on screen 09), and wide card rows become swipeable.
Tested at 1920×1080, 1440×900, 1366×768, 1280×720, 1024×768, 768×1024, 390×844 and 360×740, in light and dark themes, on Apache 2.4 with this `.htaccess`.