feat: Header logo, gold-to-rusty-red title gradient, and /static asset folder #17
Reference in New Issue
Block a user
Delete Branch "feat/header-logo-and-title-gradient"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Replaces the generic
<Dog>Lucide icon in the navbar with a custombr-logo.pngimage, applies a medium-dark gold → rusty dark red-gold gradient to theBREEDRtitle, and wires up a/static/directory served by Express.Changes
client/src/App.jsxDogimport fromlucide-react<Dog size={32} />with<img src="/static/br-logo.png" alt="BREEDR Logo" className="brand-logo" />client/src/App.css.brand-logoclass:height: 2.5rem,width: auto,object-fit: contain(scales to2remon mobile).brand-textgradient:#c9940a(med-dark gold) →#b5620a(burnt gold) →#8b2500(rusty dark red)server/index.jsSTATIC_PATHconstant (default:../static, overridable viaSTATIC_PATHenv var)static/directory on startup if missingapp.use('/static', express.static(STATIC_PATH))middlewareStatic: ${STATIC_PATH}to startup logclient/vite.config.js/staticproxy entry →http://localhost:3000so the logo loads correctly in dev mode (Vite on :5173)static/.gitkeepstatic/directory in gitbr-logo.pnghere — it will be served at/static/br-logo.pngDeployment note
Copy
br-logo.pnginto thestatic/directory on the server. The Express middleware auto-creates the folder, but the file itself is not committed (add to.gitignoreif desired to keep binary assets out of git).