Skip to content

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

Closed
DavidKRK wants to merge 3 commits into
copilot/fix-background-music-pagefrom
gh-pages
Closed

fix: restrict owl background to index.html, isolate all non-home page…#182
DavidKRK wants to merge 3 commits into
copilot/fix-background-music-pagefrom
gh-pages

Conversation

@DavidKRK

Copy link
Copy Markdown
Owner

… classes (#181)

  • fix: restore background-image on index.html, isolate music-page class

Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/5d42fd6d-80f7-40cc-a2fe-311924b01ece

  • Update assets/css/style.css

  • fix: update all non-home pages to use page-specific body classes

Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/a7c79463-e3b3-4a62-94a6-3ba779a4d323



name: Pull Request
about: Proposer un changement au projet
title: ''
labels: ''
assignees: ''


1. Quels sont les changements ?

Résumé des changements :

(Décrivez brièvement les modifications apportées.)

Tickets / Issues liés :

  • Closes #
  • Ref #

2. Pourquoi ces changements ?

Contexte métier :

(Expliquez la raison fonctionnelle ou business de ces changements.)

Justification technique :

(Expliquez les choix d'architecture ou d'implémentation retenus.)


3. Tests

Tests unitaires :

  • Nouveaux tests ajoutés
  • Tests existants mis à jour
  • Tous les tests passent (npm test / bundle exec rspec / …)

Tests manuels :

  • Testé en local
  • Testé sur un environnement de staging / preview

Performances & Sécurité :

  • Impact sur les performances évalué
  • Aucune vulnérabilité introduite (dépendances, injection, XSS, …)

4. Changements majeurs (Breaking Changes)

Cette PR introduit-elle des ruptures d'API ou de comportement ?

  • Non
  • Oui — détails ci-dessous :

(Décrivez les ruptures et les impacts pour les consommateurs de l'API / les autres équipes.)

Instructions de migration :

(Si applicable, décrivez les étapes nécessaires pour migrer.)


5. Exigences de déploiement

  • Migrations de base de données à exécuter
  • Nouvelles variables d'environnement à configurer (listez-les ci-dessous)
  • Feature flags à activer / désactiver
  • Services tiers à configurer ou notifier
  • Documentation mise à jour

Variables d'environnement :

Variable Description Valeur par défaut
NOM_VAR Description valeur

Notes de déploiement supplémentaires :

(Toute information utile pour l'équipe de déploiement.)

… classes (#181)

* fix: restore background-image on index.html, isolate music-page class

Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/5d42fd6d-80f7-40cc-a2fe-311924b01ece

Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com>

* Update assets/css/style.css

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: update all non-home pages to use page-specific body classes

Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/a7c79463-e3b3-4a62-94a6-3ba779a4d323

Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@bolt-new-by-stackblitz

Copy link
Copy Markdown

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

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the body classes for several sub-pages (bio, contact, event, music, and shop) and adjusts the CSS for non-home pages to use flexbox. Feedback suggests consolidating duplicate flexbox properties into a common body selector and removing redundant background-image divs across the HTML files to clean up the DOM.

Comment thread assets/css/style.css Outdated
Comment on lines +262 to +263
display: flex;
flex-direction: column;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

These flexbox properties are identical to those defined for body.home-page (lines 251-252). Since they are now applied to both home and non-home pages, it would be more maintainable to move them to a common body selector to avoid duplication and adhere to the DRY (Don't Repeat Yourself) principle.

Comment thread bio.html
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body class="home-page">
<body class="bio-page">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

While updating the body class to bio-page, note that the <div class="background-image"></div> on line 40 appears to be redundant. The background is now managed via the body class in style.css, and this page does not import responsive.css where this div might have been used. Consider removing it to clean up the DOM.

Comment thread music.html
</style>
</head>
<body class="home-page">
<body class="music-page">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Similar to other sub-pages, the <div class="background-image"></div> on line 97 seems redundant now that the background is handled by the body class. Since responsive.css is not imported here, this div is likely unused and can be removed to avoid unnecessary elements in the DOM.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 fixes unintended inheritance of the home page owl background by ensuring only index.html uses the home-page body class, while all other pages use page-specific body classes and share a consistent non-home layout style.

Changes:

  • Updated non-home HTML pages to use page-specific <body class="…-page"> instead of home-page.
  • Extended the existing body:not(.home-page) CSS rule to apply display: flex and flex-direction: column across all non-home pages.
  • Kept body.home-page styling intact so the owl background remains exclusive to the home page.

Reviewed changes

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

Show a summary per file
File Description
shop.html Switches body class to shop-page to avoid inheriting home background styles.
music.html Switches body class to music-page to avoid inheriting home background styles.
event.html Switches body class to event-page to avoid inheriting home background styles.
contact.html Switches body class to contact-page to avoid inheriting home background styles.
bio.html Switches body class to bio-page to avoid inheriting home background styles.
assets/css/style.css Ensures non-home pages share the same flex column body layout via body:not(.home-page).

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

…index.html (#184)

Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/28085f91-8e33-4a62-8391-35151e5a9bf3

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com>
#185)

* fix: apply owl background image to all pages, fix duplicate image on index.html

Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/28085f91-8e33-4a62-8391-35151e5a9bf3

Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com>

* fix: add background-color fallback to body for image load failures

Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/400980e0-28f8-4279-bb21-d6468464f2dd

Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@DavidKRK

Copy link
Copy Markdown
Owner Author

@copilot resolve the merge conflicts in this pull request

Copilot AI commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

@DavidKRK I can’t apply these changes because the pull request’s branch is the repository’s default branch, which I’m not allowed to push to directly.

You can ask me to create a new pull request with the requested changes instead and I'll open a separate PR on a new branch.

@DavidKRK

Copy link
Copy Markdown
Owner Author

create a new pull request with the requested changes instead and I'll open a separate PR on a new branch.

@copilot create a new pull request with the requested changes instead and I'll open a separate PR on a new branch.

Copilot AI commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

@DavidKRK I've opened a new pull request, #186, to work on those changes. Once the pull request is ready, I'll request review from you.

@DavidKRK

Copy link
Copy Markdown
Owner Author

@DavidKRK I've opened a new pull request, #186, to work on those changes. Once the pull request is ready, I'll request review from you.

@copilot What do I do now here ?

Copilot AI commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

@DavidKRK I can’t apply these changes because the pull request’s branch is the repository’s default branch, which I’m not allowed to push to directly.

You can ask me to create a new pull request with the requested changes instead and I'll open a separate PR on a new branch.

@DavidKRK

Copy link
Copy Markdown
Owner Author

@copilot resolve the merge conflicts in this pull request

@DavidKRK DavidKRK closed this Apr 17, 2026
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.

5 participants