lightweight, client-only calendar web application. All data persists in the URL hash for instant sharing, No backend required. Optional AES-GCM password protection keeps shared links locked without a server
JavaScript
feat: Introduce new informational pages, community guidelines, and a custom 404 page.
Supun Lakmalefd684da9492
diff --git a/404.html b/404.htmlnew file mode 100644index 0000000..a7b3dac--- /dev/null+++ b/404.html@@ -0,0 +1,243 @@+<!DOCTYPE html>+<html lang="en">++<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>404 - Page not found | hash-calendar</title>+ <meta name="description"+ content="The page you requested could not be found. Return to hash-calendar and continue planning.">+ <meta name="robots" content="noindex,follow">+ <link rel="icon" href="favicon.ico" type="image/x-icon">+ <link rel="icon" href="favicon.png" type="image/png" sizes="32x32">+ <link rel="apple-touch-icon" href="apple-touch-icon.png" sizes="180x180">+ <link rel="preconnect" href="https://fonts.googleapis.com">+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+ <link+ href="https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Space+Grotesk:wght@400;500;600&display=swap"+ rel="stylesheet">+ <style>+ :root {+ color-scheme: light;+ /* Base colors */+ --bg-primary: #f6f6f4;+ --bg-secondary: #ffffff;+ --text-primary: #1f1f1f;+ --text-secondary: #5e5e5b;+ --text-muted: #8a8a87;++ /* Accent colors */+ --accent-primary: #0f6fbf;+ --accent-hover: #0d5a9f;+ --accent-light: #e9f3fc;++ /* Borders & dividers */+ --border-color: #e7e6e0;+ --border-subtle: #f0efea;++ /* Gradients */+ --gradient-blue: radial-gradient(1200px 700px at 12% -10%, #dde9f7 0%, transparent 50%);+ --gradient-green: radial-gradient(1100px 700px at 100% 110%, #e7efe3 0%, transparent 48%);+ }++ * {+ box-sizing: border-box;+ }++ body {+ margin: 0;+ min-height: 100vh;+ padding: 24px;+ font-family: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", sans-serif;+ color: var(--text-primary);+ background: var(--gradient-blue), var(--gradient-green), var(--bg-primary);+ }++ .wrap {+ width: min(1040px, 100%);+ margin: 0 auto;+ }++ .topbar {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+ margin-bottom: 30px;+ flex-wrap: wrap;+ }++ .card {+ max-width: 760px;+ margin: 0 auto;+ border: 1px solid var(--border-color);+ border-radius: 18px;+ padding: 32px;+ background: var(--bg-secondary);+ box-shadow: 0 20px 44px rgba(0, 0, 0, 0.08);+ transition: box-shadow 300ms ease;+ }++ .card:hover {+ box-shadow: 0 24px 52px rgba(0, 0, 0, 0.12);+ }++ .brand {+ display: flex;+ align-items: center;+ gap: 12px;+ text-decoration: none;+ color: inherit;+ transition: transform 150ms ease;+ }++ .brand:hover {+ transform: translateY(-2px);+ }++ .brand img {+ width: 42px;+ height: 42px;+ border-radius: 10px;+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);+ }++ .brand span {+ font-family: 'Fraunces', serif;+ font-size: 1.25rem;+ font-weight: 700;+ letter-spacing: 0.02em;+ }++ .code {+ margin: 28px 0 12px;+ font-family: 'Fraunces', serif;+ font-size: clamp(2.4rem, 6vw, 3.4rem);+ font-weight: 700;+ line-height: 1.05;+ letter-spacing: 0.02em;+ background: linear-gradient(135deg, var(--accent-primary), #1769aa);+ -webkit-background-clip: text;+ -webkit-text-fill-color: transparent;+ background-clip: text;+ }++ h1 {+ margin: 0 0 12px;+ font-family: 'Fraunces', serif;+ font-size: clamp(1.4rem, 3.4vw, 1.95rem);+ font-weight: 700;+ line-height: 1.2;+ }++ p {+ margin: 0;+ color: var(--text-secondary);+ line-height: 1.65;+ }++ .path {+ margin-top: 18px;+ padding: 12px 14px;+ border-radius: 10px;+ border: 1px dashed var(--border-color);+ background: #fafaf7;+ font-size: 0.92rem;+ color: var(--text-primary);+ overflow-wrap: anywhere;+ font-family: ui-monospace, monospace;+ }++ .actions {+ margin-top: 24px;+ display: flex;+ flex-wrap: wrap;+ gap: 10px;+ }++ .btn {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ text-decoration: none;+ border-radius: 10px;+ border: 1px solid var(--border-color);+ padding: 11px 16px;+ font-weight: 600;+ color: var(--text-primary);+ background: var(--bg-secondary);+ transition: all 150ms ease;+ }++ .btn:hover {+ transform: translateY(-1px);+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);+ border-color: #d4d4ce;+ }++ .btn.primary {+ border-color: var(--accent-primary);+ background: var(--accent-primary);+ color: #fff;+ }++ .btn.primary:hover {+ background: var(--accent-hover);+ border-color: var(--accent-hover);+ }++ @media (max-width: 560px) {+ .card {+ padding: 26px 20px;+ }++ .code {+ margin: 22px 0 10px;+ }+ }+ </style>+</head>++<body>+ <div class="wrap">+ <header class="topbar">+ <a class="brand" href="./" aria-label="Open hash-calendar">+ <img src="logo.png" alt="hash-calendar logo">+ <span>hash-calendar</span>+ </a>+ <div class="actions">+ <a class="btn primary" href="./">Open app</a>+ <a class="btn" href="./help.html">Help</a>+ <a class="btn" href="./about.html">About</a>+ <a class="btn" href="./faq.html">FAQ</a>+ <a class="btn" href="./privacy.html">Privacy</a>+ <a class="btn" href="./json.html">JSON bridge</a>+ </div>+ </header>++ <main class="card" role="main">+ <div class="code">404</div>+ <h1>This page does not exist</h1>+ <p>The link may be broken, moved, or mistyped. Use the actions below to return to the app.</p>+ <p id="missing-path" class="path" aria-live="polite"></p>++ <div class="actions">+ <a class="btn primary" href="./">Open calendar</a>+ <a class="btn" href="./json.html">Open JSON bridge</a>+ <a class="btn" href="https://github.com/supunlakmal/hash-calendar" target="_blank" rel="noopener">View+ GitHub</a>+ </div>+ </main>+ </div>++ <script>+ (function () {+ const pathEl = document.getElementById("missing-path");+ if (!pathEl) return;+ const requestedPath = (window.location.pathname || "/") + (window.location.search || "");+ pathEl.textContent = "Requested: " + requestedPath;+ })();+ </script>+</body>++</html>\ No newline at end of filediff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.mdnew file mode 100644index 0000000..6cd2738--- /dev/null+++ b/CODE_OF_CONDUCT.md@@ -0,0 +1,42 @@+# Code of Conduct++## Our commitment++We are committed to providing a welcoming, respectful, and harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity or expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.++## Expected behavior++- Be respectful and constructive.+- Assume good intent, but give clear technical feedback.+- Focus criticism on ideas and implementation, not people.+- Help keep discussions useful and on topic.++## Unacceptable behavior++- Harassment, hate speech, or personal attacks+- Trolling, insulting, or derogatory comments+- Public or private harassment+- Publishing others' private information without permission+- Any conduct that is inappropriate in a professional setting++## Enforcement responsibilities++Project maintainers are responsible for clarifying and enforcing this Code of Conduct. They may remove, edit, or reject comments, commits, code, issues, and other contributions that are not aligned with this policy.++## Scope++This Code of Conduct applies within all project spaces, including issues, pull requests, discussions, and related community channels.++## Enforcement++If you experience or witness unacceptable behavior, contact the maintainers via project issue tracker or GitHub profile contact options.++All complaints will be reviewed and investigated fairly and in a timely manner. Maintainers will respect reporter privacy as much as possible.++## Consequences++Maintainers may take actions they consider appropriate, including warnings, temporary restrictions, or permanent bans from project spaces.++## Attribution++This document is inspired by the Contributor Covenant and adapted for this project.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdnew file mode 100644index 0000000..c44e0eb--- /dev/null+++ b/CONTRIBUTING.md@@ -0,0 +1,71 @@+# Contributing to hash-calendar++Thanks for your interest in improving `hash-calendar`.++## Before you start++- Read `README.md` for architecture and current behavior.+- Check existing issues and open PRs to avoid duplicate work.+- For bugs, include clear reproduction steps.++## Development setup++Run locally with a static server:++```bash+npx serve .+```++Or:++```bash+python -m http.server 8080+```++Docker option:++```bash+docker compose up --build+```++## Project principles++Please keep changes aligned with core project goals:++- Privacy-first behavior.+- Client-only architecture (no server-side calendar storage).+- URL-hash compatibility and shareability.+- Backward compatibility where practical.++## How to contribute++1. Fork the repo and create a feature branch.+2. Keep PRs focused and reasonably small.+3. Update docs when behavior changes.+4. Add or update tests when relevant.+5. Open a pull request with:+ - What changed+ - Why it changed+ - How to verify it++## Pull request checklist++- Code is readable and consistent with existing style.+- No accidental breaking changes to existing links/state format.+- Mobile and desktop behavior both checked for UI changes.+- Related docs updated (`README.md`, help/privacy/about pages).++## Reporting issues++When opening an issue, include:++- Expected behavior+- Actual behavior+- Browser and OS+- Steps to reproduce+- Screenshots or sample URLs when possible++## Security issues++Please do not report security vulnerabilities in public issues.+See `SECURITY.md` for the reporting process.diff --git a/Dockerfile b/Dockerfileindex cff6f88..b9ff4b7 100644--- a/Dockerfile+++ b/Dockerfile@@ -3,11 +3,11 @@ FROM node:18-alpine AS baseWORKDIR /app-# Copy only the necessary files for serving-COPY index.html styles.css script.js sw.js manifest.json ./+# Copy only the necessary files for serving+COPY index.html json.html 404.html privacy.html help.html about.html styles.css script.js sw.js manifest.json ./COPY modules/ ./modules/COPY demo/ ./demo/-COPY logo.png favicon.ico apple-touch-icon.png ./+COPY logo.png favicon.ico favicon.png apple-touch-icon.png ./COPY robots.txt sitemap.xml sitemap.txt ./# Use a lightweight web server to serve static filesdiff --git a/README.md b/README.mdindex a536a1c..6529c33 100644--- a/README.md+++ b/README.md@@ -47,7 +47,7 @@ GitHub: https://github.com/supunlakmal/hash-calendar- View/copy JSON and raw hash from modal- Export JSON- Import `.ics` (supports daily/weekly/monthly/yearly RRULE frequency mapping)-- One-time import from readable URL path or hash-path, then auto-save to compressed hash+- One-time import from hash-path URLs, then auto-save to compressed hash### Timezone tools@@ -125,27 +125,26 @@ Default ports are `80` and `443` (override with `HOST_PORT_HTTP` / `HOST_PORT_HTUse `json.html` to pass JSON payloads via query params (`json`, `data`, `state`, `payload`) and auto-redirect to a compressed hash URL.-## Direct-link event creation (readable URL paths)+## Direct-link event creation (hash-path URLs)-You can create events directly from the URL path. The app parses readable paths from either:+You can create events directly from hash-path URLs. Use a hash-path beginning with `/`, for example:-- `window.location.pathname` (e.g. `/2025/12/25/10/30/Open-Presents`)-- A hash-path beginning with `/` (e.g. `#/2025/12/25/10/30/Open-Presents`)+- `#/2025/12/25/10/30/Open-Presents`Supported patterns:| Pattern | Scenario | Example || :-- | :-- | :-- |-| `YYYY/MM/DD/HH/mm/Title` | Full precision | `/2025/12/25/10/30/Open-Presents` |-| `YYYY/MM/DD/Title` | All-day | `/2025/12/25/Christmas-Day` |-| `YYYY/MM/DD/HH/mm+Minutes/Title` | Timed with explicit duration | `/2025/12/25/10/00+90/Family-Brunch` |-| `Event1,Event2` | Multi-event in one link | `/2025/01/01/Gym,2025/01/01/10/00/Clean` |+| `YYYY/MM/DD/HH/mm/Title` | Full precision | `#/2025/12/25/10/30/Open-Presents` |+| `YYYY/MM/DD/Title` | All-day | `#/2025/12/25/Christmas-Day` |+| `YYYY/MM/DD/HH/mm+Minutes/Title` | Timed with explicit duration | `#/2025/12/25/10/00+90/Family-Brunch` |+| `Event1,Event2` | Multi-event in one link | `#/2025/01/01/Gym,2025/01/01/10/00/Clean` |Behavior notes:- URL segments are decoded (`decodeURIComponent`), and dashes in titles become spaces.- If title is missing, it falls back to `New Event (URL)`.-- Parsed events are appended once, then the readable path is cleaned and state is persisted as the normal compressed URL hash.+- Parsed events are appended once, then the hash-path is cleaned and state is persisted as the normal compressed URL hash.## How it worksdiff --git a/SECURITY.md b/SECURITY.mdnew file mode 100644index 0000000..b652740--- /dev/null+++ b/SECURITY.md@@ -0,0 +1,42 @@+# Security Policy++## Supported versions++Security updates are applied to the `main` branch.++| Version | Supported |+| --- | --- |+| `main` | Yes |+| Older snapshots/forks | No |++## Reporting a vulnerability++Please report security vulnerabilities privately.++- Preferred: GitHub Security Advisory+ - https://github.com/supunlakmal/hash-calendar/security/advisories/new+- If advisory reporting is unavailable, open a private contact request through GitHub profile channels.++Please do not post exploit details in public issues.++## What to include in a report++- Affected component(s)+- Reproduction steps or proof of concept+- Impact assessment (confidentiality/integrity/availability)+- Suggested mitigation (if known)++## Response process++- Initial triage target: within 7 days+- If confirmed, a fix will be prepared and coordinated for disclosure+- Credit will be given unless you request anonymity++## Scope notes for this project++`hash-calendar` is a client-only app with URL-hash state. Security-relevant areas include:++- Encryption/decryption behavior+- URL hash parsing/handling+- Data import parsing (`.ics`, JSON bridge)+- Third-party script loading and integrationdiff --git a/about.html b/about.htmlnew file mode 100644index 0000000..1abc6ec--- /dev/null+++ b/about.html@@ -0,0 +1,323 @@+<!DOCTYPE html>+<html lang="en">++<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>About | hash-calendar</title>+ <meta name="description"+ content="About hash-calendar: project purpose, trust signals, maintainer details, and useful links.">+ <meta name="robots" content="index,follow">+ <link rel="canonical" href="https://hash-calendar.netlify.app/about.html">+ <link rel="icon" href="favicon.ico" type="image/x-icon">+ <link rel="icon" href="favicon.png" type="image/png" sizes="32x32">+ <link rel="apple-touch-icon" href="apple-touch-icon.png" sizes="180x180">+ <link rel="preconnect" href="https://fonts.googleapis.com">+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+ <link+ href="https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Space+Grotesk:wght@400;500;600&display=swap"+ rel="stylesheet">+ <style>+ :root {+ color-scheme: light;+ /* Base colors */+ --bg-primary: #f6f6f4;+ --bg-secondary: #ffffff;+ --text-primary: #1f1f1f;+ --text-secondary: #5e5e5b;+ --text-muted: #8a8a87;++ /* Accent colors */+ --accent-primary: #0f6fbf;+ --accent-hover: #0d5a9f;+ --accent-light: #e9f3fc;++ /* Borders & dividers */+ --border-color: #e7e6e0;+ --border-subtle: #f0efea;++ /* Status colors */+ --success-bg: #edf5e7;+ --success-border: #d8e7cb;+ --success-text: #2f5f30;++ /* Gradients */+ --gradient-blue: radial-gradient(1100px 640px at 8% -18%, #e9f2fb 0%, transparent 45%);+ --gradient-green: radial-gradient(960px 620px at 100% 110%, #e8f2e0 0%, transparent 44%);+ }++ * {+ box-sizing: border-box;+ }++ body {+ margin: 0;+ font-family: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;+ color: var(--text-primary);+ line-height: 1.62;+ background: var(--gradient-blue), var(--gradient-green), var(--bg-primary);+ }++ .wrap {+ width: min(980px, 100%);+ margin: 0 auto;+ padding: 28px 18px 44px;+ }++ .topbar {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+ margin-bottom: 20px;+ flex-wrap: wrap;+ }++ .brand {+ display: inline-flex;+ align-items: center;+ gap: 10px;+ color: inherit;+ text-decoration: none;+ font-weight: 700;+ letter-spacing: 0.02em;+ font-family: 'Fraunces', serif;+ transition: transform 150ms ease;+ }++ .brand:hover {+ transform: translateY(-1px);+ }++ .brand img {+ width: 34px;+ height: 34px;+ border-radius: 8px;+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);+ }++ .actions {+ display: flex;+ gap: 8px;+ flex-wrap: wrap;+ }++ .btn {+ border: 1px solid var(--border-color);+ background: var(--bg-secondary);+ color: var(--text-primary);+ text-decoration: none;+ border-radius: 10px;+ padding: 10px 16px;+ font-weight: 600;+ font-size: 0.92rem;+ transition: all 150ms ease;+ }++ .btn:hover {+ transform: translateY(-1px);+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);+ border-color: #d4d4ce;+ }++ .btn.primary {+ border-color: var(--accent-primary);+ background: var(--accent-primary);+ color: #fff;+ }++ .btn.primary:hover {+ background: var(--accent-hover);+ border-color: var(--accent-hover);+ }++ .card {+ background: var(--bg-secondary);+ border: 1px solid var(--border-color);+ border-radius: 16px;+ padding: 28px 24px;+ box-shadow: 0 16px 34px rgba(0, 0, 0, 0.06);+ transition: box-shadow 200ms ease;+ }++ h1 {+ margin: 0 0 6px;+ font-size: clamp(1.6rem, 4vw, 2.1rem);+ line-height: 1.2;+ font-family: 'Fraunces', serif;+ font-weight: 700;+ }++ .updated {+ margin: 0 0 20px;+ color: var(--text-secondary);+ font-size: 0.94rem;+ }++ h2 {+ margin: 28px 0 12px;+ font-size: 1.2rem;+ font-family: 'Fraunces', serif;+ font-weight: 700;+ border-left: 4px solid var(--accent-primary);+ padding-left: 12px;+ }++ p {+ margin: 0 0 12px;+ }++ ul {+ margin: 0 0 14px 20px;+ padding: 0;+ }++ li {+ margin: 0 0 8px;+ }++ .signal {+ margin: 12px 0 16px;+ padding: 12px 14px;+ border: 1px solid var(--success-border);+ border-radius: 10px;+ background: var(--success-bg);+ color: var(--success-text);+ font-size: 0.95rem;+ position: relative;+ padding-left: 40px;+ }++ .signal::before {+ content: '🔒';+ position: absolute;+ left: 14px;+ top: 12px;+ font-size: 1.2rem;+ }++ .links {+ display: grid;+ gap: 10px;+ margin-top: 10px;+ }++ .link-row {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 10px;+ border: 1px solid var(--border-color);+ border-radius: 10px;+ background: var(--bg-secondary);+ padding: 12px 14px;+ transition: all 150ms ease;+ }++ .link-row:hover {+ transform: translateY(-1px);+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);+ border-color: #d4d4ce;+ }++ .k {+ color: var(--text-secondary);+ font-size: 0.9rem;+ font-weight: 500;+ }++ a {+ color: var(--accent-primary);+ font-weight: 600;+ text-decoration: none;+ transition: color 150ms ease;+ }++ a:hover {+ color: var(--accent-hover);+ text-decoration: underline;+ }++ @media (max-width: 640px) {+ .card {+ padding: 24px 18px;+ }++ .link-row {+ flex-direction: column;+ align-items: flex-start;+ }+ }+ </style>+</head>++<body>+ <div class="wrap">+ <header class="topbar">+ <a class="brand" href="./" aria-label="Open hash-calendar">+ <img src="logo.png" alt="hash-calendar logo">+ <span>hash-calendar</span>+ </a>+ <div class="actions">+ <a class="btn primary" href="./">Open app</a>+ <a class="btn" href="./help.html">Help</a>+ <a class="btn" href="./faq.html">FAQ</a>+ <a class="btn" href="./privacy.html">Privacy</a>+ <a class="btn" href="./json.html">JSON bridge</a>+ </div>+ </header>++ <main class="card">+ <h1>About hash-calendar</h1>+ <p class="updated">Last updated: February 12, 2026</p>++ <h2>Project Purpose</h2>+ <p>+ hash-calendar is a privacy-first, client-only calendar designed for fast sharing without accounts. It keeps+ calendar state in the URL hash so you can share a schedule by sharing a link.+ </p>++ <h2>Trust Signals</h2>+ <ul>+ <li>No account required.</li>+ <li>No server-side calendar database.</li>+ <li>URL hash data is not sent in standard HTTP requests.</li>+ <li>Optional password-based encrypted links are supported.</li>+ <li>Open-source project under the MIT license.</li>+ </ul>+ <p class="signal">+ This app is intended for convenience and privacy, but shared links are still sensitive. Treat calendar links+ like private data.+ </p>++ <h2>Maintainer</h2>+ <p>+ Maintained by <strong>Supun Lakmal</strong> (<a href="https://github.com/supunlakmal" target="_blank"+ rel="noopener">@supunlakmal</a>).+ </p>++ <h2>Project Links</h2>+ <div class="links">+ <div class="link-row">+ <span class="k">Source code</span>+ <a href="https://github.com/supunlakmal/hash-calendar" target="_blank"+ rel="noopener">github.com/supunlakmal/hash-calendar</a>+ </div>+ <div class="link-row">+ <span class="k">Issue tracker</span>+ <a href="https://github.com/supunlakmal/hash-calendar/issues" target="_blank" rel="noopener">Open an issue</a>+ </div>+ <div class="link-row">+ <span class="k">Documentation</span>+ <a href="./help.html">Help and guide</a>+ </div>+ <div class="link-row">+ <span class="k">Privacy policy</span>+ <a href="./privacy.html">Read privacy policy</a>+ </div>+ </div>+ </main>+ </div>+</body>++</html>\ No newline at end of filediff --git a/faq.html b/faq.htmlnew file mode 100644index 0000000..fc85e66--- /dev/null+++ b/faq.html@@ -0,0 +1,574 @@+<!DOCTYPE html>+<html lang="en">++<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>FAQ | hash-calendar</title>+ <meta name="description"+ content="Frequently asked questions about hash-calendar: how it works, sharing, privacy, URL limits, and more.">+ <meta name="robots" content="index,follow">+ <link rel="canonical" href="https://hash-calendar.netlify.app/faq.html">+ <link rel="icon" href="favicon.ico" type="image/x-icon">+ <link rel="icon" href="favicon.png" type="image/png" sizes="32x32">+ <link rel="apple-touch-icon" href="apple-touch-icon.png" sizes="180x180">+ <link rel="preconnect" href="https://fonts.googleapis.com">+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+ <link+ href="https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Space+Grotesk:wght@400;500;600&display=swap"+ rel="stylesheet">+ <style>+ :root {+ color-scheme: light;+ --bg-primary: #f6f6f4;+ --bg-secondary: #ffffff;+ --text-primary: #1f1f1f;+ --text-secondary: #5e5e5b;+ --text-muted: #8a8a87;+ --accent-primary: #0f6fbf;+ --accent-hover: #0d5a9f;+ --accent-light: #e9f3fc;+ --border-color: #e7e6e0;+ --border-subtle: #f0efea;+ --gradient-blue: radial-gradient(1200px 650px at 8% -18%, #e9f2fb 0%, transparent 45%);+ --gradient-green: radial-gradient(1000px 600px at 100% 115%, #edf3e6 0%, transparent 42%);+ }++ * {+ box-sizing: border-box;+ }++ body {+ margin: 0;+ font-family: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;+ color: var(--text-primary);+ background: var(--gradient-blue), var(--gradient-green), var(--bg-primary);+ line-height: 1.62;+ }++ .wrap {+ width: min(980px, 100%);+ margin: 0 auto;+ padding: 28px 18px 48px;+ }++ .topbar {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+ margin-bottom: 20px;+ flex-wrap: wrap;+ }++ .brand {+ display: inline-flex;+ align-items: center;+ gap: 10px;+ color: inherit;+ text-decoration: none;+ font-weight: 700;+ letter-spacing: 0.02em;+ font-family: 'Fraunces', serif;+ transition: transform 150ms ease;+ }++ .brand:hover {+ transform: translateY(-1px);+ }++ .brand img {+ width: 34px;+ height: 34px;+ border-radius: 8px;+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);+ }++ .actions {+ display: flex;+ gap: 8px;+ flex-wrap: wrap;+ }++ .btn {+ border: 1px solid var(--border-color);+ background: var(--bg-secondary);+ color: var(--text-primary);+ text-decoration: none;+ border-radius: 10px;+ padding: 10px 16px;+ font-weight: 600;+ font-size: 0.92rem;+ transition: all 150ms ease;+ }++ .btn:hover {+ transform: translateY(-1px);+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);+ border-color: #d4d4ce;+ }++ .btn.primary {+ border-color: var(--accent-primary);+ background: var(--accent-primary);+ color: #fff;+ }++ .btn.primary:hover {+ background: var(--accent-hover);+ border-color: var(--accent-hover);+ }++ .card {+ background: var(--bg-secondary);+ border: 1px solid var(--border-color);+ border-radius: 16px;+ padding: 28px 24px;+ box-shadow: 0 16px 34px rgba(0, 0, 0, 0.06);+ }++ h1 {+ margin: 0 0 6px;+ font-size: clamp(1.6rem, 4vw, 2.2rem);+ line-height: 1.2;+ font-family: 'Fraunces', serif;+ font-weight: 700;+ }++ .subtitle {+ margin: 0 0 24px;+ color: var(--text-secondary);+ font-size: 0.95rem;+ }++ /* ── FAQ accordion ── */+ .faq-list {+ display: flex;+ flex-direction: column;+ gap: 12px;+ }++ details {+ border: 1px solid var(--border-color);+ border-radius: 12px;+ background: var(--bg-secondary);+ transition: box-shadow 200ms ease, border-color 200ms ease;+ }++ details:hover {+ border-color: #d4d4ce;+ box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);+ }++ details[open] {+ border-color: var(--accent-primary);+ box-shadow: 0 6px 20px rgba(15, 111, 191, 0.1);+ }++ summary {+ padding: 16px 18px;+ font-weight: 600;+ font-size: 1rem;+ cursor: pointer;+ list-style: none;+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+ user-select: none;+ transition: color 150ms ease;+ }++ summary::-webkit-details-marker {+ display: none;+ }++ summary::after {+ content: '+';+ font-size: 1.3rem;+ font-weight: 700;+ color: var(--accent-primary);+ flex-shrink: 0;+ width: 28px;+ height: 28px;+ display: flex;+ align-items: center;+ justify-content: center;+ border-radius: 50%;+ background: var(--accent-light);+ transition: all 200ms ease;+ }++ details[open] summary::after {+ content: '−';+ background: var(--accent-primary);+ color: #fff;+ transform: rotate(180deg);+ }++ details[open] summary {+ color: var(--accent-primary);+ border-bottom: 1px solid var(--border-subtle);+ }++ .answer {+ padding: 16px 18px;+ color: var(--text-secondary);+ line-height: 1.7;+ animation: fadeIn 200ms ease;+ }++ @keyframes fadeIn {+ from {+ opacity: 0;+ transform: translateY(-4px);+ }++ to {+ opacity: 1;+ transform: translateY(0);+ }+ }++ .answer p {+ margin: 0 0 10px;+ }++ .answer p:last-child {+ margin-bottom: 0;+ }++ .answer code {+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;+ background: #f8f8f6;+ border: 1px solid #ecebe5;+ border-radius: 6px;+ padding: 2px 6px;+ font-size: 0.9em;+ }++ .answer a {+ color: var(--accent-primary);+ text-decoration: none;+ font-weight: 600;+ transition: color 150ms ease;+ }++ .answer a:hover {+ color: var(--accent-hover);+ text-decoration: underline;+ }++ .answer ul {+ margin: 6px 0 10px 20px;+ padding: 0;+ }++ .answer li {+ margin: 0 0 6px;+ }++ /* ── Category label ── */+ .category {+ margin: 28px 0 14px;+ font-size: 1.15rem;+ font-family: 'Fraunces', serif;+ font-weight: 700;+ border-left: 4px solid var(--accent-primary);+ padding-left: 12px;+ }++ .category:first-of-type {+ margin-top: 0;+ }++ /* ── Still have questions ── */+ .cta {+ margin-top: 28px;+ padding: 18px 20px;+ border: 1px solid #cfe2f7;+ border-radius: 12px;+ background: var(--accent-light);+ display: flex;+ align-items: center;+ gap: 14px;+ flex-wrap: wrap;+ }++ .cta-icon {+ font-size: 1.8rem;+ }++ .cta-text {+ flex: 1;+ min-width: 200px;+ }++ .cta-text strong {+ display: block;+ margin-bottom: 2px;+ }++ .cta-text span {+ color: var(--text-secondary);+ font-size: 0.92rem;+ }++ @media (max-width: 640px) {+ .wrap {+ padding: 20px 14px 40px;+ }++ .card {+ padding: 24px 16px;+ }++ summary {+ padding: 14px 14px;+ font-size: 0.95rem;+ }++ .answer {+ padding: 14px 14px;+ }++ .btn {+ padding: 8px 12px;+ font-size: 0.88rem;+ }+ }+ </style>+</head>++<body>+ <div class="wrap">+ <header class="topbar">+ <a class="brand" href="./" aria-label="Open hash-calendar">+ <img src="logo.png" alt="hash-calendar logo">+ <span>hash-calendar</span>+ </a>+ <div class="actions">+ <a class="btn primary" href="./">Open app</a>+ <a class="btn" href="./help.html">Help</a>+ <a class="btn" href="./about.html">About</a>+ <a class="btn" href="./privacy.html">Privacy</a>+ <a class="btn" href="./json.html">JSON bridge</a>+ </div>+ </header>++ <main class="card">+ <h1>Frequently Asked Questions</h1>+ <p class="subtitle">Quick answers to common questions about hash-calendar.</p>++ <!-- ── General ── -->+ <h2 class="category">General</h2>+ <div class="faq-list">++ <details>+ <summary>What is hash-calendar?</summary>+ <div class="answer">+ <p>hash-calendar is a <strong>privacy-first, client-only calendar</strong> that stores all data in the URL+ hash. There are no accounts, no servers, and no databases — your browser is your save file.</p>+ </div>+ </details>++ <details>+ <summary>Do I need to create an account?</summary>+ <div class="answer">+ <p>No. hash-calendar works entirely without accounts. Your calendar state lives in the URL, so anyone with+ the link can view it. No sign-up, no login.</p>+ </div>+ </details>++ <details>+ <summary>Is hash-calendar free?</summary>+ <div class="answer">+ <p>Yes, hash-calendar is completely free and <a href="https://github.com/supunlakmal/hash-calendar"+ target="_blank" rel="noopener">open-source</a> under the MIT license.</p>+ </div>+ </details>++ <details>+ <summary>Does it work offline?</summary>+ <div class="answer">+ <p>hash-calendar is a static web app. Once the page is loaded, most features work without an active internet+ connection. However you need internet to initially load the page and to share links externally.</p>+ </div>+ </details>++ </div>++ <!-- ── Sharing & links ── -->+ <h2 class="category">Sharing & Links</h2>+ <div class="faq-list">++ <details>+ <summary>How do I share my calendar?</summary>+ <div class="answer">+ <p>Click <code>Copy link</code> in the sidebar to copy the full URL. Anyone who opens that link will see+ exactly the same calendar. You can also use <code>Share QR</code> to show a QR code for mobile.</p>+ </div>+ </details>++ <details>+ <summary>Can I protect shared links with a password?</summary>+ <div class="answer">+ <p>Yes. Click <code>Lock</code> to encrypt your calendar data with a password. The recipient will need the+ exact same password to unlock and view the calendar.</p>+ </div>+ </details>++ <details>+ <summary>What does "Read only" do?</summary>+ <div class="answer">+ <p>When <code>Read only</code> is turned on, the interface hides editing controls. This is useful when+ sharing a calendar link — recipients can view but not accidentally edit events.</p>+ </div>+ </details>++ <details>+ <summary>My URL is very long — is that a problem?</summary>+ <div class="answer">+ <p>Long URLs may cause issues with some messaging apps or browsers. To reduce URL length:</p>+ <ul>+ <li>Remove old or unnecessary events.</li>+ <li>Use shorter event titles.</li>+ <li>Export your data as JSON for backup and start fresh.</li>+ </ul>+ <p>The sidebar shows the current URL length so you can monitor it.</p>+ </div>+ </details>++ </div>++ <!-- ── Data & privacy ── -->+ <h2 class="category">Data & Privacy</h2>+ <div class="faq-list">++ <details>+ <summary>Where is my data stored?</summary>+ <div class="answer">+ <p>All calendar data is encoded in the <strong>URL hash</strong> (<code>#...</code>). It is processed+ entirely in your browser. There is no server-side database and no account system.</p>+ </div>+ </details>++ <details>+ <summary>Does hash-calendar use cookies or tracking?</summary>+ <div class="answer">+ <p>The app loads Google Analytics (GA4) for basic usage metrics, but it is configured to <strong>exclude the+ URL hash</strong> from page URLs to prevent leaking your calendar data. No calendar content leaves your+ browser via analytics. See our <a href="./privacy.html">privacy policy</a> for details.</p>+ </div>+ </details>++ <details>+ <summary>Is the URL hash sent to the server?</summary>+ <div class="answer">+ <p>No. By web standards, the hash fragment (<code>#...</code>) is <strong>never included</strong> in HTTP+ requests. It stays in your browser. Only if you explicitly share or paste the full URL will others see the+ hash.</p>+ </div>+ </details>++ <details>+ <summary>Can I delete all my data?</summary>+ <div class="answer">+ <p>Click <code>Clear calendar</code> in the Danger Zone section. This removes all events and resets the URL.+ Since there is no backend, clearing the browser URL is all it takes.</p>+ </div>+ </details>++ </div>++ <!-- ── Import / export ── -->+ <h2 class="category">Import & Export</h2>+ <div class="faq-list">++ <details>+ <summary>How do I export my calendar?</summary>+ <div class="answer">+ <p>Click <code>Export JSON</code> in the sidebar to download a JSON snapshot of your current calendar. You+ can also click <code>View JSON</code> to see and copy the raw data.</p>+ </div>+ </details>++ <details>+ <summary>Can I import an .ics file?</summary>+ <div class="answer">+ <p>Yes. Click <code>Import .ics</code> and select a valid <code>.ics</code> calendar file from your device.+ The events will be added to your current calendar.</p>+ </div>+ </details>++ <details>+ <summary>What is the JSON bridge?</summary>+ <div class="answer">+ <p>The <a href="./json.html">JSON bridge</a> is a utility page that accepts a JSON payload via a URL query+ parameter and converts it into a compressed calendar hash URL. It's useful for programmatic integrations.+ </p>+ </div>+ </details>++ </div>++ <!-- ── Troubleshooting ── -->+ <h2 class="category">Troubleshooting</h2>+ <div class="faq-list">++ <details>+ <summary>My shared link opens a blank calendar</summary>+ <div class="answer">+ <p>Make sure the <strong>full URL</strong> including the hash (<code>#...</code>) was copied. Some messaging+ apps strip long URLs or cut off the hash fragment. Try pasting the link into a browser address bar+ directly.</p>+ </div>+ </details>++ <details>+ <summary>Password-protected link won't unlock</summary>+ <div class="answer">+ <p>Encrypted links are <strong>case-sensitive</strong>. Double-check the exact password including+ capitalization. There is no password recovery — if the password is lost, the encrypted data cannot be+ accessed.</p>+ </div>+ </details>++ <details>+ <summary>Notifications don't appear</summary>+ <div class="answer">+ <p>Browser notifications require explicit permission. Check that:</p>+ <ul>+ <li>You've enabled notifications for this site in browser settings.</li>+ <li>The <code>Notifications</code> toggle is set to <code>On</code>.</li>+ <li>Your operating system allows browser notifications.</li>+ </ul>+ </div>+ </details>++ <details>+ <summary>The ICS import adds no events</summary>+ <div class="answer">+ <p>Ensure the file is a valid <code>.ics</code> calendar file and is not empty. Some exported+ <code>.ics</code> files may use formats that hash-calendar does not fully support yet.+ </p>+ </div>+ </details>++ </div>++ <!-- ── CTA ── -->+ <div class="cta">+ <span class="cta-icon">💬</span>+ <div class="cta-text">+ <strong>Still have a question?</strong>+ <span>Open an issue on <a href="https://github.com/supunlakmal/hash-calendar/issues" target="_blank"+ rel="noopener">GitHub</a> or check the <a href="./help.html">help guide</a>.</span>+ </div>+ </div>++ </main>+ </div>+</body>++</html>\ No newline at end of filediff --git a/help.html b/help.htmlnew file mode 100644index 0000000..6333885--- /dev/null+++ b/help.html@@ -0,0 +1,456 @@+<!DOCTYPE html>+<html lang="en">++<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>Help & Guide | hash-calendar</title>+ <meta name="description"+ content="Quick guide for hash-calendar: sharing, import/export examples, and troubleshooting.">+ <meta name="robots" content="index,follow">+ <link rel="canonical" href="https://hash-calendar.netlify.app/help.html">+ <link rel="icon" href="favicon.ico" type="image/x-icon">+ <link rel="icon" href="favicon.png" type="image/png" sizes="32x32">+ <link rel="apple-touch-icon" href="apple-touch-icon.png" sizes="180x180">+ <link rel="preconnect" href="https://fonts.googleapis.com">+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+ <link+ href="https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Space+Grotesk:wght@400;500;600&display=swap"+ rel="stylesheet">+ <style>+ :root {+ color-scheme: light;+ /* Base colors */+ --bg-primary: #f6f6f4;+ --bg-secondary: #ffffff;+ --text-primary: #1f1f1f;+ --text-secondary: #5e5e5b;+ --text-muted: #8a8a87;++ /* Accent colors */+ --accent-primary: #0f6fbf;+ --accent-hover: #0d5a9f;+ --accent-light: #e9f3fc;++ /* Borders & dividers */+ --border-color: #e7e6e0;+ --border-subtle: #f0efea;++ /* Component colors */+ --chip-bg: #eef5fc;+ --chip-border: #dce8f4;+ --chip-text: #35577a;+ --code-bg: #f8f8f6;+ --code-border: #ecebe5;++ /* Gradients */+ --gradient-blue: radial-gradient(1200px 650px at 8% -18%, #e9f2fb 0%, transparent 45%);+ --gradient-green: radial-gradient(1000px 600px at 100% 115%, #edf3e6 0%, transparent 42%);+ }++ * {+ box-sizing: border-box;+ }++ body {+ margin: 0;+ font-family: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;+ color: var(--text-primary);+ background: var(--gradient-blue), var(--gradient-green), var(--bg-primary);+ line-height: 1.62;+ }++ .wrap {+ width: min(1040px, 100%);+ margin: 0 auto;+ padding: 28px 18px 48px;+ }++ .topbar {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+ margin-bottom: 20px;+ flex-wrap: wrap;+ }++ .brand {+ display: inline-flex;+ align-items: center;+ gap: 10px;+ color: inherit;+ text-decoration: none;+ font-weight: 700;+ letter-spacing: 0.02em;+ font-family: 'Fraunces', serif;+ transition: transform 150ms ease;+ }++ .brand:hover {+ transform: translateY(-1px);+ }++ .brand img {+ width: 34px;+ height: 34px;+ border-radius: 8px;+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);+ }++ .actions {+ display: flex;+ gap: 8px;+ flex-wrap: wrap;+ }++ .btn {+ border: 1px solid var(--border-color);+ background: var(--bg-secondary);+ color: var(--text-primary);+ text-decoration: none;+ border-radius: 10px;+ padding: 10px 16px;+ font-weight: 600;+ font-size: 0.92rem;+ transition: all 150ms ease;+ cursor: pointer;+ }++ .btn:hover {+ transform: translateY(-1px);+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);+ border-color: #d4d4ce;+ }++ .btn.primary {+ border-color: var(--accent-primary);+ background: var(--accent-primary);+ color: #fff;+ }++ .btn.primary:hover {+ background: var(--accent-hover);+ border-color: var(--accent-hover);+ }++ .grid {+ display: grid;+ grid-template-columns: 260px minmax(0, 1fr);+ gap: 20px;+ }++ .card {+ background: var(--bg-secondary);+ border: 1px solid var(--border-color);+ border-radius: 16px;+ box-shadow: 0 16px 34px rgba(0, 0, 0, 0.06);+ transition: box-shadow 200ms ease;+ }++ .toc {+ position: sticky;+ top: 14px;+ padding: 18px;+ align-self: start;+ }++ .toc h2 {+ margin: 0 0 12px;+ font-size: 1rem;+ font-family: 'Fraunces', serif;+ font-weight: 700;+ }++ .toc a {+ display: block;+ text-decoration: none;+ color: var(--text-primary);+ padding: 8px 10px;+ border-radius: 8px;+ margin-bottom: 4px;+ font-size: 0.92rem;+ transition: all 150ms ease;+ position: relative;+ }++ .toc a::before {+ content: '';+ position: absolute;+ left: 0;+ top: 50%;+ transform: translateY(-50%);+ width: 3px;+ height: 0;+ background: var(--accent-primary);+ border-radius: 2px;+ transition: height 150ms ease;+ }++ .toc a:hover {+ background: var(--accent-light);+ padding-left: 16px;+ }++ .toc a:hover::before {+ height: 60%;+ }++ .main {+ padding: 28px 24px;+ }++ h1 {+ margin: 0 0 6px;+ font-size: clamp(1.6rem, 4vw, 2.2rem);+ line-height: 1.2;+ font-family: 'Fraunces', serif;+ font-weight: 700;+ }++ .updated {+ margin: 0 0 20px;+ color: var(--text-secondary);+ font-size: 0.94rem;+ }++ h2 {+ margin: 28px 0 12px;+ font-size: 1.2rem;+ font-family: 'Fraunces', serif;+ font-weight: 700;+ border-left: 4px solid var(--accent-primary);+ padding-left: 12px;+ }++ p {+ margin: 0 0 12px;+ }++ ol,+ ul {+ margin: 0 0 14px 20px;+ padding: 0;+ }++ li {+ margin: 0 0 8px;+ }++ .chips {+ display: flex;+ gap: 8px;+ flex-wrap: wrap;+ margin: 10px 0 14px;+ }++ .chip {+ border-radius: 999px;+ border: 1px solid var(--chip-border);+ background: var(--chip-bg);+ padding: 6px 12px;+ font-size: 0.82rem;+ color: var(--chip-text);+ font-weight: 600;+ transition: all 150ms ease;+ }++ .chip:hover {+ transform: translateY(-1px);+ box-shadow: 0 2px 8px rgba(53, 87, 122, 0.15);+ }++ code {+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;+ background: var(--code-bg);+ border: 1px solid var(--code-border);+ border-radius: 6px;+ padding: 2px 6px;+ font-size: 0.92em;+ }++ pre {+ margin: 12px 0 16px;+ padding: 14px 16px;+ overflow: auto;+ border-radius: 10px;+ border: 1px solid var(--code-border);+ background: var(--code-bg);+ font-size: 0.86rem;+ line-height: 1.6;+ }++ pre code {+ border: none;+ padding: 0;+ background: transparent;+ }++ .tip {+ margin: 10px 0 14px;+ padding: 12px 14px;+ border: 1px solid #cfe2f7;+ border-radius: 10px;+ background: var(--accent-light);+ font-size: 0.95rem;+ position: relative;+ padding-left: 40px;+ }++ .tip::before {+ content: '💡';+ position: absolute;+ left: 14px;+ top: 12px;+ font-size: 1.2rem;+ }++ a {+ color: var(--accent-primary);+ text-decoration: none;+ transition: color 150ms ease;+ }++ a:hover {+ color: var(--accent-hover);+ text-decoration: underline;+ }++ @media (max-width: 860px) {+ .grid {+ grid-template-columns: 1fr;+ }++ .toc {+ position: static;+ }++ .main {+ padding: 24px 18px;+ }+ }++ @media (max-width: 640px) {+ .wrap {+ padding: 20px 14px 40px;+ }++ .btn {+ padding: 8px 12px;+ font-size: 0.88rem;+ }+ }+ </style>+</head>++<body>+ <div class="wrap">+ <header class="topbar">+ <a class="brand" href="./" aria-label="Open hash-calendar">+ <img src="logo.png" alt="hash-calendar logo">+ <span>hash-calendar</span>+ </a>+ <div class="actions">+ <a class="btn primary" href="./">Open app</a>+ <a class="btn" href="./about.html">About</a>+ <a class="btn" href="./faq.html">FAQ</a>+ <a class="btn" href="./privacy.html">Privacy</a>+ <a class="btn" href="./json.html">JSON bridge</a>+ </div>+ </header>++ <div class="grid">+ <nav class="toc card" aria-label="On this page">+ <h2>On this page</h2>+ <a href="#quick-start">Quick start</a>+ <a href="#sharing">Sharing</a>+ <a href="#import-export">Import and export</a>+ <a href="#path-examples">URL path examples</a>+ <a href="#troubleshooting">Troubleshooting</a>+ </nav>++ <main class="main card">+ <h1>Help & Guide</h1>+ <p class="updated">Last updated: February 12, 2026</p>++ <section id="quick-start">+ <h2>Quick Start</h2>+ <ol>+ <li>Open the app and add events with <code>Add event</code>.</li>+ <li>Switch views: <code>Day</code>, <code>Week</code>, <code>Month</code>, <code>Year</code>,+ <code>Agenda</code>.+ </li>+ <li>Use <code>Copy link</code> to share your current calendar state.</li>+ <li>Use <code>Lock</code> to generate password-protected links.</li>+ </ol>+ <div class="chips">+ <span class="chip">Client-only app</span>+ <span class="chip">URL hash state</span>+ <span class="chip">No account required</span>+ </div>+ </section>++ <section id="sharing">+ <h2>Sharing</h2>+ <p>hash-calendar saves state in the URL hash (<code>#...</code>), so sharing is link-based.</p>+ <ul>+ <li>Use <code>Copy link</code> for direct sharing.</li>+ <li>Use <code>Share QR</code> to open on mobile quickly.</li>+ <li>Use <code>Read only</code> before sharing if recipients should not edit.</li>+ <li>Use <code>Lock</code> to encrypt share links with a password.</li>+ </ul>+ <p class="tip">Tip: If the URL gets too long, remove unnecessary events/colors or share JSON instead.</p>+ </section>++ <section id="import-export">+ <h2>Import And Export</h2>+ <p><strong>Export:</strong> Use <code>Export JSON</code> to download your current calendar snapshot.</p>+ <p><strong>Import ICS:</strong> Use <code>Import .ics</code> and select a calendar file from your device.</p>+ <p><strong>JSON bridge:</strong> Open <code>json.html</code> with JSON to convert it into a calendar hash URL.+ </p>+ <pre>Example:+/json.html?json=%7B%22t%22%3A%22Team%20Calendar%22%2C%22e%22%3A%5B%5D%7D</pre>+ </section>++ <section id="path-examples">+ <h2>Hash-Path Examples</h2>+ <p>You can create events directly from hash-path URLs.</p>+ <pre>Hash-path examples+/#/2026/12/25/10/30/Open-Presents+/#/2026/12/25/Christmas-Day+/#/2026/12/25/10/00+90/Family-Brunch</pre>+ <pre>Multiple events in one URL+/#/2026/01/01/Gym,2026/01/01/10/00/Clean</pre>+ <p class="tip">+ Note: a value like <code>/#/2026</code> by itself is not enough to create an event. The parser needs at+ least <code>YYYY/MM/DD</code>.+ </p>+ <p>Titles can use dashes; the app converts dashes to spaces.</p>+ </section>++ <section id="troubleshooting">+ <h2>Troubleshooting</h2>+ <ul>+ <li><strong>Shared link opens blank:</strong> Verify the full URL hash was copied.</li>+ <li><strong>Password link fails:</strong> Confirm exact password; encrypted links are case-sensitive.</li>+ <li><strong>Notifications do not appear:</strong> Enable browser notifications and keep tab permissions+ allowed.</li>+ <li><strong>ICS import adds no events:</strong> Ensure the file is valid <code>.ics</code> and not empty.+ </li>+ <li><strong>Timezone search has no result:</strong> Try region/city names (for example+ <code>Asia/Colombo</code>) or UTC offsets.+ </li>+ <li><strong>Very long URL warning:</strong> Export JSON as backup and trim old data before sharing.</li>+ </ul>+ <p>+ Need more help? Open an issue on+ <a href="https://github.com/supunlakmal/hash-calendar/issues" target="_blank" rel="noopener">GitHub+ issues</a>.+ </p>+ </section>+ </main>+ </div>+ </div>+</body>++</html>\ No newline at end of filediff --git a/index.html b/index.htmlindex 96e0621..147a675 100644--- a/index.html+++ b/index.html@@ -129,6 +129,22 @@<i class="fa-brands fa-github" aria-hidden="true"></i><span>GitHub</span></a>+ <a href="privacy.html" class="action-link">+ <i class="fa-solid fa-shield-halved" aria-hidden="true"></i>+ <span>Privacy</span>+ </a>+ <a href="help.html" class="action-link">+ <i class="fa-solid fa-circle-question" aria-hidden="true"></i>+ <span>Help</span>+ </a>+ <a href="faq.html" class="action-link">+ <i class="fa-solid fa-comments" aria-hidden="true"></i>+ <span>FAQ</span>+ </a>+ <a href="about.html" class="action-link">+ <i class="fa-solid fa-circle-info" aria-hidden="true"></i>+ <span>About</span>+ </a></div></div></header>@@ -597,6 +613,18 @@target="_blank" rel="noopener"><i class="fa-solid fa-mug-hot"></i> <span>Buy me a coffee</span></a>+ <a href="privacy.html" class="mobile-drawer-item action-link">+ <i class="fa-solid fa-shield-halved"></i> <span>Privacy</span>+ </a>+ <a href="help.html" class="mobile-drawer-item action-link">+ <i class="fa-solid fa-circle-question"></i> <span>Help</span>+ </a>+ <a href="faq.html" class="mobile-drawer-item action-link">+ <i class="fa-solid fa-comments"></i> <span>FAQ</span>+ </a>+ <a href="about.html" class="mobile-drawer-item action-link">+ <i class="fa-solid fa-circle-info"></i> <span>About</span>+ </a></div><div id="mobile-share-export-section" class="mobile-drawer-section">diff --git a/json.html b/json.htmlindex add1380..83ed87a 100644--- a/json.html+++ b/json.html@@ -5,169 +5,436 @@<meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>hash-calendar JSON bridge</title>- <meta name="robots" content="noindex">+ <link rel="apple-touch-icon" href="apple-touch-icon.png" sizes="180x180">+ <link rel="preconnect" href="https://fonts.googleapis.com">+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+ <link+ href="https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Space+Grotesk:wght@400;500;600&display=swap"+ rel="stylesheet"><style>:root {color-scheme: light;+ /* Base colors */+ --bg-primary: #f6f6f4;+ --bg-secondary: #ffffff;+ --text-primary: #1f1f1f;+ --text-secondary: #5e5e5b;+ --text-muted: #8a8a87;++ /* Accent colors */+ --accent-primary: #0f6fbf;+ --accent-hover: #0d5a9f;+ --accent-light: #e9f3fc;++ /* Borders & dividers */+ --border-color: #e7e6e0;+ --border-subtle: #f0efea;++ /* Status colors */+ --success-bg: #edf5e7;+ --success-border: #d8e7cb;+ --success-text: #2f5f30;+ --error-bg: #fef2f2;+ --error-border: #fecaca;+ --error-text: #991b1b;++ /* Code colors */+ --code-bg: #0d0d0d;+ --code-text: #f6f6f4;++ /* Gradients */+ --gradient-blue: radial-gradient(1200px 650px at 8% -18%, #e9f2fb 0%, transparent 45%);+ --gradient-green: radial-gradient(1000px 600px at 100% 115%, #edf3e6 0%, transparent 42%);+ }++ * {+ box-sizing: border-box;}body {margin: 0;- font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;- background: #f6f6f4;- color: #1f1f1f;+ min-height: 100vh;+ font-family: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;+ background: var(--gradient-blue), var(--gradient-green), var(--bg-primary);+ color: var(--text-primary);+ padding: 20px;+ }++ .wrap {+ width: min(1040px, 100%);+ margin: 0 auto;+ }++ .topbar {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+ margin-bottom: 30px;+ flex-wrap: wrap;+ }++ .brand {+ display: inline-flex;+ align-items: center;+ gap: 10px;+ color: inherit;+ text-decoration: none;+ font-weight: 700;+ letter-spacing: 0.02em;+ font-family: 'Fraunces', serif;+ transition: transform 150ms ease;+ }++ .brand:hover {+ transform: translateY(-1px);+ }++ .brand img {+ width: 34px;+ height: 34px;+ border-radius: 8px;+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);+ }++ .actions {+ display: flex;+ gap: 8px;+ flex-wrap: wrap;+ }++ .btn {+ border: 1px solid var(--border-color);+ background: var(--bg-secondary);+ color: var(--text-primary);+ text-decoration: none;+ border-radius: 10px;+ padding: 10px 16px;+ font-weight: 600;+ font-size: 0.92rem;+ transition: all 150ms ease;+ }++ .btn:hover {+ transform: translateY(-1px);+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);+ border-color: #d4d4ce;+ }++ .btn.primary {+ border-color: var(--accent-primary);+ background: var(--accent-primary);+ color: #fff;+ }++ .btn.primary:hover {+ background: var(--accent-hover);+ border-color: var(--accent-hover);}main {max-width: 720px;- margin: 12vh auto 0;- padding: 24px;- background: #ffffff;- border-radius: 14px;- box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);+ margin: 0 auto;+ background: var(--bg-secondary);+ border-radius: 16px;+ box-shadow: 0 20px 44px rgba(0, 0, 0, 0.08);+ padding: 32px;+ border: 1px solid var(--border-color);+ transition: box-shadow 300ms ease;+ }++ main:hover {+ box-shadow: 0 24px 52px rgba(0, 0, 0, 0.12);}h1 {- font-size: 1.5rem;- margin: 0 0 12px;+ font-family: 'Fraunces', serif;+ font-size: 1.8rem;+ font-weight: 700;+ margin: 0 0 8px;+ line-height: 1.2;}- p {- margin: 0 0 12px;+ .status {+ font-size: 1rem;+ margin: 0 0 20px;+ color: var(--text-secondary);+ display: flex;+ align-items: center;+ gap: 10px;+ }++ .spinner {+ width: 18px;+ height: 18px;+ border: 2px solid var(--border-color);+ border-top-color: var(--accent-primary);+ border-radius: 50%;+ animation: spin 0.8s linear infinite;+ }++ @keyframes spin {+ to {+ transform: rotate(360deg);+ }+ }++ .status.success {+ color: var(--success-text);+ }++ .status.error {+ color: var(--error-text);+ }++ .hint {+ margin: 16px 0;+ padding: 14px 16px;+ border: 1px solid var(--border-color);+ border-radius: 10px;+ background: var(--accent-light);+ font-size: 0.92rem;line-height: 1.6;}+ .hint code {+ background: rgba(255, 255, 255, 0.7);+ padding: 2px 6px;+ border-radius: 4px;+ font-family: ui-monospace, monospace;+ font-size: 0.88em;+ }+pre {- margin: 12px 0 0;- padding: 12px;- background: #0d0d0d;- color: #f6f6f4;+ margin: 16px 0 0;+ padding: 16px;+ background: var(--code-bg);+ color: var(--code-text);border-radius: 10px;overflow: auto;font-size: 0.875rem;+ line-height: 1.6;+ border: 1px solid #2a2a2a;+ }++ .actions {+ margin-top: 24px;+ display: flex;+ gap: 10px;+ flex-wrap: wrap;+ }++ .btn {+ border: 1px solid var(--border-color);+ background: var(--bg-secondary);+ color: var(--text-primary);+ text-decoration: none;+ border-radius: 10px;+ padding: 10px 16px;+ font-weight: 600;+ font-size: 0.92rem;+ transition: all 150ms ease;+ cursor: pointer;+ display: inline-flex;+ align-items: center;+ gap: 6px;+ }++ .btn:hover {+ transform: translateY(-1px);+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);+ border-color: #d4d4ce;+ }++ .btn.primary {+ border-color: var(--accent-primary);+ background: var(--accent-primary);+ color: #fff;+ }++ .btn.primary:hover {+ background: var(--accent-hover);+ border-color: var(--accent-hover);}.hidden {display: none;}++ @media (max-width: 640px) {+ body {+ padding: 12px;+ }++ main {+ padding: 24px 18px;+ }++ h1 {+ font-size: 1.5rem;+ }++ .brand-text {+ font-size: 1.1rem;+ }+ }</style></head><body>- <main>- <h1>hash-calendar JSON bridge</h1>- <p id="status">Processing JSON payload...</p>- <p id="hint" class="hidden">Pass a URL-encoded JSON string as <code>?json=</code> or raw JSON as the only query param.</p>- <pre id="details" class="hidden"></pre>- </main>-- <script src="modules/lz-string.min.js"></script>- <script>- (function () {- const status = document.getElementById("status");- const details = document.getElementById("details");- const hint = document.getElementById("hint");-- function showError(message, error) {- status.textContent = message;- hint.classList.remove("hidden");- if (error) {- details.textContent = String(error);- details.classList.remove("hidden");- }- }+ <div class="wrap">+ <header class="topbar">+ <a class="brand" href="./" aria-label="Open hash-calendar">+ <img src="logo.png" alt="hash-calendar logo">+ <span>hash-calendar</span>+ </a>+ <div class="actions">+ <a class="btn primary" href="./">Open app</a>+ <a class="btn" href="./help.html">Help</a>+ <a class="btn" href="./about.html">About</a>+ <a class="btn" href="./faq.html">FAQ</a>+ <a class="btn" href="./privacy.html">Privacy</a>+ </div>+ </header>- function extractRawParam(search, key) {- if (!search) return null;- const raw = search.startsWith("?") ? search.slice(1) : search;- const token = `${key}=`;- const idx = raw.indexOf(token);- if (idx === -1) return null;- let value = raw.slice(idx + token.length);- let cursor = 0;- while (true) {- const amp = value.indexOf("&", cursor);- if (amp === -1) break;- const next = value.slice(amp + 1);- if (/^[A-Za-z0-9_.-]+=/.test(next)) {- value = value.slice(0, amp);- break;+ <main>+ <h1>JSON Bridge</h1>+ <p id="status" class="status">+ <span class="spinner"></span>+ <span>Processing JSON payload...</span>+ </p>+ <p id="hint" class="hint hidden">+ Pass a URL-encoded JSON string as <code>?json=</code> or raw JSON as the only query param.+ <br><br>+ <strong>Example:</strong><br>+ <code>/json.html?json=%7B%22t%22%3A%22My%20Calendar%22%7D</code>+ </p>+ <pre id="details" class="hidden"></pre>+ <div id="actions" class="actions hidden">+ <a href="./" class="btn primary">Open Calendar</a>+ <a href="./help.html" class="btn">View Help</a>+ </div>+ </main>++ <script src="modules/lz-string.min.js"></script>+ <script>+ (function () {+ const status = document.getElementById("status");+ const details = document.getElementById("details");+ const hint = document.getElementById("hint");+ const actions = document.getElementById("actions");++ function showError(message, error) {+ const spinner = status.querySelector('.spinner');+ if (spinner) spinner.remove();++ status.className = 'status error';+ status.innerHTML = `<span>❌ ${message}</span>`;+ hint.classList.remove("hidden");+ actions.classList.remove("hidden");++ if (error) {+ details.textContent = String(error);+ details.classList.remove("hidden");}- cursor = amp + 1;}- return value || null;- }- function maybeDecode(value) {- if (typeof value !== "string") return value;- if (!/%[0-9A-Fa-f]{2}/.test(value) && value.indexOf("+") === -1) {- return value;- }- try {- return decodeURIComponent(value.replace(/\+/g, " "));- } catch (error) {- return value;+ function extractRawParam(search, key) {+ if (!search) return null;+ const raw = search.startsWith("?") ? search.slice(1) : search;+ const token = `${key}=`;+ const idx = raw.indexOf(token);+ if (idx === -1) return null;+ let value = raw.slice(idx + token.length);+ let cursor = 0;+ while (true) {+ const amp = value.indexOf("&", cursor);+ if (amp === -1) break;+ const next = value.slice(amp + 1);+ if (/^[A-Za-z0-9_.-]+=/.test(next)) {+ value = value.slice(0, amp);+ break;+ }+ cursor = amp + 1;+ }+ return value || null;}- }- function readPayloadCandidates() {- const keys = ["json", "data", "state", "payload"];- const candidates = [];- const params = new URLSearchParams(window.location.search);- keys.forEach((key) => {- const value = params.get(key);- if (value) candidates.push(value);- });- const search = window.location.search;- keys.forEach((key) => {- const rawValue = extractRawParam(search, key);- if (rawValue) candidates.push(maybeDecode(rawValue));- });- if (window.location.hash && window.location.hash.length > 1) {- const raw = window.location.hash.slice(1);+ function maybeDecode(value) {+ if (typeof value !== "string") return value;+ if (!/%[0-9A-Fa-f]{2}/.test(value) && value.indexOf("+") === -1) {+ return value;+ }try {- candidates.push(decodeURIComponent(raw));+ return decodeURIComponent(value.replace(/\+/g, " "));} catch (error) {- candidates.push(raw);+ return value;}}- return candidates.filter((value, index, arr) => value && arr.indexOf(value) === index);- }- if (!window.LZString || !window.LZString.compressToEncodedURIComponent) {- showError("Compression library failed to load.");- return;- }+ function readPayloadCandidates() {+ const keys = ["json", "data", "state", "payload"];+ const candidates = [];+ const params = new URLSearchParams(window.location.search);+ keys.forEach((key) => {+ const value = params.get(key);+ if (value) candidates.push(value);+ });+ const search = window.location.search;+ keys.forEach((key) => {+ const rawValue = extractRawParam(search, key);+ if (rawValue) candidates.push(maybeDecode(rawValue));+ });+ if (window.location.hash && window.location.hash.length > 1) {+ const raw = window.location.hash.slice(1);+ try {+ candidates.push(decodeURIComponent(raw));+ } catch (error) {+ candidates.push(raw);+ }+ }+ return candidates.filter((value, index, arr) => value && arr.indexOf(value) === index);+ }- const candidates = readPayloadCandidates();- if (!candidates.length) {- showError("Missing JSON payload.");- return;- }+ if (!window.LZString || !window.LZString.compressToEncodedURIComponent) {+ showError("Compression library failed to load.");+ return;+ }- let parsed;- let lastError;- for (const candidate of candidates) {- try {- parsed = JSON.parse(candidate);- break;- } catch (error) {- lastError = error;+ const candidates = readPayloadCandidates();+ if (!candidates.length) {+ showError("Missing JSON payload.");+ return;}- }- if (!parsed) {- showError("Invalid JSON payload. URL-encode it or send raw JSON as the only query param.", lastError);- return;- }- const json = JSON.stringify(parsed);- const compressed = window.LZString.compressToEncodedURIComponent(json);- const targetUrl = new URL("./", window.location.href);- targetUrl.hash = compressed;- status.textContent = "Redirecting to calendar...";- window.location.replace(targetUrl.toString());- })();- </script>+ let parsed;+ let lastError;+ for (const candidate of candidates) {+ try {+ parsed = JSON.parse(candidate);+ break;+ } catch (error) {+ lastError = error;+ }+ }+ if (!parsed) {+ showError("Invalid JSON payload. URL-encode it or send raw JSON as the only query param.", lastError);+ return;+ }++ const json = JSON.stringify(parsed);+ const compressed = window.LZString.compressToEncodedURIComponent(json);+ const targetUrl = new URL("./", window.location.href);+ targetUrl.hash = compressed;++ const spinner = status.querySelector('.spinner');+ if (spinner) spinner.remove();+ status.className = 'status success';+ status.innerHTML = '<span>✓ Redirecting to calendar...</span>';++ window.location.replace(targetUrl.toString());+ })();+ </script></body>-</html>+</html>\ No newline at end of filediff --git a/privacy.html b/privacy.htmlnew file mode 100644index 0000000..65ffb1f--- /dev/null+++ b/privacy.html@@ -0,0 +1,304 @@+<!DOCTYPE html>+<html lang="en">++<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>Privacy Policy | hash-calendar</title>+ <meta name="description" content="Privacy policy for hash-calendar, a client-only URL-powered calendar.">+ <meta name="robots" content="index,follow">+ <link rel="canonical" href="https://hash-calendar.netlify.app/privacy.html">+ <link rel="icon" href="favicon.ico" type="image/x-icon">+ <link rel="icon" href="favicon.png" type="image/png" sizes="32x32">+ <link rel="apple-touch-icon" href="apple-touch-icon.png" sizes="180x180">+ <link rel="preconnect" href="https://fonts.googleapis.com">+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+ <link+ href="https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Space+Grotesk:wght@400;500;600&display=swap"+ rel="stylesheet">+ <style>+ :root {+ color-scheme: light;+ /* Base colors */+ --bg-primary: #f6f6f4;+ --bg-secondary: #ffffff;+ --text-primary: #1f1f1f;+ --text-secondary: #5e5e5b;+ --text-muted: #8a8a87;++ /* Accent colors */+ --accent-primary: #0f6fbf;+ --accent-hover: #0d5a9f;+ --accent-light: #e9f3fc;++ /* Borders & dividers */+ --border-color: #e7e6e0;+ --border-subtle: #f0efea;++ /* Gradients */+ --gradient-blue: radial-gradient(1100px 650px at 8% -15%, #e9f2fb 0%, transparent 45%);+ }++ * {+ box-sizing: border-box;+ }++ body {+ margin: 0;+ font-family: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;+ background: var(--gradient-blue), var(--bg-primary);+ color: var(--text-primary);+ line-height: 1.6;+ }++ .wrap {+ width: min(980px, 100%);+ margin: 0 auto;+ padding: 28px 18px 40px;+ }++ .topbar {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+ margin-bottom: 20px;+ flex-wrap: wrap;+ }++ .brand {+ display: inline-flex;+ align-items: center;+ gap: 10px;+ color: inherit;+ text-decoration: none;+ font-weight: 700;+ letter-spacing: 0.02em;+ font-family: 'Fraunces', serif;+ transition: transform 150ms ease;+ }++ .brand:hover {+ transform: translateY(-1px);+ }++ .brand img {+ width: 34px;+ height: 34px;+ border-radius: 8px;+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);+ }++ .actions {+ display: flex;+ flex-wrap: wrap;+ gap: 8px;+ }++ .btn {+ border: 1px solid var(--border-color);+ background: var(--bg-secondary);+ color: var(--text-primary);+ text-decoration: none;+ border-radius: 10px;+ padding: 10px 16px;+ font-weight: 600;+ font-size: 0.92rem;+ transition: all 150ms ease;+ }++ .btn:hover {+ transform: translateY(-1px);+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);+ border-color: #d4d4ce;+ }++ .btn.primary {+ background: var(--accent-primary);+ border-color: var(--accent-primary);+ color: #fff;+ }++ .btn.primary:hover {+ background: var(--accent-hover);+ border-color: var(--accent-hover);+ }++ .card {+ background: var(--bg-secondary);+ border: 1px solid var(--border-color);+ border-radius: 16px;+ padding: 28px 24px;+ box-shadow: 0 16px 34px rgba(0, 0, 0, 0.06);+ transition: box-shadow 200ms ease;+ }++ h1 {+ margin: 0 0 6px;+ font-size: clamp(1.6rem, 4vw, 2.1rem);+ line-height: 1.2;+ font-family: 'Fraunces', serif;+ font-weight: 700;+ }++ .updated {+ margin: 0 0 20px;+ color: var(--text-secondary);+ font-size: 0.95rem;+ }++ h2 {+ margin: 28px 0 12px;+ font-size: 1.2rem;+ font-family: 'Fraunces', serif;+ font-weight: 700;+ border-left: 4px solid var(--accent-primary);+ padding-left: 12px;+ }++ p {+ margin: 0 0 12px;+ }++ ul {+ margin: 0 0 12px 20px;+ padding: 0;+ }++ li {+ margin: 0 0 8px;+ }++ .note {+ margin-top: 10px;+ padding: 12px 14px;+ border: 1px solid #cfe2f6;+ border-radius: 10px;+ background: var(--accent-light);+ font-size: 0.95rem;+ position: relative;+ padding-left: 40px;+ }++ .note::before {+ content: 'ℹ️';+ position: absolute;+ left: 14px;+ top: 12px;+ font-size: 1.2rem;+ }++ a {+ color: var(--accent-primary);+ text-decoration: none;+ transition: color 150ms ease;+ }++ a:hover {+ color: var(--accent-hover);+ text-decoration: underline;+ }++ @media (max-width: 640px) {+ .card {+ padding: 24px 18px;+ }+ }+ </style>+</head>++<body>+ <div class="wrap">+ <header class="topbar">+ <a class="brand" href="./" aria-label="Open hash-calendar">+ <img src="logo.png" alt="hash-calendar logo">+ <span>hash-calendar</span>+ </a>+ <div class="actions">+ <a class="btn primary" href="./">Open app</a>+ <a class="btn" href="./help.html">Help</a>+ <a class="btn" href="./about.html">About</a>+ <a class="btn" href="./faq.html">FAQ</a>+ <a class="btn" href="./json.html">JSON bridge</a>+ </div>+ </header>++ <main class="card">+ <h1>Privacy Policy</h1>+ <p class="updated">Last updated: February 12, 2026</p>++ <h2>1. Overview</h2>+ <p>+ hash-calendar is a client-only calendar. The app is designed to keep your calendar state in your browser and in+ the URL hash so there is no account system or server-side calendar database.+ </p>++ <h2>2. Data You Enter</h2>+ <p>+ Event titles, dates, recurrence settings, timezone choices, and similar calendar data are processed in your+ browser.+ </p>+ <ul>+ <li>Calendar state is encoded in the URL hash (`#...`).</li>+ <li>URL hash content is not sent in normal HTTP requests to the server.</li>+ <li>Language preference may be stored locally in your browser.</li>+ </ul>+ <p class="note">+ If you share your calendar URL, anyone with that link can access the shared calendar state in the hash. Treat+ shared links as sensitive.+ </p>++ <h2>3. Analytics</h2>+ <p>+ The main app page loads Google Analytics (GA4). It is configured to send only `origin + pathname` and not the+ URL hash, to avoid transmitting calendar payload data in analytics page URLs.+ </p>+ <ul>+ <li>Provider: Google Analytics (Measurement ID: `G-77V3TP2B5T`)</li>+ <li>Configured page location excludes the hash fragment</li>+ </ul>++ <h2>4. Third-Party Requests</h2>+ <p>+ The app may load third-party resources (for example analytics scripts, fonts, icon libraries, or QR code+ utilities). Those providers may receive standard request metadata such as IP address, user agent, and referrer.+ </p>++ <h2>5. Encryption and Security</h2>+ <p>+ The app includes optional password-based encryption for shared links. Encryption improves confidentiality, but+ no system can provide absolute security. Keep passwords private and avoid sharing them in the same channel as+ encrypted links.+ </p>++ <h2>6. Data Retention</h2>+ <p>+ hash-calendar does not run a backend that stores your calendar entries. Data retention is mainly controlled by+ your browser history, copied/shared links, and any third-party services you intentionally use.+ </p>++ <h2>7. Your Choices</h2>+ <ul>+ <li>Do not share calendar links if they contain sensitive data.</li>+ <li>Use link encryption for shared calendars when needed.</li>+ <li>Use browser privacy controls or blockers to limit analytics.</li>+ <li>Clear browser history when you want to remove locally retained URLs.</li>+ </ul>++ <h2>8. Changes to This Policy</h2>+ <p>+ This policy may be updated as the project evolves. The date at the top of this page indicates the latest+ revision.+ </p>++ <h2>9. Contact</h2>+ <p>+ For questions, open an issue on GitHub:+ <a href="https://github.com/supunlakmal/hash-calendar/issues" target="_blank" rel="noopener">hash-calendar+ issues</a>.+ </p>+ </main>+ </div>+</body>++</html>\ No newline at end of filediff --git a/sitemap.txt b/sitemap.txtindex f2ab94f..f169c6a 100644--- a/sitemap.txt+++ b/sitemap.txt@@ -1 +1,6 @@https://hash-calendar.netlify.app/+https://hash-calendar.netlify.app/privacy.html+https://hash-calendar.netlify.app/help.html+https://hash-calendar.netlify.app/about.html+https://hash-calendar.netlify.app/faq.html+https://hash-calendar.netlify.app/json.htmldiff --git a/sitemap.xml b/sitemap.xmlindex 1d877c0..ba81e95 100644--- a/sitemap.xml+++ b/sitemap.xml@@ -1,9 +1,39 @@-<?xml version="1.0" encoding="UTF-8"?>-<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">+<?xml version="1.0" encoding="UTF-8"?>+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://hash-calendar.netlify.app/</loc>- <lastmod>2026-01-28</lastmod>+ <lastmod>2026-02-12</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url>+ <url>+ <loc>https://hash-calendar.netlify.app/privacy.html</loc>+ <lastmod>2026-02-12</lastmod>+ <changefreq>monthly</changefreq>+ <priority>0.4</priority>+ </url>+ <url>+ <loc>https://hash-calendar.netlify.app/help.html</loc>+ <lastmod>2026-02-12</lastmod>+ <changefreq>monthly</changefreq>+ <priority>0.5</priority>+ </url>+ <url>+ <loc>https://hash-calendar.netlify.app/about.html</loc>+ <lastmod>2026-02-12</lastmod>+ <changefreq>monthly</changefreq>+ <priority>0.5</priority>+ </url>+ <url>+ <loc>https://hash-calendar.netlify.app/faq.html</loc>+ <lastmod>2026-02-12</lastmod>+ <changefreq>monthly</changefreq>+ <priority>0.5</priority>+ </url>+ <url>+ <loc>https://hash-calendar.netlify.app/json.html</loc>+ <lastmod>2026-02-12</lastmod>+ <changefreq>monthly</changefreq>+ <priority>0.3</priority>+ </url></urlset>