Skip to content

Add light box rings to buttons + cards #289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 21, 2025
Merged

Add light box rings to buttons + cards #289

merged 2 commits into from
Apr 21, 2025

Conversation

MattIPv4
Copy link
Member

Following a similar visual style to what we've been doing on the site recently, to help make the buttons/cards stand out more against the stream content.

@Copilot Copilot AI review requested due to automatic review settings April 18, 2025 02:37
@MattIPv4 MattIPv4 requested a review from a team as a code owner April 18, 2025 02:37
Copy link

@Copilot 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 updates the visual style of UI components by introducing a new Ring component that provides a light box ring effect on buttons, cards, and ambassador components.

  • Ambassadors.tsx: Replaces conditional outline styling with an "active" prop.
  • Buttons.tsx and AmbassadorButton.tsx: Remove outline classes and integrate the new Ring component for active state indication.
  • Card.tsx and AmbassadorCard.tsx: Incorporate the Ring component to enhance visual emphasis.

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
src/pages/overlay/components/overlay/Ambassadors.tsx Updated active state handling using the new active prop instead of conditional outline styling.
src/pages/overlay/components/Buttons.tsx Removed outline classes and added Ring component to visually represent active state.
src/components/Ring.tsx Introduced a new Ring component that encapsulates the light box ring effect logic.
src/components/Card.tsx Integrated the Ring component to provide a visual light ring effect on cards.
src/components/AmbassadorCard.tsx Added the Ring component within the ambassador card layout.
src/components/AmbassadorButton.tsx Updated to pass active prop and include the Ring component for consistent visual feedback.
Comments suppressed due to low confidence (1)

src/pages/overlay/components/overlay/Ambassadors.tsx:148

  • Removing the conditional outline styling in favor of passing an 'active' prop requires confirmation that the receiving component properly applies the intended visual feedback when active. Please ensure that the component now using the 'active' prop handles styling consistently.
className="w-full"

Copy link

cloudflare-workers-and-pages bot commented Apr 18, 2025

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
extension-preview b34cf16 Visit preview Apr 18 2025, 03:04 AM

@MattIPv4 MattIPv4 force-pushed the MattIPv4/box-rings branch from b9132f8 to b34cf16 Compare April 18, 2025 03:02
Copy link
Member

@pjeweb pjeweb left a comment

Choose a reason for hiding this comment

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

very nice

@MattIPv4 MattIPv4 merged commit 4910510 into main Apr 21, 2025
7 checks passed
@MattIPv4 MattIPv4 deleted the MattIPv4/box-rings branch April 21, 2025 19:37
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