Skip to content

Commit 21d4c7c

Browse files
authored
Merge pull request #333 from ASCoding11/claude/lucid-hawking-t8pygi
New home page design, and stronger holiday TV scan lines
2 parents aaab3c1 + ad78ab3 commit 21d4c7c

4 files changed

Lines changed: 258 additions & 64 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
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.
44

55
- `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`.
6-
- `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
6+
- `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
77
- `projects/`: the Web Development Projects page, with a full card for each game
88
- `productivity/`: the Productivity page, with a full card for each tool
99
- `engineering/`: the Engineering Projects page, with a full card for each engineering project (four workbenches and one build plan, Project Daedalus)

‎e63334287a3deaa3/holiday.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* between the TV and Skip, Esc skips, and keys do not reach the page behind.
1717
* 2. The retro TV look ("Retro TV" switch, top right of the page, on by default; localStorage "holiday:tv" = "0"
1818
* when switched off). The page looks as if it is on that old TV: pixel fonts, square corners, the game pictures
19-
* in big pixels, faint scan lines with a slow band rolling down, and the snow and decorations behind the page
19+
* 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
2020
* drawn in big pixels too (BackRoomSeasons.pixel). Everything stays readable and works as usual.
2121
* Switched off, the page is the plain winter look from seasons.js: blue, snow, the tree, the snowman, the
2222
* menorah, the diya, gingerbread and lights.
@@ -60,8 +60,8 @@
6060
'html.tv-on .br-games .gc:hover{transform:translate(-2px,-2px)!important;box-shadow:6px 6px 0 rgba(4,14,40,.5)!important}'+
6161
'html.tv-on .btn,html.tv-on button{font-family:"Pixelify Sans",sans-serif}'+
6262
'html.tv-on img[data-hol-src]{image-rendering:pixelated;image-rendering:crisp-edges}'+
63-
// the glass: scan lines, a slow rolling band and darker corners; it never takes a click
64-
'#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)}'+
63+
// 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
64+
'#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)}'+
6565
'#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}'+
6666
'#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)}'+
6767
'@keyframes hol-roll{from{transform:translateY(-130px)}to{transform:translateY(105vh)}}'+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"kind": "feature",
3+
"title": "A new look for the home page",
4+
"tags": ["Home page"],
5+
"items": [
6+
"The home page has a whole new design, with a dark blueprint look and a gallery of the engineering projects.",
7+
"The retro TV look for the holidays now has stronger scan lines, like an old TV."
8+
],
9+
"es": {
10+
"A new look for the home page": "Un nuevo diseño para la página principal",
11+
"Home page": "Página principal",
12+
"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.",
13+
"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."
14+
}
15+
}

0 commit comments

Comments
 (0)