Skip to content

Feat add publicity post card on sidebar local#83

Merged
lucasadsr merged 4 commits intodevelopfrom
feat-add-publicity-post-card-on-sidebar-local
Dec 29, 2025
Merged

Feat add publicity post card on sidebar local#83
lucasadsr merged 4 commits intodevelopfrom
feat-add-publicity-post-card-on-sidebar-local

Conversation

@MarcosvBueno
Copy link
Contributor

✨ PR Summary — Custom Shadow Colors for Card Component

This pull request adds support for custom shadow colors to the Card component’s shadowRight variant, allowing consumers to define any CSS color for the card shadow. Documentation and examples were updated to demonstrate the feature, and the SidebarLocal component now showcases it in a real-world, branded use case.


🧩 Card Component Enhancements

  • Added a new shadowColor prop to the Card component.
    • Enables custom shadow colors when using the shadowRight variant.
    • The shadow color is applied via inline box-shadow styles.
  • Updated the cardVariants configuration:
    • Removed the hardcoded shadow definition from the shadowRight variant.
    • Delegated full shadow color control to the new shadowColor prop.

📚 Documentation & Examples

  • Updated Card component documentation to include:
    • The new shadowColor prop
    • Description, usage, and type information
  • Added and updated examples in card.tsx demonstrating:
    • Custom shadow colors with the shadowRight variant
    • Multiple use cases and color variations

Related diffs:


🧭 Sidebar Enhancements

  • Enhanced the SidebarLocal component with a branded promotional card for “Am I On”.
  • The card uses:
    • shadowRight variant
    • A custom shadowColor, demonstrating the new feature in a real UI context

Related diffs:


✅ Summary

This PR introduces greater flexibility and visual customization to the Card component by enabling custom shadow colors. The changes improve design expressiveness, enhance documentation clarity, and demonstrate practical usage through updated examples and sidebar integration.

@MarcosvBueno MarcosvBueno self-assigned this Dec 29, 2025
@vercel
Copy link

vercel bot commented Dec 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
ui Ready Ready Preview, Comment Dec 29, 2025 7:45pm

Copy link
Member

@lucasadsr lucasadsr left a comment

Choose a reason for hiding this comment

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

On pages like /docs/components/card that have many examples, the “AM I ON?” card ends up overlapping the footer. Other than that, everything looks great.

Image

- Added amion-horizontal-white-green.svg and amion-icon-green.svg to the project.
- Updated the SidebarLocal component to reference the new SVG file paths.
Copy link
Member

@lucasadsr lucasadsr left a comment

Choose a reason for hiding this comment

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

LGTM

@lucasadsr lucasadsr merged commit fbbdbff into develop Dec 29, 2025
2 checks passed
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