caelum0x b837e72503 fix(rithub): OAuth-first CTA on home + sign_up — real measured conversion fix
Caddy access-log measurement (bots/scanners excluded) found ~80 unique
real visitors hit rithub.dev/ in a 4h window but only ~2 ever reached
/user/sign_up and only 1 ever hit /user/oauth2/*, despite GitHub+Google
OAuth already being fully configured and working (`gitea admin auth
list` confirms both live, 307 redirects verified). Root cause: the
primary homepage CTA sent visitors to a 4-field (username/email/
password x2) + Cloudflare Turnstile manual form, with the one-click
OAuth option rendered only as a secondary link below a divider at the
bottom of that form — violates the owner's one-click/no-forms rule.

- home.tmpl: "Continue with GitHub" (OAuth) is now the primary hero
  button; "Sign up with email" is the secondary fallback.
- signup_inner.tmpl: moved the oauth_container include above the
  manual fields (pure reorder, same $showOAuth2Methods gate, no form
  binding/backend logic touched).

Live-verified: homepage primary CTA -> /user/oauth2/GitHub -> real
GitHub authorize redirect (307); /user/sign_up now renders OAuth
buttons before the manual form; /user/login, /explore/repos, /privacy,
/terms, /mcp-docs all unaffected (200).
2026-11-19 16:32:36 +03:00
..