Skip to content
dotliftPublic

About

CBT Landing Page

Resources

Stars

0 stars

Watchers

2 watching

Forks

Repository files navigation

Website for CBT

This project is using Percy.io for visual regression testing.

This source folder holds the source code for Website for Community Builder Toolbox, Inc.

The site is plain static HTML

The 2026 redesign has no build step. Netlify serves the files as they are.

index.html            English page (/)
zh/index.html         Chinese page (/zh/)
assets/site/site.css  Styles for both pages ("Community Editorial" design)
assets/site/site.js   Phone menu toggle; the pages work without it
assets/img/site/      Photos from past ZaiGeZaiGu events, with AVIF and WebP copies in several widths
files/                W-9 and 501(c)(3) letter PDFs
tools/                One-off Node scripts for images and the inline CSS (not used by the pages)
robots.txt            Tells crawlers where the sitemap is
sitemap.xml           The two pages and their language versions
_redirects            Netlify redirects (old /index_zh.html goes to /zh/)

Both pages have the same sections: communities, toolbox, join. The builders and sponsors sections are removed for now; git history keeps them.

The design uses warm white paper, near-black text and one tomato red (--red in site.css). Headings use the Source Serif 4 font (Noto Serif SC on the Chinese page). Body text uses Inter. Check new text colors against the paper and the red panels for a contrast ratio of 4.5:1 or more. When you change one page, change the other page too.

Two steps keep the pages fast on slow phones

The pages inline a copy of site.css in <style id="site-css">, so the browser can draw the page without a second request. After you edit site.css, run node tools/inline-css.js. Run node tools/inline-css.js --check to see if a page is out of date.

The photos use <picture> with AVIF and WebP copies. After you add or replace a photo, add it to tools/images.js, run npm i --no-save sharp and node tools/images.js, and update the srcset attributes in both pages.

On a 2G or 3G connection the pages skip the web fonts and use the fonts on the device. The <head> starts with the title, description, canonical URL, share cards and schema.org data. Change both pages when you change these.

To preview, run a static server in this folder and open http://localhost:8000:

python3 -m http.server 8000

The old Argon/Bootstrap files (assets/aragon, assets/vendor, build, custom, package.json) are no longer used by the pages.

About

CBT Landing Page

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages