Skip to content

feat(branding): add logo/favicon, rename to Librarian, widen layout#9

Merged
dosaki merged 1 commit into
mainfrom
feat/librarian-branding
Jun 12, 2026
Merged

feat(branding): add logo/favicon, rename to Librarian, widen layout#9
dosaki merged 1 commit into
mainfrom
feat/librarian-branding

Conversation

@dosaki

@dosaki dosaki commented Jun 12, 2026

Copy link
Copy Markdown
Member

Summary

  • Wires docs/icon.svg into the app as both the favicon and an inline logo, served under static/ — a committed symlink in dev (live editing) and a real copy baked in at Docker build time (self-contained image).
  • Adds a reusable _brand.html partial (logo + wordmark) and includes it across all pages, replacing the hardcoded brand text.
  • Renames the brand from "TKC Library" to "Librarian" in page titles, the homepage heading, and the wordmark.
  • Widens the page container from 720px1080px so the book grid has more room.

Notes

  • app/static/brand/logo.svg is committed as a symlink (mode 120000) → docs/icon.svg. The Dockerfile replaces it with a real copy at build time so the runtime image doesn't depend on symlink resolution.
  • The physical-location reference on the About page ("borrow and return books in the TKC Library at Kirby Street") is intentionally left unchanged — that's the building, not the app.

Verification

  • About page renders with the Librarian brand; Kirby Street prose preserved.
  • GET /static/brand/logo.svg returns 200 with Content-Type: image/svg+xml, byte-identical to docs/icon.svg.
  • Docker build step (symlink → real copy) validated in isolation: produces a real file, bytes match source.

🤖 Generated with Claude Code

Wire docs/icon.svg into the app as both favicon and inline logo:
served under static/ via a committed symlink in dev and a real
copy baked in at Docker build time. Add a reusable _brand.html
partial (logo + wordmark) and include it across all pages.

Rename the brand from "TKC Library" to "Librarian" in titles,
headings, and the wordmark. The physical-location reference in
the about page ("TKC Library at Kirby Street") is left as-is.

Widen the page container from 720px to 1080px so the book grid
has more room.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 12, 2026 09:52
@dosaki dosaki merged commit d6d6057 into main Jun 12, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the app’s branding by introducing a new SVG logo/favicon, centralizing the brand lockup into a reusable template partial, renaming “TKC Library” to “Librarian” across titles/headings, and widening the main container to better fit the book grid.

Changes:

  • Add docs/icon.svg and wire it in as /static/brand/logo.svg for favicon + logo usage (with a Docker build step to materialize the file).
  • Introduce app/templates/_brand.html and replace hardcoded brand text with the shared partial across most templates.
  • Update default/page titles to “Librarian” and widen .container from 720px to 1080px.

Reviewed changes

Copilot reviewed 12 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
docs/icon.svg Adds the new SVG brand mark source asset.
Dockerfile Ensures the runtime image contains a real app/static/brand/logo.svg copy of the SVG.
app/templates/base.html Updates default title, adds favicon links, widens container, and updates brand CSS.
app/templates/_brand.html New shared brand lockup partial (logo + wordmark).
app/library/templates/library/index.html Updates title/heading and swaps in the shared brand partial in the header.
app/library/templates/library/dashboard.html Updates title and swaps in the shared brand partial.
app/library/templates/library/add_book.html Updates title and swaps in the shared brand partial in the header.
app/borrower/templates/borrower/dashboard.html Updates title to “Librarian”.
app/borrower/templates/borrower/borrow_history.html Updates title to “Librarian”.
app/admin/templates/admin/users.html Updates title and swaps in the shared brand partial.
app/admin/templates/admin/dashboard.html Updates title and swaps in the shared brand partial.
app/admin/templates/admin/borrowers.html Updates title and swaps in the shared brand partial.
app/about/templates/about/about.html Updates title and swaps in the shared brand partial.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/templates/base.html
Comment on lines +43 to +50
.brand {
color: var(--brand);
font-weight: 700;
font-size: 1.1rem;
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
{% extends "base.html" %}

{% block title %}Borrower Dashboard - TKC Library{% endblock %}
{% block title %}Borrower Dashboard - Librarian{% endblock %}
{% extends "base.html" %}

{% block title %}Borrow History - TKC Library{% endblock %}
{% block title %}Borrow History - Librarian{% endblock %}
Comment thread app/templates/_brand.html
Comment on lines +4 to +7
<div class="brand">
<img class="brand-logo" src="{{ url_for('static', filename='brand/logo.svg') }}" alt="Librarian logo" />
<span>Librarian</span>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants