Skip to content

fix: restrict owl background to index.html, isolate all non-home page classes#181

Merged
DavidKRK merged 3 commits intogh-pagesfrom
copilot/fix-background-music-page
Apr 16, 2026
Merged

fix: restrict owl background to index.html, isolate all non-home page classes#181
DavidKRK merged 3 commits intogh-pagesfrom
copilot/fix-background-music-page

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 16, 2026

Several pages were using class="home-page" on <body>, causing them to inherit the david_krk_owl.jpg background intended only for index.html.

Changes

  • music.html: Changed <body class="home-page"><body class="music-page">
  • bio.html: Changed <body class="home-page"><body class="bio-page">
  • contact.html: Changed <body class="home-page"><body class="contact-page">
  • event.html: Changed <body class="home-page"><body class="event-page">
  • shop.html: Changed <body class="home-page"><body class="shop-page">
  • assets/css/style.css: Added display: flex; flex-direction: column; to the existing body:not(.home-page) rule so all non-home pages maintain their layout; removed the separate body.music-page rule (now redundant).

body.home-page and index.html are untouched — the owl background remains exclusive to the home page.

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@DavidKRK DavidKRK marked this pull request as ready for review April 16, 2026 07:37
Copilot AI review requested due to automatic review settings April 16, 2026 07:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts page-level styling so music.html no longer inherits the body.home-page owl background, by introducing a dedicated music-page body class and corresponding CSS.

Changes:

  • Update music.html to use <body class="music-page"> instead of home-page.
  • Add a body.music-page CSS rule to apply the non-home background and establish a flex column layout for the page.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
music.html Switches <body> class to music-page to prevent home-page background inheritance.
assets/css/style.css Adds body.music-page styling to control background/layout for the music page.

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

Comment thread assets/css/style.css Outdated
Comment thread music.html
</style>
</head>
<body class="home-page">
<body class="music-page">
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

The PR description says the owl background is intended only for the home page, but several other pages in the repo still use class="home-page" on <body> (e.g., bio.html, contact.html, event.html, shop.html). If the intent is to restrict the owl background to index.html only, those pages would also need their <body> class updated (or the CSS selector changed to target index.html more specifically).

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Applied in 04804a0. Updated bio.html, contact.html, event.html, and shop.html to use page-specific classes (bio-page, contact-page, event-page, shop-page).

index.html is the only page that keeps class="home-page" and the owl background. All other pages now fall under body:not(.home-page) which applies the teal background (#416e73) and the flex column layout.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI changed the title fix: isolate music-page background, restore home-page owl image fix: restrict owl background to index.html, isolate all non-home page classes Apr 16, 2026
Copilot AI requested a review from DavidKRK April 16, 2026 07:58
Copy link
Copy Markdown
Owner

@DavidKRK DavidKRK left a comment

Choose a reason for hiding this comment

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

OK pour les changements

@DavidKRK DavidKRK merged commit 3fd9854 into gh-pages Apr 16, 2026
5 of 6 checks passed
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.

3 participants