Skip to content

Conversation

@Supritha-gurazala
Copy link
Contributor

As requested by the maintainer, this PR introduces the follow-up changes for the desktop view of the mission section.
This PR is intentionally kept separate from the earlier one to maintain a clean history and clearer review context.

Follow-up PR to : #800

Changes are limited to the desktop view, as mobile updates introduced layout inconsistencies.

Copilot AI review requested due to automatic review settings January 29, 2026 04:05
@github-actions
Copy link

🎉 All Checks Passed!

Status: ✅ Ready to merge

✅ Completed Workflows

Workflow Status Details
🔨 Continuous Integration ✅ Passed Build completed successfully
📝 Code Linting ✅ Passed All formatting and style checks passed

🚀 This PR is ready for review and can be safely merged to main branch!

Great work! Your code meets all quality standards. 👏

Copy link

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

This PR introduces desktop-specific positioning adjustments for the overlay cards in the mission section, building on the visual improvements from PR #800. The changes reposition the top-left and bottom-right cards by adjusting their base positioning and adding responsive translate transforms for medium and larger screens.

Changes:

  • Adjusted positioning of the top-left "Project Based Learning" card with updated spacing and desktop-specific leftward translation
  • Adjusted positioning of the bottom-right "Challenge and Fun" card with updated spacing and desktop-specific rightward translation

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

{windowWidth >= 270 && (
<motion.div
className="absolute top-1 left-2 bg-black/60
className="absolute top-3 left-1 md:-translate-x-1/3 bg-black/60
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

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

The parent container at line 217 has overflow-hidden which will clip the cards when they are translated outside the container boundaries using md:-translate-x-1/3 and md:translate-x-1/3. On desktop screens (md breakpoint and above), these cards will be partially or fully cut off.

To fix this, either:

  1. Remove overflow-hidden from the parent div at line 217 (but this may affect the rounded corners on the image)
  2. Move the overflow-hidden property to apply only to the image element
  3. Remove the translate transforms and adjust the positioning using only left/right values

Copilot uses AI. Check for mistakes.
{windowWidth >= 270 && (
<motion.div
className="absolute bottom-1 right-2 bg-black/60
className="absolute bottom-3 right-5 md:translate-x-1/3 bg-black/60
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

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

The parent container at line 217 has overflow-hidden which will clip this card when it is translated outside the container boundaries using md:translate-x-1/3. On desktop screens (md breakpoint and above), this card will be partially or fully cut off.

To fix this, either:

  1. Remove overflow-hidden from the parent div at line 217 (but this may affect the rounded corners on the image)
  2. Move the overflow-hidden property to apply only to the image element
  3. Remove the translate transform and adjust the positioning using only right values

Copilot uses AI. Check for mistakes.
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.

1 participant