Skip to content

Redesign article page layout with banner, authors, and metadata#34

Open
juthing wants to merge 1 commit into
claude/cool-keller-sTETxfrom
claude/blissful-albattani-cEhH0
Open

Redesign article page layout with banner, authors, and metadata#34
juthing wants to merge 1 commit into
claude/cool-keller-sTETxfrom
claude/blissful-albattani-cEhH0

Conversation

@juthing

@juthing juthing commented Jun 3, 2026

Copy link
Copy Markdown
Member

Summary

This PR redesigns the article page layout with a prominent banner section, improved author display, and better structured metadata presentation. It also introduces utility filters for generating gradient backgrounds and formatting dates.

Key Changes

CSS Updates (article.css)

  • Restructured .article-page to use full width layout with new .article-content-inner wrapper for content padding and max-width constraints
  • Redesigned .article-banner with responsive aspect ratios (1300/445 on desktop, 3/4 on mobile) and proper image handling via .article-banner-img
  • Completely refactored author display:
    • Replaced .article-byline with .article-authors (flex column layout)
    • Introduced .article-author-block for individual author cards with avatar and info
    • Expanded .article-author-avatar from 24px to 42px with placeholder styling
    • Added .article-author-name and .article-author-post for better typography hierarchy
  • Simplified metadata section with new .article-dateline for date and summary
  • Improved typography: increased title font-size to 2.2rem with better line-height
  • Moved label styles to end of section (no functional change, organizational)

Template Updates (article.njk)

  • Replaced simple renderedContent output with structured article layout
  • Added banner section with gradient fallback for articles without custom banners
  • Implemented new metadata section with bilingual date and chapeau (summary)
  • Built author display with avatar, name, and post information
  • Wrapped body content in .article-body div for better styling control

Eleventy Configuration (eleventy.config.cjs)

  • Added articleGradient filter: generates deterministic CSS gradients from string IDs using hash-based hue calculation
  • Added formatDate filter: formats dates with locale support (French/English)

Content Updates

  • Added two new author profiles: Claire Dupont (Designer) and Marc Leclerc (Developer)
  • Updated article metadata to include authors and chapeau text for "Introduction" and "Quick Start" articles

Notable Implementation Details

  • Gradient generation is deterministic (same ID always produces same gradient) using string hashing
  • Responsive banner uses aspect-ratio CSS property with media query breakpoint at 700px
  • Author avatars use object-fit: cover for consistent image display
  • Bilingual support maintained with data-lang-content attributes for date and summary

https://claude.ai/code/session_01DmSJiNY6zrn43WER4qVQU8

…nd author section

- Banner full-width avec aspect-ratio 1300/445 sur desktop, 3/4 portrait sur mobile, gradient généré dynamiquement depuis l'ID de l'article
- Titre + date | résumé rapide + section auteur (avatar 42px, nom en gras, poste en dessous) avant le corps de l'article
- Filtres Eleventy articleGradient et formatDate (fr/en) pour générer les dégradés et les dates localisées sans hardcoding
- 2 auteurs de démonstration (Claire Dupont, Marc Leclerc) avec avatars dégradé placeholders
- introduction et quick-start mis à jour avec auteurs et chapeaux

https://claude.ai/code/session_01DmSJiNY6zrn43WER4qVQU8
@vercel

vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
moddy_documentation Ready Ready Preview, Comment Jun 3, 2026 3:52pm

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