Skip to content

Conversation

@16ratneshkumar
Copy link
Contributor

Updated the CompetitiveSites component to support both icon-based and image-based rendering within the profile link.

  • Added conditional logic to render either an icon (via iconifyClassname) or an image (via imageSrc).
  • Ensured styling is applied consistently via logo.style.
  • Maintained existing anchor tag structure with target and rel attributes for safe external linking.

This improves flexibility by allowing platforms without iconify support to use custom images.

Updated the CompetitiveSites component to support both icon-based and image-based rendering within the profile link.

- Added conditional logic to render either an icon (via iconifyClassname) or an image (via imageSrc).
- Ensured styling is applied consistently via logo.style.
- Maintained existing anchor tag structure with target and rel attributes for safe external linking.

This improves flexibility by allowing platforms without iconify support to use custom images.
@ashutosh1919 ashutosh1919 requested a review from Copilot October 3, 2025 15:06
Copy link
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

This PR adds flexibility to the CompetitiveSites component by supporting both icon-based and image-based rendering for competitive site platforms. This allows platforms without iconify support to use custom images instead.

Key changes:

  • Added conditional rendering logic to support both iconify icons and custom images
  • Maintained consistent styling and safe external linking attributes
  • Preserved existing component structure while extending functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ashutosh1919 ashutosh1919 merged commit bc6cbca into ashutosh1919:master Oct 3, 2025
9 checks passed
@ashutosh1919
Copy link
Owner

@16ratneshkumar Thank you for contributing.

@all-contributors please add @16ratneshkumar for code

@allcontributors
Copy link
Contributor

@ashutosh1919

I've put up a pull request to add @16ratneshkumar! 🎉

ashutosh1919 pushed a commit that referenced this pull request Oct 6, 2025
…petitive sites section (#413)

* Update instructions for changing icons and using custom images in competitive sites section

- Updated the README to provide clearer guidance on how to change icons 
  in the Basic Qualification and Certifications section using Simple Icons.
- Added step-by-step instructions for replacing icons via `iconifyClassname`.
- Included instructions for using custom images via the `imageSrc` attribute,
  including details about file placement and styling.
- Clarified the precedence of `imageSrc` over `iconifyClassname` when both are present.
- This improves developer experience by making customization more intuitive.

See PR #410  for related changes.

* docs:Change grammatical mistakes in README
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