Commit Graph

7 Commits

Author SHA1 Message Date
Brummel 50db22dc50 fix(markup): match live twig templates for anchor wrap and content wrap
Three corrections after diffing the rebuild against the actual theme
twig templates (modular/news.html.twig, employees.html.twig,
about.html.twig):

1. section_title macro learns a `with_anchor` flag for the case where
   live always wraps the h2 in `<div class="anchor" id="">` even with
   an empty anchor id. Default behavior unchanged.

2. team_carousel macro drops its `.anchor` wrapper around the title.
   employees.html.twig renders the h2 directly — including the wrapper
   was producing an extra layout element on /team that live doesn't
   have.

3. index.html's news section now calls section_title with
   with_anchor=true and wraps the loaded news content in an outer <p>,
   reproducing the grav markdown pipeline's behavior (the outer <p>
   auto-closes on the first inner <p>, leaving one leading empty <p>
   that contributes the expected 10px margin).
2026-05-21 12:16:06 +02:00
Brummel 181e9639ed fix(images): drop forced upscaling, match live image sizes
The image macro was resizing every call to its width arg, including
upscaling 270x180 service thumbnails to 600x400 and rendering 400x400
doctor portraits at full size. Live serves service thumbs at native
270x180 (CSS-floated) and doctor portraits at 200x200.

- image macro: width=0 (default) skips resize, emits raw <img> with no
  width/height — lets theme CSS do the sizing, matching live pattern
- img shortcode: defaults width to 0 so callers can omit it
- service grid (home + 7 service pages): drop width=600
- doctor portraits on /team: width=200 (matches live render)
2026-05-21 09:48:43 +02:00
Brummel f03b67e675 feat: home page section_title macros and restored markup
Restores the markup contracts the theme CSS expects on the home page:
- imports section_title macro (st) and calls it on all four sections
- news/about/services/team sections get bordered-icon headings via macro
- service cards use thumbnail/caption/clearfix structure (2-col grid)
- team portraits use figure/figcaption with small for position
- gray-bg (not bg-gray) on the services section
2026-05-21 00:08:25 +02:00
Brummel 3709c94d59 fix: remove Google Maps embed for GDPR compliance
The live site had the Maps iframe removed because third-party embeds
trigger cookie-consent obligations under GDPR. The Phase-1 1:1 pass
accidentally reintroduced it; this commit removes:

- the inline iframe on the home page (templates/index.html)
- the map() shortcode (templates/shortcodes/map.html)
- the {{ map() }} call on the contact page (content/contact.md)

Do not re-add without a working consent gate.
2026-05-20 23:43:45 +02:00
Brummel 441f3b7ed9 feat: legal (Impressum), contact, page template, and map shortcode
- page.html generic single-page template
- legal.md with slug=impressum to match live URL
- contact.md with practice info, hours, map embed
- map shortcode (iframe-based) usable from markdown
- Home template inlines the map iframe directly (shortcodes can't be called from templates)
2026-05-20 22:49:02 +02:00
Brummel 9cf54f9459 feat: home page template with carousel, news, about, services, team sections
- Extends base.html, uses shared image macro for resize_image
- Refactored img shortcode to forward to macros/image.html (DRY)
- News pulled via get_page from content/news.md
- Notfall section skipped (was unpublished in grav)
- Map call commented out until shortcode lands in Task 20
2026-05-20 22:39:59 +02:00
Brummel 733d7fea61 feat: zola skeleton with placeholder index
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 22:26:25 +02:00