diff --git a/README.md b/README.md index 48958f2..4aa27d0 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ constellation. | `avatar/org-avatar.png` (500px), `@2x` (1000px) | GitHub org profile picture | | `avatar/mark.svg`, `mark.png`, `mark@2x.png` | Transparent mark for READMEs and docs | | `social/.png` (1280×640) | GitHub social preview for each repo | +| `banner/.png` (1280×320), `@2x` (2560×640) | README header for each repo; `banner/suite.png` for the org profile and website | | `app-icon/ic_launcher.svg`, `play-store.png` (512px) | Android app launcher icon and Play Store icon | ## Quick start diff --git a/banner/D-Modem.png b/banner/D-Modem.png new file mode 100644 index 0000000..89aed4a Binary files /dev/null and b/banner/D-Modem.png differ diff --git a/banner/D-Modem.svg b/banner/D-Modem.svg new file mode 100644 index 0000000..fc2c510 --- /dev/null +++ b/banner/D-Modem.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +D-Modem/D-Modem + + + +D-Modem / +D-Modem +V.92 softmodem over SIP +No modem hardware. V.92 / V.90 / V.34 / fax. + + + + + + + + diff --git a/banner/D-Modem@2x.png b/banner/D-Modem@2x.png new file mode 100644 index 0000000..a611d3d Binary files /dev/null and b/banner/D-Modem@2x.png differ diff --git a/banner/app.png b/banner/app.png new file mode 100644 index 0000000..d1e3492 Binary files /dev/null and b/banner/app.png differ diff --git a/banner/app.svg b/banner/app.svg new file mode 100644 index 0000000..15cf7f7 --- /dev/null +++ b/banner/app.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +D-Modem/app + + + +D-Modem / +app +A dial-up modem in your pocket +Android app: V.92 over a SIP call. + + + + + + + + diff --git a/banner/app@2x.png b/banner/app@2x.png new file mode 100644 index 0000000..f458d88 Binary files /dev/null and b/banner/app@2x.png differ diff --git a/banner/bbs.png b/banner/bbs.png new file mode 100644 index 0000000..a9f65a1 Binary files /dev/null and b/banner/bbs.png differ diff --git a/banner/bbs.svg b/banner/bbs.svg new file mode 100644 index 0000000..6527e72 --- /dev/null +++ b/banner/bbs.svg @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +D-Modem/bbs + + + +D-Modem / +bbs +A bulletin board for every caller +Telnet, TN3270 and modem callers, in Go. + + + + +BBS_ +[M]sg [F]iles + + + + diff --git a/banner/bbs@2x.png b/banner/bbs@2x.png new file mode 100644 index 0000000..f57bad5 Binary files /dev/null and b/banner/bbs@2x.png differ diff --git a/banner/brand.png b/banner/brand.png new file mode 100644 index 0000000..a016d38 Binary files /dev/null and b/banner/brand.png differ diff --git a/banner/brand.svg b/banner/brand.svg new file mode 100644 index 0000000..9b4de81 --- /dev/null +++ b/banner/brand.svg @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +D-Modem/brand + + + +D-Modem / +brand +Logos, colours and type +The mark, the Rainbow Books, Sauce Code Pro. + + + + + + diff --git a/banner/brand@2x.png b/banner/brand@2x.png new file mode 100644 index 0000000..4cad8ec Binary files /dev/null and b/banner/brand@2x.png differ diff --git a/banner/go3270.png b/banner/go3270.png new file mode 100644 index 0000000..e5e4441 Binary files /dev/null and b/banner/go3270.png differ diff --git a/banner/go3270.svg b/banner/go3270.svg new file mode 100644 index 0000000..5b490c0 --- /dev/null +++ b/banner/go3270.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +D-Modem/go3270 + + + +D-Modem / +go3270 +Go servers for 3270 terminals +Build TN3270 data streams from fields. + + +TN3270 === +USERIDPASSWDCMD ==> + + + + + diff --git a/banner/go3270@2x.png b/banner/go3270@2x.png new file mode 100644 index 0000000..784f0c2 Binary files /dev/null and b/banner/go3270@2x.png differ diff --git a/banner/hardware.png b/banner/hardware.png new file mode 100644 index 0000000..4264cdb Binary files /dev/null and b/banner/hardware.png differ diff --git a/banner/hardware.svg b/banner/hardware.svg new file mode 100644 index 0000000..da02ce0 --- /dev/null +++ b/banner/hardware.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +D-Modem/hardware + + + +D-Modem / +hardware +pico-serial +RP2040 serial and phone-line USB sticks. + + + + + + + + + diff --git a/banner/hardware@2x.png b/banner/hardware@2x.png new file mode 100644 index 0000000..af29690 Binary files /dev/null and b/banner/hardware@2x.png differ diff --git a/banner/menu.png b/banner/menu.png new file mode 100644 index 0000000..c1c202a Binary files /dev/null and b/banner/menu.png differ diff --git a/banner/menu.svg b/banner/menu.svg new file mode 100644 index 0000000..6b2a8ac --- /dev/null +++ b/banner/menu.svg @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +D-Modem/menu + + + +D-Modem / +menu +modemmenu +Login and menu for dial-up callers. + + +login: _ +1) BBS +2) PPP +3) Shell + + + + diff --git a/banner/menu@2x.png b/banner/menu@2x.png new file mode 100644 index 0000000..18b5373 Binary files /dev/null and b/banner/menu@2x.png differ diff --git a/banner/suite.png b/banner/suite.png new file mode 100644 index 0000000..eabf985 Binary files /dev/null and b/banner/suite.png differ diff --git a/banner/suite.svg b/banner/suite.svg new file mode 100644 index 0000000..55ba86b --- /dev/null +++ b/banner/suite.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +D-Modem +An open dial-up suite +V.92 softmodem, app, boards, BBS and login, all open. + + + + + + + + diff --git a/banner/suite@2x.png b/banner/suite@2x.png new file mode 100644 index 0000000..d314699 Binary files /dev/null and b/banner/suite@2x.png differ diff --git a/docs/assets.md b/docs/assets.md index aaa0dde..773107c 100644 --- a/docs/assets.md +++ b/docs/assets.md @@ -9,6 +9,21 @@ | ![bbs](../social/bbs.png) | ![go3270](../social/go3270.png) | | ![brand](../social/brand.png) | | +## README banners + +`banner/.svg` is the 1280×320 header at the top of each repository's +README, rendered to `banner/.png` and `banner/@2x.png`. +`banner/suite.png` is the organization's own, for the profile and website. + +Each repository keeps a copy of its `@2x` PNG at `.github/banner.png` and +shows it above its title: + +```html +D-Modem/<repo>: <tagline> +``` + +![bbs banner](../banner/bbs.png) + ## Uploading to GitHub GitHub has no API for these, so they are uploaded by hand: diff --git a/docs/readme-template.md b/docs/readme-template.md index 1e4bf54..e75af9e 100644 --- a/docs/readme-template.md +++ b/docs/readme-template.md @@ -5,6 +5,8 @@ detail lives in the repository's `docs/` (bbs: `docs/wiki/`), which also feeds its website. ```markdown +D-Modem/<repo>: <tagline> + # diff --git a/tools/gen.py b/tools/gen.py index c02f6f9..a8ced51 100644 --- a/tools/gen.py +++ b/tools/gen.py @@ -36,6 +36,10 @@ REPOS = { chips=["SVG", "PNG", "Rainbow Books", "Sauce Code Pro"]), } +# The organization's own banner (profile and website): the mark itself, in all six Books. +SUITE = dict(book="Rainbow", color="#9fb0d8", icon="mark", + tag="An open dial-up suite", sub="V.92 softmodem, app, boards, BBS and login, all open.") + def wave_path(x0, x1, y, amp, cycles, analog_frac=0.55): """Sine on the left turning into square pulses on the right: analog to digital.""" @@ -138,6 +142,8 @@ def icon(kind, c): sw = 'stroke-width="14" stroke-linecap="round" stroke-linejoin="round" fill="none"' if kind == "wave": return mark(300, c, bg=False) + if kind == "mark": + return mark(300, bg=False) if kind == "phone": return f''' @@ -221,6 +227,47 @@ def social(name, r): ''' +def banner(name, r): + """A 1280x320 README header: icon panel, mark, name and tagline, the carrier along the bottom.""" + c, W, H = r["color"], 1280, 320 + size = 96 if len(name) <= 6 else 84 + spine = (f'' if name == "suite" + else f'') + label = "D-Modem" if name == "suite" else f"D-Modem/{name}" + title = "D-Modem" if name == "suite" else name + prefix = "" if name == "suite" else (f'{mark(44, bg=False)}' + f'D-Modem /') + ty = 174 if prefix else 156 + n = len(BOOKS) + stops = "".join(f'' + for i, (_, _, col) in enumerate(BOOKS)) + return f''' +{defs(c)} + + + + + + + {stops} + + + + + +{spine} +{"" if name == "suite" else f'{label}'} +{prefix} +{title} +{r["tag"]} +{r["sub"]} + +{icon(r["icon"], c)} + + +''' + + def mark_only(): """The mark on a transparent background, for READMEs and docs.""" return f''' @@ -241,3 +288,5 @@ if __name__ == "__main__": write("avatar/mark.svg", mark_only()) for n, r in REPOS.items(): write(f"social/{n}.svg", social(n, r)) + write(f"banner/{n}.svg", banner(n, r)) + write("banner/suite.svg", banner("suite", SUITE)) diff --git a/tools/render.js b/tools/render.js index 26860dd..1eb8794 100644 --- a/tools/render.js +++ b/tools/render.js @@ -1,16 +1,16 @@ // Renders avatar/*.svg, social/*.svg and app-icon/*.svg to PNGs next to them, using Playwright's Chromium. -// The avatar also gets a 2x (1000px) export. Needs Sauce Code Pro (Nerd Font Mono) installed for the text. +// The avatar and the README banners also get a 2x export. Needs Sauce Code Pro (Nerd Font Mono) installed for the text. const { chromium } = require('playwright'); const fs = require('fs'), path = require('path'); const root = path.join(__dirname, '..'); (async () => { const browser = await chromium.launch(); - for (const dir of ['avatar', 'social', 'app-icon']) { + for (const dir of ['avatar', 'social', 'app-icon', 'banner']) { for (const f of fs.readdirSync(path.join(root, dir)).filter(f => f.endsWith('.svg'))) { const svg = fs.readFileSync(path.join(root, dir, f), 'utf8'); const [, w, h] = svg.match(/width="(\d+)" height="(\d+)"/); - const scales = dir === 'avatar' ? [1, 2] : [1]; + const scales = dir === 'avatar' || dir === 'banner' ? [1, 2] : [1]; for (const scale of scales) { const page = await browser.newPage({ viewport: { width: +w, height: +h }, deviceScaleFactor: scale }); await page.setContent(`${svg}`);