Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the main address: every page's canonical and share links, the sitemap and robots.txt use it. Cloudflare Pages also serves the same files from this repo's `main` branch at https://ascoding11.com (every merge goes live on both in a minute or two). Pull requests get a preview link on Cloudflare Pages: from Cloudflare's own Git integration for branches in this repo, and for pull requests from forks from the two `fork-preview` workflows in `.github/workflows/` (the fork's plain files, without `functions/`, uploaded to the separate Pages project `ascoding11-previews` at `https://pr-<number>.ascoding11-previews.pages.dev` and linked in a comment; they need the repo secret `CLOUDFLARE_API_TOKEN`, a Cloudflare token with Pages: Edit). Netlify is no longer used. `ads.txt` sits at the root of the repo, so both addresses serve it at `/ads.txt`. Google sign-in only works on addresses listed in Firebase (project `rumblekarts`) → Authentication → Settings → Authorized domains, so ascoding11.com needs to be listed there too. Browsers keep saved data (settings, guest accounts, drafts) per address, so the two addresses don't share it.

- `showcase/`: the landing page for ascoding11.com (a bare visit to that address, with nothing after it, is sent here by a small script at the top of `index.html`; ascoding11.github.io keeps the home page). One self-contained page: what the site is, a short tour (Docket and Prompted open with `#sample`), the Traffic panel, and the hard problems solved. Its "View the site" button goes to `/#new` (the home page with the Games card and feedback bar, see `index.html`). The Traffic numbers are pasted into the `trafficData` JSON tag in the page, in the format of the analytics dashboard's "Copy showcase numbers" button (anonymous totals only: no names, emails or visitor IDs); update them by pasting new numbers there. Counted in analytics as `showcase`.
- `index.html`: the home page, with links to the Web Development Projects, Productivity and Engineering Projects pages. Above the footer, an "Open the Back Room →" button (`#brOpen`, a `<button>` rather than a link, so it isn't a crawlable link to the hidden folder) opens the Back Room on the page without the code, the same way the code does (`reveal()`; on a phone, the phone version); the row (`.br-door`) hides once the Back Room is showing. The code (triple-click the © in the footer) still works too. A share link, the home page address followed by `#` and the Back Room's folder name (`ascoding11.com/#e63334287a3deaa3`), opens the Back Room there without the code. It's meant for the showcase page; the folder name still isn't written in the home page's source, and without the link the code is still needed. The showcase uses a second link, `ascoding11.com/#new`: it leaves the home page as it is and adds a fourth card, Games (the cards go two by two on wide screens), whose links open the whole Back Room there without the code, with its Party, Online (chat) and Leaderboard panels; this happens on phones too (`reveal(html, dir, true)`), because the phone version has no Online panel. It also loads the Back Room's "Tell us" feedback bar (`feedback.js`) at the top of the page straight away; its "Which game?" list starts with "The website, not a game" (`game: "site"`) for notes about the rest of the site. This link does write the Back Room's folder name into the home page
- `index.html`: the home page, with links to the Web Development Projects, Productivity and Engineering Projects pages. Its look (the dark blueprint hero, the Games and tools cards, the engineering picture gallery and the Back Room banner) is an inline `<style>` in its `<head>`, scoped with `:root:has(.hero)` and `#work` so it switches off by itself once the Back Room opens on the page (`reveal()` replaces the `<header class="hero">` and `<section id="work">`); keep the `.cats` grid of `.cat` cards, since `#new` adds its Games card there. The hero's "Open the Back Room" button just presses `#brOpen`. Above the footer, an "Open the Back Room →" button (`#brOpen`, a `<button>` rather than a link, so it isn't a crawlable link to the hidden folder) opens the Back Room on the page without the code, the same way the code does (`reveal()`; on a phone, the phone version); the row (`.br-door`) hides once the Back Room is showing. The code (triple-click the © in the footer) still works too. A share link, the home page address followed by `#` and the Back Room's folder name (`ascoding11.com/#e63334287a3deaa3`), opens the Back Room there without the code. It's meant for the showcase page; the folder name still isn't written in the home page's source, and without the link the code is still needed. The showcase uses a second link, `ascoding11.com/#new`: it leaves the home page as it is and adds a fourth card, Games (the cards go two by two on wide screens), whose links open the whole Back Room there without the code, with its Party, Online (chat) and Leaderboard panels; this happens on phones too (`reveal(html, dir, true)`), because the phone version has no Online panel. It also loads the Back Room's "Tell us" feedback bar (`feedback.js`) at the top of the page straight away; its "Which game?" list starts with "The website, not a game" (`game: "site"`) for notes about the rest of the site. This link does write the Back Room's folder name into the home page
- `projects/`: the Web Development Projects page, with a full card for each game
- `productivity/`: the Productivity page, with a full card for each tool
- `engineering/`: the Engineering Projects page, with a full card for each engineering project (four workbenches and one build plan, Project Daedalus)
Expand Down
6 changes: 3 additions & 3 deletions e63334287a3deaa3/holiday.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* between the TV and Skip, Esc skips, and keys do not reach the page behind.
* 2. The retro TV look ("Retro TV" switch, top right of the page, on by default; localStorage "holiday:tv" = "0"
* when switched off). The page looks as if it is on that old TV: pixel fonts, square corners, the game pictures
* in big pixels, faint scan lines with a slow band rolling down, and the snow and decorations behind the page
* in big pixels, scan lines of alternating darker and lighter bands with a slow band rolling down, and the snow and decorations behind the page
* drawn in big pixels too (BackRoomSeasons.pixel). Everything stays readable and works as usual.
* Switched off, the page is the plain winter look from seasons.js: blue, snow, the tree, the snowman, the
* menorah, the diya, gingerbread and lights.
Expand Down Expand Up @@ -60,8 +60,8 @@
'html.tv-on .br-games .gc:hover{transform:translate(-2px,-2px)!important;box-shadow:6px 6px 0 rgba(4,14,40,.5)!important}'+
'html.tv-on .btn,html.tv-on button{font-family:"Pixelify Sans",sans-serif}'+
'html.tv-on img[data-hol-src]{image-rendering:pixelated;image-rendering:crisp-edges}'+
// the glass: scan lines, a slow rolling band and darker corners; it never takes a click
'#hol-crt{position:fixed;inset:0;z-index:900;pointer-events:none;overflow:hidden;background:repeating-linear-gradient(to bottom,rgba(0,8,30,.17) 0,rgba(0,8,30,.17) 1px,transparent 1px,transparent 3px)}'+
// the glass: scan lines (alternating darker and lighter bands, like an old TV, never pure black or white), a slow rolling band and darker corners; it never takes a click
'#hol-crt{position:fixed;inset:0;z-index:900;pointer-events:none;overflow:hidden;background:repeating-linear-gradient(to bottom,rgba(0,8,30,.24) 0,rgba(0,8,30,.24) 2px,rgba(190,215,255,.06) 2px,rgba(190,215,255,.06) 4px)}'+
'#hol-crt::before{content:"";position:absolute;left:0;right:0;top:0;height:120px;background:linear-gradient(to bottom,transparent,rgba(255,255,255,.07) 45%,rgba(255,255,255,.11) 50%,rgba(255,255,255,.07) 55%,transparent);animation:hol-roll 7s linear infinite}'+
'#hol-crt::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 58%,rgba(0,6,24,.34) 100%);box-shadow:inset 0 0 0 3px rgba(0,6,24,.5)}'+
'@keyframes hol-roll{from{transform:translateY(-130px)}to{transform:translateY(105vh)}}'+
Expand Down
15 changes: 15 additions & 0 deletions e63334287a3deaa3/news/home-redesign.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"kind": "feature",
"title": "A new look for the home page",
"tags": ["Home page"],
"items": [
"The home page has a whole new design, with a dark blueprint look and a gallery of the engineering projects.",
"The retro TV look for the holidays now has stronger scan lines, like an old TV."
],
"es": {
"A new look for the home page": "Un nuevo diseño para la página principal",
"Home page": "Página principal",
"The home page has a whole new design, with a dark blueprint look and a gallery of the engineering projects.": "La página principal tiene un diseño totalmente nuevo, con un estilo de plano oscuro y una galería de los proyectos de ingeniería.",
"The retro TV look for the holidays now has stronger scan lines, like an old TV.": "El estilo de televisor retro de las fiestas ahora tiene líneas de barrido más marcadas, como una tele antigua."
}
}
Loading
Loading