fix: restrict owl background to index.html, isolate all non-home page…#182
fix: restrict owl background to index.html, isolate all non-home page…#182DavidKRK wants to merge 3 commits into
Conversation
… 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>
|
|
There was a problem hiding this comment.
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.
| display: flex; | ||
| flex-direction: column; |
There was a problem hiding this comment.
| <link rel="stylesheet" href="assets/css/style.css"> | ||
| </head> | ||
| <body class="home-page"> | ||
| <body class="bio-page"> |
There was a problem hiding this comment.
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.
| </style> | ||
| </head> | ||
| <body class="home-page"> | ||
| <body class="music-page"> |
There was a problem hiding this comment.
There was a problem hiding this comment.
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 ofhome-page. - Extended the existing
body:not(.home-page)CSS rule to applydisplay: flexandflex-direction: columnacross all non-home pages. - Kept
body.home-pagestyling 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>
|
@copilot resolve the merge conflicts in this pull request |
|
@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. |
@copilot create a new pull request with the requested changes instead and I'll open a separate PR on a new branch. |
|
@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. |
|
@copilot resolve the merge conflicts in this pull request |
… classes (#181)
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 :
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 :
npm test/bundle exec rspec/ …)Tests manuels :
Performances & Sécurité :
4. Changements majeurs (Breaking Changes)
Cette PR introduit-elle des ruptures d'API ou de comportement ?
(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
Variables d'environnement :
NOM_VARvaleurNotes de déploiement supplémentaires :
(Toute information utile pour l'équipe de déploiement.)