mirror of
https://github.com/nicoverbruggen/ebook-fonts-showcase.git
synced 2026-03-30 09:20:10 +02:00
1.3 KiB
1.3 KiB
Showcase for ebook-fonts
This repository is just to make the source code available. You can visit the interactive showcase here: ebook-fonts.nicoverbruggen.be.
A website to showcase my font collection. Browse and preview fonts with adjustable size, line height, dark mode, and bezel color.
Project structure
public/ Web root (served to browsers)
assets/ CSS, JS, SVGs, favicons
src/ PHP includes (not web-accessible)
load_fonts.php Scans the font repo and builds the font list
Local development
./serve-locally.sh
Starts a PHP dev server on http://localhost:8888. Set PORT to use a different port.
Deployment
Fonts are cloned from ebook-fonts during the build phase (see nixpacks.toml).
OG image
The Open Graph image (public/assets/favicon/og-image.png) is a 1200x630 PNG screenshot. To regenerate it from a source image:
magick screenshot.png -strip -resize 1200x630 public/assets/favicon/og-image.png
pngquant --quality=65-80 --strip --force --output public/assets/favicon/og-image.png public/assets/favicon/og-image.png
Requires imagemagick and pngquant (brew install pngquant).