Skip to content

refactor(legal): extract shared legal page layout - #17

Merged
kamycoding merged 1 commit into
mainfrom
refactor/legal-pages-layout
Aug 9, 2026
Merged

refactor(legal): extract shared legal page layout#17
kamycoding merged 1 commit into
mainfrom
refactor/legal-pages-layout

Conversation

@kamycoding

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings August 9, 2026 12:16
@kamycoding
kamycoding merged commit e34e139 into main Aug 9, 2026
1 check passed
@kamycoding
kamycoding deleted the refactor/legal-pages-layout branch August 9, 2026 12:17

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 refactors the legal pages to reuse a new shared LegalPageLayout standalone component, reducing duplicated markup/styles between Privacy Policy and Legal Notice pages while keeping page-specific content projected into the shared layout.

Changes:

  • Added a new shared LegalPageLayout component (template/styles) plus unit tests.
  • Updated Privacy Policy and Legal Notice pages to use <app-legal-page-layout> with projected content.
  • Simplified page-specific CSS and adjusted existing specs to target the shared layout’s selectors.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/app/shared/legal-page-layout/legal-page-layout.ts New shared standalone component providing a consistent legal page shell with required title input.
src/app/shared/legal-page-layout/legal-page-layout.html Shared layout template (hero/title, back link, projected content, light footer).
src/app/shared/legal-page-layout/legal-page-layout.css Shared layout styling for legal pages (hero, back link, content container, footer spacing).
src/app/shared/legal-page-layout/legal-page-layout.spec.ts New unit tests verifying title signal input rendering and content projection.
src/app/pages/privacy-policy/privacy-policy.ts Switched Privacy Policy page to import and use LegalPageLayout.
src/app/pages/privacy-policy/privacy-policy.html Wrapped Privacy Policy content with <app-legal-page-layout> and projected existing sections.
src/app/pages/privacy-policy/privacy-policy.css Removed duplicated layout CSS; kept content typography/link styling for projected content.
src/app/pages/privacy-policy/privacy-policy.spec.ts Updated selector expectations to match shared .legal-page__back.
src/app/pages/legal-notice/legal-notice.ts Switched Legal Notice page to import and use LegalPageLayout.
src/app/pages/legal-notice/legal-notice.html Wrapped Legal Notice content with <app-legal-page-layout> and projected sections/updated timestamp.
src/app/pages/legal-notice/legal-notice.css Removed duplicated layout CSS; set layout CSS variables and kept page-specific content styling.
src/app/pages/legal-notice/legal-notice.spec.ts Updated selector expectations to match shared .legal-page__back.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

background-repeat: no-repeat;
background-position: center bottom;
background-size: 100% 100%;
color: var(--color-foreground);
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