Commit graph

15 commits

Author SHA1 Message Date
c4f807356c Add conditional hero content for logged-in and anonymous users
- Add theme settings for anonymous user hero title and content
- Add login and register button text settings
- Update WelcomeBanner component to detect user authentication state
- Display custom content and login/register buttons for anonymous users
- Display search functionality for logged-in users
- Add responsive styling for authentication buttons with hover effects
- Update .gitignore to exclude Claude Code files
2025-10-17 17:13:42 +02:00
f595ef7b09 CSS fix 2025-10-16 18:53:58 +02:00
8f91169d0c @media fix 2025-10-16 18:48:54 +02:00
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
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
a1ea8ebe83 Add positioning styles for below-site-header-outlet
- Set margin: 2em auto for below-site-header-outlet
- Apply max-width using sidebar and content width variables
- Add 20px horizontal margin to hero-section in below_header position
- Remove redundant max-width rule from welcome-card media query
2025-10-16 17:44:44 +02:00
f83ed8a616 Add top margin to above-main-container-outlet position
- Add 2em margin-top to .above-main-container-outlet
- Provides spacing between navigation and banner
- Only affects above_content position, not below_header
2025-10-16 17:39:06 +02:00
0e53b8873a Support gradients and multiple color formats in settings
- Add support for hex, rgb, rgba, hsl color formats
- Enable gradient backgrounds (linear-gradient, radial-gradient)
- Convert page_background and card_background to textarea for multi-line gradients
- Update hero-section to use var(--page-bg) instead of hardcoded gradient
- Set default page_background to current gradient for backward compatibility
- Add detailed examples in English and Hungarian descriptions
2025-10-16 17:36:07 +02:00
c841f92a99 Fix z-index: ensure search-menu-panel appears above CTA cards
- Lower .cta-section z-index from 3 to 1
- Prevents search menu dropdown from appearing behind CTA cards
- Maintains proper stacking context for search functionality
2025-10-16 17:26:33 +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
62d97ffdc9 Fix banner positioning: use above-main-outlet and adjust below-header width
- Replace above-main-container-outlet with above-main-outlet for proper #main-outlet placement
- Add CSS rule for below-site-header positioning with sidebar-aware width
- Set max-width to calc(var(--d-sidebar-width) + var(--d-max-width)) for below-header
- Update section class name from above-main-container-outlet to above-main-outlet
- Remove deprecated above-main-container-outlet connector directory

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-16 17:01:51 +02:00
e9d72d53b5 Fix Discourse 3.5.0 compatibility issues
- Replace color-mix() CSS function with rgba() for better browser support
- Update Handlebars templates: change this.theme.* to theme.* for correct context
- Fix JavaScript settings access: remove theme_vars nesting, use direct settings object
- Ensure banner visibility on homepage with proper settings integration

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-16 16:36:24 +02:00
9fc91f14e4 Fix preview issues: add fallback colors, improve settings handling, simplify Handlebars conditions 2025-10-15 21:59:41 +02:00
49a711320c Initial commit: Nyíltvilág Welcome Banner theme component 2025-10-15 21:42:02 +02:00