Class: Www::TowelWarmerConnectionOptionsComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Www::TowelWarmerConnectionOptionsComponent
- Includes:
- IconHelper
- Defined in:
- app/components/www/towel_warmer_connection_options_component.rb
Overview
Displays towel warmer connection options (hardwired, plug-in, dual) in a visually appealing card layout
Constant Summary collapse
- CONNECTION_OPTIONS =
[ { key: :hardwired, title: 'Hardwired', icon: 'plug-circle-bolt', icon_family: :sharp_regular, badge: 'Professional Install', badge_color: 'primary', description: 'Connected directly to your home\'s electrical system for a clean, cord-free look.', features: [ 'Connects to standard electrical gang box', 'Includes cover plate for a finished look', 'No visible cords or outlets', 'Ideal for new construction & renovations' ], best_for: 'Permanent installations & renovations', filter_url: '/towel-warmer/hardwired' }, { key: :plugin, title: 'Plug-In', icon: 'plug', icon_family: :sharp_regular, badge: 'DIY Friendly', badge_color: 'success', description: 'Simply mount and plug into any standard 3-prong outlet—no electrician needed.', features: [ 'Easy DIY installation', 'Can be moved between rooms', 'No electrical work required' ], best_for: 'Renters & quick installations', filter_url: '/towel-warmer/plug-in' }, { key: :dual, title: 'Dual Connection', icon: 'right-left', icon_family: :sharp_regular, badge: 'Most Flexible', badge_color: 'warning', description: 'Ships with a plug-in cord that can be removed for hardwired installation later.', features: [ 'Start plug-in, convert to hardwired later', 'No gang box or wall plate used', 'Power connection housed inside the leg', 'Future-proof your investment' ], best_for: 'Maximum versatility', filter_url: '/towel-warmer/plug-in-or-hardwired' } ].freeze
Constants included from IconHelper
IconHelper::CUSTOM_ICON_MAP, IconHelper::CUSTOM_SVG_DIR, IconHelper::DEFAULT_FAMILY
Instance Method Summary collapse
Methods included from IconHelper
#account_nav_icon, #fa_icon, #star_rating_html
Methods inherited from ApplicationComponent
#cms_link, #fetch_or_fallback, #image_asset_tag, #image_tag, #number_to_currency, #number_with_delimiter, #post_path, #post_url, #strip_tags
Instance Method Details
#connection_options ⇒ Object
60 61 62 |
# File 'app/components/www/towel_warmer_connection_options_component.rb', line 60 def CONNECTION_OPTIONS end |