Commit graph

7 commits

Author SHA1 Message Date
f69e2131b7 Restructure CTA cards with bottom-aligned call-to-action
- Move cta-cta element outside cta-content to card bottom
- Add cta-top wrapper to group icon and content horizontally
- Change cta-card to flex column layout with gap
- Style cta-cta as full-width bottom element with separator line
- Add border-top to visually separate CTA action from card content
- Improve visual hierarchy with cta-cta at bottom spanning full width
2025-10-16 18:17:56 +02:00
e90fea48a0 Add customizable CTA arrow icons for all cards
- Add cta_card_X_cta_icon settings for each CTA card (1-4)
- Default to "angle-double-right" icon for all cards
- Allow admin to customize arrow icon per card (e.g., 'arrow-right', 'chevron-right', etc.)
- Update component template to use settings instead of hardcoded icon
- Each CTA card now has independent control over its arrow/action icon
2025-10-16 18:07:17 +02:00
f355950f9f Icon fix 2025-10-16 18:03:19 +02:00
a838e3c22b Fix Font Awesome icon rendering using Discourse icon helper
- Import d-icon helper from discourse-common
- Replace manual <i> tags with {{icon}} helper for Font Awesome icons
- Update CSS to style .d-icon elements instead of i tags
- Ensure icons display correctly with proper sizing and colors
- Fix hover animation to use margin instead of padding for d-icon

This resolves the issue where Font Awesome icons weren't appearing when selected in admin settings.
2025-10-16 17:59:12 +02:00
b0178e9186 Add custom CSS setting for admin customization
- Add custom_css textarea setting in settings.yml
- Support custom CSS injection in welcome-banner component
- Allow admins to override or extend banner styles without modifying code
- Inject custom CSS only when banner is displayed
- Include English and Hungarian descriptions with examples
2025-10-16 17:32:23 +02:00
6bea82288b Fix strict mode template: import helpers and use concat properly
- Import concat, eq, and, not helpers from Ember packages
- Replace inline {{fa-icon}} interpolation with concat helper
- Fix Font Awesome class construction: class={{concat "fas fa-" settings.icon}}
- Import truth-helpers for conditional logic
- Ensures strict mode template compliance

Fixes compile error: "Attempted to resolve a helper in a strict mode template"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-16 17:19:39 +02:00
c683bc82a9 Modernize to .gjs Glimmer component with renderInOutlet pattern
- Replace plugin outlet connectors with modern .gjs Glimmer component
- Use api.renderInOutlet() instead of connector templates (official pattern)
- Add service injection (@service router, @service site)
- Implement lifecycle hooks with didInsert/willDestroy modifiers
- Use native SearchMenu component integration
- Remove old connector directory structure
- Update CSS to target outlet wrapper classes
- Simplify API initializer to 10 lines (from 112 lines)
- Add route-based display logic with router service
- Direct settings access without this.theme wrapper

This follows the official discourse-search-banner implementation pattern.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-16 17:16:53 +02:00