// projects.jsx — every app on the site, newest first. Pages are built from this list.

const PROJECTS = [
  {
    slug: 'tiltop',
    name: 'Gravity Til Top',
    zh: '重力鋼珠：登頂',
    year: 2026,
    kind: 'Tilt game',
    platforms: ['iOS', 'Android'],
    icon: '/tiltop/icon.png',
    color: '#2c5b86',
    tint: '#f2b24c',
    tagline: 'Roll one steel ball up a 270 m tower of machines. Slip, and you really fall.',
    about: [
      'Tilt the phone to roll a single steel ball up a 270-metre tower, through nine zones of moving machinery. Height is the only score that matters on the way up — and a slip can hand a lot of it back.',
      'Reach the summit and the climb goes on a world leaderboard, together with the ball you climbed with, cracked and chipped by every fall on the way.',
    ],
    facts: [
      ['Course', '270 m · nine zones'],
      ['Control', 'Tilt — accelerometer & gyroscope'],
      ['Online', 'World leaderboard, top 100'],
      ['Account', 'None'],
      ['Price', 'Free with optional ads · full version in-app'],
    ],
    features: [
      ['Falls are real', 'Drop more than 30 m and the fall recovery offers to put you back. It recharges after five minutes of play.'],
      ['A ball that wears', 'Hairline cracks, then chips and flaking. Every new climb starts with a whole ball.'],
      ['Checked climbs', 'Climbs started online are timed zone by zone and verified before they reach the board.'],
      ['Your grip is level', 'Recenter to the way you hold the phone, set sensitivity, or invert forward and back.'],
    ],
    links: [['Support', '/tiltop/support.html'], ['Privacy', '/tiltop/privacy.html']],
  },
  {
    slug: 'gravity3dmaze',
    name: 'Gravity 3D Maze',
    zh: '重力鋼珠迷宮 3D',
    year: 2026,
    kind: 'Tilt game',
    platforms: ['iOS', 'Android'],
    icon: '/gravity3dmaze/icon.png',
    color: '#1f5560',
    tint: '#d9a441',
    tagline: 'Tilt a steel ball through 238 handcrafted 3D mazes — some of them small planets with their own gravity.',
    about: [
      'The phone is the only controller. Tilt to roll the ball along narrow paths, up cube walls and across open roads; on the planet levels, “down” is whatever surface you happen to be on.',
      'A quick drop of the wrist makes the ball hop a gap. Each of the three games counts its own stars, and enough stars open the next chapter by themselves.',
    ],
    facts: [
      ['Levels', '238, in three games'],
      ['Control', 'Tilt, and a quick drop to hop'],
      ['Extra', 'Space Maze, one in-app purchase'],
      ['Ads & tracking', 'None'],
    ],
    features: [
      ['Tilt & hop', 'Roll by tilting; jerk the phone down or tap the button to jump a gap.'],
      ['Stars open chapters', 'No menus to unlock — earn the stars and the next chapter is there.'],
      ['Planets', 'Small worlds with their own gravity, where the maze wraps all the way round.'],
      ['Nothing leaves the phone', 'No account, no analytics. Progress is stored on the device.'],
    ],
    links: [['Support', '/gravity3dmaze/support.html'], ['Privacy', '/gravity3dmaze/privacy.html']],
  },
  {
    slug: 'iperf23',
    name: 'iPerf 2 & 3',
    year: 2026,
    kind: 'Network tool',
    platforms: ['iPhone', 'iPad', 'Android'],
    icon: '/iperf23/icon.png',
    color: '#13305a',
    tint: '#ea6a35',
    tagline: 'iperf2 and iperf3 in your pocket — client and server, live charts, ping and PDF reports.',
    about: [
      'Checking a Wi-Fi link usually means carrying a laptop to the far corner of the house. This puts iperf on the phone instead: point it at any iperf server, or make the phone the server and test from your desk.',
      'Both protocols are implemented independently. iperf2 and iperf3 do not speak to each other, so you pick the one that matches the other end.',
    ],
    facts: [
      ['Protocols', 'iperf 2.0–2.2 · iperf 3.x · ICMP ping'],
      ['Modes', 'Client and server · TCP and UDP'],
      ['Output', 'Live chart · history · PDF'],
      ['Price', 'Free with ads'],
    ],
    features: [
      ['Client & server', 'Test against a server, or start one on the phone. Allow Local Network and go.'],
      ['Live charts', 'Throughput as it happens. Set a UDP target or run unlimited; try -P 4 for parallel streams.'],
      ['Ping', 'Latency next to throughput, to tell a slow link from a lossy one.'],
      ['History & PDF', 'Every run is kept on the device and exports to a PDF report. Nothing is uploaded.'],
    ],
    links: [['Support', '/iperf23/support/'], ['Privacy', '/iperf23/privacy/']],
  },
  {
    slug: 'motion',
    name: 'Motion PController',
    year: 2025,
    kind: 'Phone → PC controller',
    platforms: ['iOS', 'Android', 'Desktop app'],
    color: '#b5381f',
    tint: '#ffd9b0',
    tagline: 'Your phone as a mouse, keyboard, gamepad — or a throttle you twist like a real grip.',
    about: [
      'It started as a throttle for a motorcycle racing game: hold the phone like a handlebar grip, lean to steer, twist to accelerate. A keyboard is a terrible way to take a corner.',
      'It grew into a general controller. Scan the QR code shown by the desktop app and the phone becomes a mouse, a keyboard, a gamepad or a motion controller, over your own Wi-Fi.',
    ],
    facts: [
      ['Inputs', 'Motion · touch · keys · buttons'],
      ['Pairing', 'Scan a QR code from the desktop app'],
      ['Link', 'Local Wi-Fi · Bluetooth (experimental)'],
      ['Price', 'Free with ads · Pro removes them'],
    ],
    features: [
      ['Motion controller', 'Gyroscope and accelerometer become steering, lean and throttle.'],
      ['Mouse & keyboard', 'Control the computer from the sofa.'],
      ['Gamepad', 'Buttons and sticks for games that expect a controller.'],
      ['Stays local', 'Input goes only to the computer you pair with — no server in between.'],
    ],
    embed: { src: '/motion/Motorcycle%20Controller.html', caption: 'Interactive design prototype of the motorcycle grip' },
    links: [['Privacy', '/motion/privacy.html']],
  },
  {
    slug: 'xcoord',
    name: 'XCoord',
    year: 2026,
    kind: 'Location sharing',
    platforms: ['iOS', 'Android'],
    color: '#2f6b4f',
    tint: '#c9f0b8',
    tagline: 'Share where everyone is, with a small group, for a few days — then it is gone.',
    about: [
      'Make a group, share its invite code or QR, and everyone in it sees each other on the map. No account, no friend list — just a ten-character code.',
      'Positions are encrypted on the phone with a key made from that code, so the server only ever relays ciphertext. Each group expires after 1 to 15 days and is deleted with everything in it.',
    ],
    facts: [
      ['Groups', 'Join by invite code or QR'],
      ['Encryption', 'End-to-end, AES-256-GCM'],
      ['Lifetime', '1–15 days, then deleted'],
      ['Maps', 'OpenStreetMap, own tile server'],
    ],
    features: [
      ['Code is the key', 'The invite code is both how you join and what decrypts the locations.'],
      ['Expires by design', 'Pick how long a group lives. Leave, and your position is removed at once.'],
      ['Background sharing', 'Keeps sharing when the app is closed, if you allow it.'],
      ['No analytics', 'No analytics SDK and no account. Ads come from AdMob.'],
    ],
    links: [['Privacy', '/xcoord/privacy-policy.md']],
  },
  {
    slug: 'zic-hat',
    name: 'Zic Hat',
    year: 2024,
    kind: 'Location chat',
    platforms: ['iOS', 'Android'],
    color: '#c98a12',
    tint: '#fff1c7',
    tagline: 'An anonymous chatroom for the hexagon you are standing in.',
    about: [
      'The map is cut into hexagonal cells of about 0.7 km². Open the app and you are in your cell’s room, with whoever else is nearby. Walk to the next hexagon and you are in a different room.',
      'No sign-up and no profile. Messages are short — 60 characters — and you can pay to pin one to the top of the cell.',
    ],
    facts: [
      ['Room', 'Your H3 cell, about 0.7 km²'],
      ['Message', '60 characters'],
      ['Account', 'None'],
      ['Moderation', 'Automatic, on every message'],
    ],
    features: [
      ['Place is the group', 'Nobody needs to make, name or invite a chat. The location already is one.'],
      ['Short on purpose', 'Sixty characters keeps it to what is happening here, now.'],
      ['Pinned messages', 'Pay to keep a message at the top of your cell.'],
      ['Anonymous', 'Your exact coordinates are never shown to other people.'],
    ],
    embed: { src: '/zic-hat/Honeycomb%20Chat.html', caption: 'Interactive design prototype of the honeycomb rooms' },
    links: [['Privacy', '/zic-hat/privacy-policy.md'], ['Child safety', '/zic-hat/CSAE.md']],
  },
];

window.PROJECTS = PROJECTS;
